Skip to contents

MIMIC4EHRDataset: Dataset class for MIMIC-IV EHR

MIMIC4EHRDataset: Dataset class for MIMIC-IV EHR

Details

This class inherits from BaseDataset and is specialized for handling MIMIC-IV EHR data. It ensures key tables like patients, admissions, and icustays are included, and allows appending additional tables. It also logs memory usage if needed.

Super class

RHealth::BaseDataset -> MIMIC4EHRDataset

Methods

Inherited methods


Method new()

Initialize MIMIC4EHRDataset

Usage

MIMIC4EHRDataset$new(
  root,
  tables = character(),
  dataset_name = "mimic4_ehr",
  config_path = NULL,
  dev = FALSE,
  ...
)

Arguments

root

Root directory of the dataset.

tables

Character vector of extra tables to include.

dataset_name

Optional dataset name. Default is "mimic4_ehr".

config_path

Optional path to YAML config file.

dev

Logical flag for dev mode.

...

Additional arguments passed to BaseDataset$initialize.


Method clone()

The objects of this class are cloneable with this method.

Usage

MIMIC4EHRDataset$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.