link_nicor: link_nicor

Description Usage Arguments Value

Description

link_nicor

Usage

1
2
3
4
5
6
link_nicor(nicor = clahrcnwlhf::nicor_data_clean,
  episodes = clahrcnwlhf::emergency_adms, show.working = TRUE,
  bundle_date_col = "Date.of.Visit", bundle_id_col = "PseudoID",
  episode_id_col = "PseudoID", episode_date_col = "CSPAdmissionTime",
  episode_date_disch_col = "CSPDischargeTime",
  episode_spell_col = "spell_number", episode_new_spell = "new_spell")

Arguments

nicor

the NICOR data

episodes

dataframe of hospital admissions from data warehouse

show.working

include helper columns in output

bundle_date_col

column in NICOR data containing date pertaining to admission

bundle_id_col

column in NICOR data containing patient (pseudo-)ID

episode_id_col

column in episodes containing patient (pseudo-)ID

episode_date_col

column in episodes containing datetime of admission

episode_date_disch_col

column in episodes containing datetime of discharge

episode_spell_col

column in episodes containing spell ID to return

episode_new_spell

column in episodes indicating first episodes in spell

Value

nicor with linked spells, and helper columns if requested


HorridTom/clahrcnwlhf documentation built on May 7, 2019, 4:02 a.m.