diff --git a/articles/a06_concatanate_cohorts.html b/articles/a06_concatanate_cohorts.html
index 1a94ebb..ec094c3 100644
--- a/articles/a06_concatanate_cohorts.html
+++ b/articles/a06_concatanate_cohorts.html
@@ -130,17 +130,17 @@
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 25111a7..80b2aa9 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-26T11:48Z
+last_built: 2024-10-28T20:38Z
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 3e227c9..a5e5aa0 100644
--- a/reference/entryAtFirstDate.html
+++ b/reference/entryAtFirstDate.html
@@ -163,10 +163,10 @@ cdm$medications |>
filter(subject_id == 1)
#> # Source: SQL [4 x 4]
-#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1//tmp/RtmphbXz3d/file1d38bfde598.duckdb]
+#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1//tmp/RtmpVK0BdG/file1dc4682a2e50.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
+#> 1 1 1 1980-03-15 1980-03-29
+#> 2 1 1 1971-01-04 1971-01-18
+#> 3 1 1 1982-09-11 1982-10-02
#> 4 1 1 1976-10-20 1976-11-03
cdm$medications_collapsed |>
filter(subject_id == 1)
#> # Source: SQL [3 x 4]
-#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1//tmp/RtmphbXz3d/file1d38bfde598.duckdb]
+#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1//tmp/RtmpVK0BdG/file1dc4682a2e50.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
diff --git a/articles/a07_filter_cohorts.html b/articles/a07_filter_cohorts.html
index 18107b9..920ca4e 100644
--- a/articles/a07_filter_cohorts.html
+++ b/articles/a07_filter_cohorts.html
@@ -117,26 +117,26 @@
diff --git a/reference/exitAtFirstDate.html b/reference/exitAtFirstDate.html
index de50b49..e5298fd 100644
--- a/reference/exitAtFirstDate.html
+++ b/reference/exitAtFirstDate.html
@@ -163,8 +163,8 @@
cdm$medications |> sampleCohorts(cohortId = NULL, n = 100)
#> # Source: table<main.my_study_medications> [?? x 4]
-#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1//tmp/RtmpdrgIL3/file1d7c5990a1b3.duckdb]
+#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1//tmp/RtmpAkDDXe/file1e076dc5ef98.duckdb]
#> cohort_definition_id subject_id cohort_start_date cohort_end_date
#> <int> <int> <date> <date>
-#> 1 1 817 2008-12-03 2008-12-10
-#> 2 2 2404 2008-04-18 2008-04-18
-#> 3 1 572 1976-11-21 1977-01-20
-#> 4 1 3469 1983-02-26 1983-03-26
-#> 5 2 70 1983-06-27 1983-06-27
-#> 6 1 3625 1991-09-10 1991-09-24
-#> 7 2 925 2005-01-09 2005-01-09
-#> 8 2 1039 2003-03-29 2003-03-29
-#> 9 1 2174 1991-06-03 1991-06-17
-#> 10 1 3773 2003-06-09 2003-06-16
+#> 1 1 3537 2015-08-28 2015-09-11
+#> 2 1 3560 2012-04-28 2012-05-12
+#> 3 1 3859 1931-03-10 1931-03-24
+#> 4 2 390 2016-05-15 2016-05-15
+#> 5 2 3088 1980-08-21 1980-08-21
+#> 6 1 5213 2003-11-11 2003-11-18
+#> 7 1 2853 1988-06-02 1988-06-09
+#> 8 1 5230 1983-12-12 1983-12-19
+#> 9 2 4279 1987-08-16 1987-08-16
+#> 10 1 5094 2006-06-05 2006-06-12
#> # ℹ more rows
cohortCount(cdm$medications)
#> # A tibble: 2 × 3
#> cohort_definition_id number_records number_subjects
#> <int> <int> <int>
-#> 1 1 356 100
+#> 1 1 390 100
#> 2 2 100 100
Examples#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1/:memory:]
#> cohort_definition_id subject_id cohort_start_date cohort_end_date
#> <int> <int> <date> <date>
-#> 1 1 1 2001-08-01 2001-09-01
+#> 1 1 3 2015-02-14 2015-02-15
#> 2 1 4 2002-12-09 2002-12-09
-#> 3 1 3 2015-02-14 2015-02-15
-#> 4 1 2 2001-01-01 2001-01-12
+#> 3 1 2 2001-01-01 2001-01-12
+#> 4 1 1 2001-08-01 2001-09-01
#> # ℹ 7 more variables: cohort_definition_name <chr>,
#> # cohort_definition_description <chr>, definition_type_concept_id <int>,
#> # cohort_definition_syntax <chr>, subject_concept_id <int>,
diff --git a/reference/entryAtLastDate.html b/reference/entryAtLastDate.html
index ac44dbc..a965238 100644
--- a/reference/entryAtLastDate.html
+++ b/reference/entryAtLastDate.html
@@ -163,10 +163,10 @@
Examples#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1/:memory:]
#> cohort_definition_id subject_id cohort_start_date cohort_end_date
#> <int> <int> <date> <date>
-#> 1 1 2 2001-01-01 2001-01-12
-#> 2 1 1 2001-08-01 2001-09-01
-#> 3 1 4 2002-12-09 2002-12-09
-#> 4 1 3 2015-02-14 2015-02-15
+#> 1 1 3 2015-02-14 2015-02-15
+#> 2 1 4 2002-12-09 2002-12-09
+#> 3 1 2 2001-01-01 2001-01-12
+#> 4 1 1 2001-08-01 2001-09-01
#> # ℹ 7 more variables: cohort_definition_name <chr>,
#> # cohort_definition_description <chr>, definition_type_concept_id <int>,
#> # cohort_definition_syntax <chr>, subject_concept_id <int>,
diff --git a/reference/exitAtDeath.html b/reference/exitAtDeath.html
index 3f3de58..f39ea9b 100644
--- a/reference/exitAtDeath.html
+++ b/reference/exitAtDeath.html
@@ -112,15 +112,15 @@
Examples#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1/:memory:]
#> cohort_definition_id subject_id cohort_start_date cohort_end_date
#> <int> <int> <date> <date>
-#> 1 1 1 1943-11-26 1949-06-21
+#> 1 2 3 1939-07-24 1944-01-14
#> 2 2 5 1966-05-05 1970-11-15
-#> 3 2 3 1939-07-24 1944-01-14
+#> 3 1 1 1943-11-26 1949-06-21
#> 4 2 4 1949-03-07 1951-05-08
-#> 5 1 10 1948-08-08 1952-03-27
-#> 6 3 6 1966-09-27 1975-03-05
-#> 7 3 2 1918-06-14 1921-11-28
+#> 5 3 6 1966-09-27 1975-03-05
+#> 6 1 10 1948-08-08 1952-03-27
+#> 7 1 9 1940-05-01 1945-06-29
#> 8 3 8 1921-10-07 1931-05-01
-#> 9 1 9 1940-05-01 1945-06-29
+#> 9 3 2 1918-06-14 1921-11-28
#> 10 3 7 1962-05-14 1964-03-08
# }