getPatientDataCases: This function fetches all the patient data (non-generic)...

Description Usage Arguments Details Value Examples

Description

This function fetches all the patient data (non-generic) designed to work when building a model. Returns raw patient data.

Usage

1
2
getPatientDataCases(connection, dbms, patient_ids, keywords, ignores,
  flags, schema, removeDomains = "", searchDomain)

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.

keywords

The list of concept_id's used to build the cohort.

ignores

The list of concept_id's ignored when building the cohort.

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 determines the first mention of the keywords and selects that date to start the data extraction of the remaining patient information

Value

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

Examples

1
2
3
4
5
6
7
## Not run: 

 dataFcases <-getPatientDataCases(conn, dbms, cases, as.character(keywordList_FF$V3),
         flag , cdmSchema)


## End(Not run)

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