getPatientData: This function fetches all the patient data (generic)

Description Usage Arguments Details Value Examples

Description

This function fetches all the patient data (generic). Returns raw patient data.

Usage

1
2
getPatientData(connection, dbms, patient_ids, keywords, flags, schema,
  removeDomains = c(""))

Arguments

connection

The connection to the database server.

dbms

The target DBMS for SQL to be rendered in.

patient_ids

The list of case patient id's to extract data from - NOT a data.frame.

keywords

The list of concept_id's that are NOT wanted to be used as features

flags

The R dataframe that contains all feature/model flags specified in settings.R.

schema

The database schema being used.

removeDomains=”

List of domains to not include as features, if any are specified in settings file

Details

Based on the groups of feature sets determined in the flags variable, this function will fetch patient data. The function returns all patient information

Value

An object containing the raw feature sets for the patient data.

Examples

1
2
3
4
5
6
## Not run: 

 dataFcontrols <- getPatientData(conn, dbms, controls, flag , cdmSchema)


## End(Not run)

OHDSI/Aphrodite documentation built on Sept. 18, 2020, 10:26 p.m.