From d5028b7a491ec09e7f8991861eabe63dfe6465f8 Mon Sep 17 00:00:00 2001 From: edward-burn <9583964+edward-burn@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:31:39 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20OHDSI/Co?= =?UTF-8?q?hortConstructor@4ade6f33df67ae643eb2cb89911b3fa17aa21666=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- articles/a01_building_base_cohorts.html | 4 +-- articles/a06_concatanate_cohorts.html | 18 +++++------ articles/a07_filter_cohorts.html | 24 +++++++------- pkgdown.yml | 2 +- reference/entryAtFirstDate.html | 43 +++++++------------------ reference/entryAtLastDate.html | 43 +++++++------------------ reference/exitAtDeath.html | 16 ++++----- reference/exitAtFirstDate.html | 43 +++++++------------------ reference/exitAtLastDate.html | 43 +++++++------------------ reference/exitAtObservationEnd.html | 6 ++-- reference/matchCohorts.html | 20 ++++++------ reference/padCohortEnd.html | 8 ++--- reference/sampleCohorts.html | 20 ++++++------ reference/trimDemographics.html | 20 ++++++------ search.json | 2 +- 15 files changed, 114 insertions(+), 198 deletions(-) diff --git a/articles/a01_building_base_cohorts.html b/articles/a01_building_base_cohorts.html index b322c82..f65d980 100644 --- a/articles/a01_building_base_cohorts.html +++ b/articles/a01_building_base_cohorts.html @@ -130,7 +130,7 @@
cdm$medications %>%
filter(subject_id == 1)
#> # Source: SQL [4 x 4]
-#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpzDAtsl/file237556f55dca.duckdb]
+#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpsQbTPb/file227a16b3c342.duckdb]
#> cohort_definition_id subject_id cohort_start_date cohort_end_date
#> <int> <int> <date> <date>
-#> 1 1 1 1971-01-04 1971-01-18
-#> 2 1 1 1982-09-11 1982-10-02
-#> 3 1 1 1980-03-15 1980-03-29
-#> 4 1 1 1976-10-20 1976-11-03
+#> 1 1 1 1976-10-20 1976-11-03
+#> 2 1 1 1980-03-15 1980-03-29
+#> 3 1 1 1971-01-04 1971-01-18
+#> 4 1 1 1982-09-11 1982-10-02
cdm$medications_collapsed %>%
filter(subject_id == 1)
#> # Source: SQL [3 x 4]
-#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpzDAtsl/file237556f55dca.duckdb]
+#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpsQbTPb/file227a16b3c342.duckdb]
#> cohort_definition_id subject_id cohort_start_date cohort_end_date
#> <int> <int> <date> <date>
-#> 1 1 1 1976-10-20 1976-11-03
-#> 2 1 1 1980-03-15 1982-10-02
-#> 3 1 1 1971-01-04 1971-01-18
+#> 1 1 1 1971-01-04 1971-01-18
+#> 2 1 1 1976-10-20 1976-11-03
+#> 3 1 1 1980-03-15 1982-10-02
Subject 1 initially had 4 records between 1971 and 1982. After specifying that records within three years of each other are to be merged, the number of records decreases to three. The record from diff --git a/articles/a07_filter_cohorts.html b/articles/a07_filter_cohorts.html index c6c96e1..70463f5 100644 --- a/articles/a07_filter_cohorts.html +++ b/articles/a07_filter_cohorts.html @@ -108,26 +108,26 @@
cdm$medications |> sampleCohorts(cohortId = NULL, n = 100)
#> # Source: table<main.my_study_medications> [?? x 4]
-#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpP0yGaB/file23ba31a886f2.duckdb]
+#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpnpPUxw/file22bee472afa.duckdb]
#> cohort_definition_id subject_id cohort_start_date cohort_end_date
#> <int> <int> <date> <date>
-#> 1 1 569 2012-03-31 2012-04-07
-#> 2 1 1426 1978-11-22 1978-12-06
-#> 3 2 1124 1968-10-12 1968-10-12
-#> 4 1 1306 1983-05-16 1983-05-30
-#> 5 2 4979 2014-08-28 2014-08-28
-#> 6 1 1569 2007-06-21 2007-07-05
-#> 7 1 3440 1942-10-07 1942-10-14
-#> 8 2 4405 2006-09-24 2006-09-24
-#> 9 1 5146 1950-11-26 1950-12-03
-#> 10 1 640 1992-04-24 1992-05-01
+#> 1 1 662 1989-03-01 1989-03-15
+#> 2 1 1926 2000-01-06 2000-01-20
+#> 3 1 1926 2016-01-11 2016-01-18
+#> 4 2 2373 1997-10-25 1997-10-25
+#> 5 1 1321 2015-12-11 2015-12-18
+#> 6 1 1385 1997-05-17 1997-05-24
+#> 7 1 1385 1997-11-09 1997-11-30
+#> 8 1 3364 1983-09-17 1983-10-01
+#> 9 2 613 1977-01-23 1977-01-23
+#> 10 2 2470 1992-12-21 1992-12-21
#> # ℹ more rows
cohortCount(cdm$medications)
#> # A tibble: 2 × 3
#> cohort_definition_id number_records number_subjects
#> <int> <int> <int>
-#> 1 1 362 100
+#> 1 1 365 100
#> 2 2 100 100
When cohortId = NULL all cohorts in the table are used. Note that this function does not reduced the number of records in each cohort, diff --git a/pkgdown.yml b/pkgdown.yml index 2a32e0e..1014ac3 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -14,7 +14,7 @@ articles: a09_combine_cohorts: a09_combine_cohorts.html a10_match_cohorts: a10_match_cohorts.html a11_benchmark: a11_benchmark.html -last_built: 2024-10-16T11:58Z +last_built: 2024-10-16T15:25Z urls: reference: https://ohdsi.github.io/CohortConstructor/reference article: https://ohdsi.github.io/CohortConstructor/articles diff --git a/reference/entryAtFirstDate.html b/reference/entryAtFirstDate.html index 505ffea..81e0060 100644 --- a/reference/entryAtFirstDate.html +++ b/reference/entryAtFirstDate.html @@ -111,17 +111,6 @@