make_spell_number: make_spell_number

View source: R/spell_linkage.R

make_spell_numberR Documentation

make_spell_number

Description

make_spell_number

Usage

make_spell_number(
  ed_data,
  inpatient_data,
  same_type_episode_lag = 1,
  different_type_episode_lag = 6
)

Arguments

ed_data

standard ED data

inpatient_data

standard inpatient data

same_type_episode_lag

the maximum amount of time two episodes of the same type can be separated by and still be classified as part of the same spell.

different_type_episode_lag

the maximum amount of time two episodes of different type can be separated by and still be classified as part of the same spell.

Value

table of all episodes with spell_number


HorridTom/hospitalflow documentation built on June 14, 2022, noon