getPatientDataStartEnd: This function fetches all the patient data (generic) - from a...

Description Usage Arguments Details Value Examples

Description

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

Usage

1
2
getPatientDataStartEnd(connection, dbms, patient_ids, startDate, endDate,
  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.

startDate

The start index date for all patients

endDate

The end date to fetch data from patients

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 within the specified time range 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: 

 patientData <- getPatientDataStartEnd(conn, dbms, patient_ids, start_dates, end_dates, flag , cdmSchema)


## End(Not run)

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