From 1d76772f751ad871a8986c93fa17920e8441e52f Mon Sep 17 00:00:00 2001 From: Justin Xu Date: Tue, 24 Sep 2024 07:12:30 +0100 Subject: [PATCH] Separate the link cells and update technical details of plain predicates (other_cols) --- docs/source/configuration.md | 2 ++ docs/source/notebooks/examples.ipynb | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/source/configuration.md b/docs/source/configuration.md index 1ad01c2..4c7c027 100644 --- a/docs/source/configuration.md +++ b/docs/source/configuration.md @@ -63,6 +63,8 @@ These configs consist of the following four fields: will be used). - `value_min_inclusive`: See `value_min` - `value_max_inclusive`: See `value_max` +- `other_cols`: This optional field accepts a 1-to-1 dictionary of column names to column values, and can be + used to specify further constraints on other columns (ie., not `code`) for this predicate. A given observation will be gauged to satisfy or fail to satisfy this predicate in one of two ways, depending on its source format. diff --git a/docs/source/notebooks/examples.ipynb b/docs/source/notebooks/examples.ipynb index 9a416ae..82d3125 100644 --- a/docs/source/notebooks/examples.ipynb +++ b/docs/source/notebooks/examples.ipynb @@ -6,8 +6,13 @@ "source": [ "# Task Examples\n", "\n", - "Provided below are two examples of mortality prediction tasks that ACES could easily extract subject cohorts for. The configurations have been tested all the provided synthetic data in the repository (`[sample_data/](https://github.com/justin13601/ACES/tree/main/sample_data`), as well as the MIMIC-IV dataset loaded using MEDS & ESGPT (with very minor changes to the below predicate definition). The configuration files for both of these tasks are provided in the repository ([sample_configs/](https://github.com/justin13601/ACES/tree/main/sample_configs)), and cohorts can be extracted using the `aces-cli` tool:\n", - "\n", + "Provided below are two examples of mortality prediction tasks that ACES could easily extract subject cohorts for. The configurations have been tested all the provided synthetic data in the repository (`[sample_data/](https://github.com/justin13601/ACES/tree/main/sample_data`), as well as the MIMIC-IV dataset loaded using MEDS & ESGPT (with very minor changes to the below predicate definition). The configuration files for both of these tasks are provided in the repository ([sample_configs/](https://github.com/justin13601/ACES/tree/main/sample_configs)), and cohorts can be extracted using the `aces-cli` tool:" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ "```bash\n", "aces-cli data.path='/path/to/MIMIC/ESGPT/schema/' data.standard='esgpt' cohort_dir='sample_configs/' cohort_name='...'\n", "```"