get_demographics: Get demographic characteristics of patients in explorys...

Description Usage Arguments Value

View source: R/demographics.R

Description

This function takes in the cohort with ids and outputs the demographic characteristics like gender, birth year and insurance, race/ethnicity. It assumes the cohort has id variable explorys_patient_id. Always make sure thisse variable exists with the exact same name. The results are aggregated from the entire history of patients existence in the database. So for example if a patient reports Medicare as their insurance at some point in time and later reports Medicaid, they will be in both insurance categories as the demographic table doesn't incorporate (not possible to tell when the insurance information was recorded)

Usage

1
get_demographics(supermart, sandbox, cohort)

Arguments

supermart

Name of the supermart where the data is stored. Eg. supermart_392

sandbox

Name of the writable location usually sandbox where cohort is saved

cohort

Name of the cohort with explorys_patient_id's

Value

A dataframe with flags of counts/data of demographic variables


aminyakubu/explorys documentation built on Dec. 13, 2020, 4:40 a.m.