match_patient: match_patient For Dr.Warehouse and i2b2

Description Usage Arguments Value

View source: R/queries.R

Description

Match n (n_match) patients given the gender (sexe), the birth_year (birth_year) within a range (birth_range) the count of unique concepts (uniq_concepts) within a range (concepts_range) excluding patients in a cohort/patient set

Usage

1
2
3
match_patient(num = NULL, num_type = NULL, sex = NULL,
  birth_year = NULL, birth_range = NULL, uniq_concepts = NULL,
  concepts_range = NULL, n_match = NULL, config = NULL)

Arguments

num

the identifier of the cohort/num_temp to exclude patients

num_type

type of num: one of c('num_temp', 'cohorte')

birth_year

reference birth_year

birth_range

integer >= 0 to compute the range of authorized birth_years for matching. the range will be: [birth_years - birth_range ; birth_year + birth_range]

uniq_concepts

reference count of unique concepts

config

a config environment created by the function getConfig.

sexe

reference gender

concepts_range.

float > 0 to compute the range of authorized uniq_concepts for matching. the range will be: [uniq_concepts - (uniq_concepts * concepts_range) ; uniq_concepts + (uniq_concepts * concepts_range)]

n_match:

number of patients to match

Value

a vector of matched patient_nums


aneuraz/DWHtools2 documentation built on Sept. 6, 2019, 8:11 p.m.