diff --git a/articles/a01_building_base_cohorts.html b/articles/a01_building_base_cohorts.html index 777458d..4f96130 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.5.0-1025-azure:R 4.4.1//tmp/RtmpXtS7Sw/file1d7a2651d101.duckdb]
+#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1//tmp/RtmpVtMOCr/file1db46d06304d.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
@@ -131,7 +131,7 @@
cdm$medications_collapsed %>%
filter(subject_id == 1)
#> # Source: SQL [3 x 4]
-#> # Database: DuckDB v1.1.0 [unknown@Linux 6.5.0-1025-azure:R 4.4.1//tmp/RtmpXtS7Sw/file1d7a2651d101.duckdb]
+#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1//tmp/RtmpVtMOCr/file1db46d06304d.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 916f9ab..8d3fbb9 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.5.0-1025-azure:R 4.4.1//tmp/Rtmpx096bk/file1dbc53617649.duckdb]
+#> # Database: DuckDB v1.1.1 [unknown@Linux 6.5.0-1025-azure:R 4.4.1//tmp/RtmpEuti2i/file1df6733afa8d.duckdb]
#> cohort_definition_id subject_id cohort_start_date cohort_end_date
#> <int> <int> <date> <date>
-#> 1 1 1958 2008-03-10 2008-03-17
-#> 2 1 3744 1979-09-18 1979-10-02
-#> 3 1 4005 1971-02-12 1971-02-19
-#> 4 1 4005 2006-11-23 2006-12-07
-#> 5 2 4881 1988-11-18 1988-11-18
-#> 6 1 3835 1984-10-06 1984-10-27
-#> 7 1 729 2000-01-22 2000-02-26
-#> 8 1 1083 2006-10-21 2006-11-04
-#> 9 1 2002 1995-05-07 1995-05-21
-#> 10 1 2861 1987-12-20 1988-01-19
+#> 1 1 312 2009-05-30 2009-06-06
+#> 2 1 3505 1946-02-20 1946-02-27
+#> 3 1 3505 1992-09-28 1992-10-05
+#> 4 1 2459 2008-09-06 2008-09-13
+#> 5 1 2988 2003-01-18 2003-02-01
+#> 6 2 3834 1994-06-27 1994-06-27
+#> 7 1 1905 1973-06-12 1973-06-26
+#> 8 1 2752 1989-12-07 1989-12-14
+#> 9 1 4990 2002-07-31 2002-08-07
+#> 10 2 4490 1963-09-04 1963-09-04
#> # ℹ more rows
cohortCount(cdm$medications)
#> # A tibble: 2 × 3
#> cohort_definition_id number_records number_subjects
#> <int> <int> <int>
-#> 1 1 371 100
+#> 1 1 327 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 0070129..817efd8 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-17T05:59Z
+last_built: 2024-10-17T21:30Z
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 bf4e624..a7ea834 100644
--- a/reference/entryAtFirstDate.html
+++ b/reference/entryAtFirstDate.html
@@ -153,13 +153,13 @@
Examples#> • `valid_end_date` is character but expected date
cdm$cohort |> entryAtLastDate(dateColumns = c("date_1", "date_2"))
#> # Source: table<main.cohort> [4 x 11]
-#> # Database: DuckDB v1.1.0 [unknown@Linux 6.5.0-1025-azure:R 4.4.1/:memory:]
+#> # 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 4 2002-12-09 2002-12-09
#> 2 1 3 2015-02-14 2015-02-15
-#> 3 1 1 2001-08-01 2001-09-01
-#> 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 ef3c32c..1c30986 100644
--- a/reference/entryAtLastDate.html
+++ b/reference/entryAtLastDate.html
@@ -153,13 +153,13 @@ Examples#> • `valid_end_date` is character but expected date
cdm$cohort |> entryAtLastDate(dateColumns = c("date_1", "date_2"))
#> # Source: table<main.cohort> [4 x 11]
-#> # Database: DuckDB v1.1.0 [unknown@Linux 6.5.0-1025-azure:R 4.4.1/:memory:]
+#> # 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 3 2015-02-14 2015-02-15
-#> 2 1 2 2001-01-01 2001-01-12
-#> 3 1 1 2001-08-01 2001-09-01
-#> 4 1 4 2002-12-09 2002-12-09
+#> 1 1 2 2001-01-01 2001-01-12
+#> 2 1 3 2015-02-14 2015-02-15
+#> 3 1 4 2002-12-09 2002-12-09
+#> 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 fe4766b..e579f14 100644
--- a/reference/exitAtDeath.html
+++ b/reference/exitAtDeath.html
@@ -102,19 +102,19 @@ Examplescdm <- mockPatientProfiles()
cdm$cohort1 |> exitAtDeath()
#> # Source: table<main.cohort1> [10 x 4]
-#> # Database: DuckDB v1.1.0 [unknown@Linux 6.5.0-1025-azure:R 4.4.1/:memory:]
+#> # 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 2 5 1966-05-05 1970-11-15
#> 2 2 3 1939-07-24 1944-01-14
-#> 3 3 7 1962-05-14 1964-03-08
-#> 4 1 9 1940-05-01 1945-06-29
-#> 5 3 8 1921-10-07 1931-05-01
-#> 6 3 2 1918-06-14 1921-11-28
-#> 7 1 1 1943-11-26 1949-06-21
-#> 8 1 10 1948-08-08 1952-03-27
-#> 9 3 6 1966-09-27 1975-03-05
-#> 10 2 4 1949-03-07 1951-05-08
+#> 3 1 10 1948-08-08 1952-03-27
+#> 4 2 4 1949-03-07 1951-05-08
+#> 5 3 6 1966-09-27 1975-03-05
+#> 6 1 1 1943-11-26 1949-06-21
+#> 7 3 2 1918-06-14 1921-11-28
+#> 8 1 9 1940-05-01 1945-06-29
+#> 9 3 8 1921-10-07 1931-05-01
+#> 10 3 7 1962-05-14 1964-03-08
# }
diff --git a/reference/exitAtFirstDate.html b/reference/exitAtFirstDate.html
index 29f1928..6f4fec5 100644
--- a/reference/exitAtFirstDate.html
+++ b/reference/exitAtFirstDate.html
@@ -153,13 +153,13 @@ requireMinCohortCount(
cohort,
+ minCohortCount,
cohortId = NULL,
- minCohortCount = 5,
name = tableName(cohort)
)
The minimum count of sbjects for a cohort to be +included.
Vector identifying which cohorts to modify (cohort_definition_id or cohort_name). If NULL, all cohorts will be @@ -77,11 +82,6 @@
The minimum count of sbjects for a cohort to be -included.
Name of the new cohort table created in the cdm object.