getDemographics: Retrieves patient demographic data

Description Usage Arguments Value Examples

View source: R/getDemographics.R

Description

Compiles demographic data for all patients or a given patient list if provided. Concepts are mapped through the created data ontology. Demographic data are retrieved from 'person' and 'death' tables and include: birthdate, deathdate, gender, ethnicity, and race.

Usage

1
getDemographics(patient_list = NULL, declare = FALSE)

Arguments

patient_list

NULL or comma-separated string of patient ids. A provdied patient_list will restrict search to ids. NULL will return demographic data for all available patients.

declare

TRUE/FALSE will output status and data information during the process

Value

table of mapped demographic concepts for all patients or specific ones for a provided csv formmated string of ids

Examples

1
ptDemo <- getDemographics(patient_list=NULL,declare=TRUE)

BenGlicksberg/ROMOP documentation built on March 6, 2020, 8:15 p.m.