Skip to contents

Task for predicting mortality using OMOP CDM dataset. Predicts whether a patient has a death record based on clinical information from each visit.

Super class

RHealth::BaseTask -> MortalityPredictionOMOP

Public fields

task_name

Name of the task.

input_schema

Input schema.

output_schema

Output schema.

Methods


Method new()

Initialize the task.


Method pre_filter()

Pre-filter hook to retain only necessary columns.

Usage

MortalityPredictionOMOP$pre_filter(df)

Arguments

df

A lazy query containing all events.

Returns

A filtered LazyFrame.


Method call()

Process a single patient to generate samples.

Usage

MortalityPredictionOMOP$call(patient)

Arguments

patient

A Patient object.

Returns

A list of samples.


Method clone()

The objects of this class are cloneable with this method.

Usage

MortalityPredictionOMOP$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.