Learn R Programming

parseRPDR (version 0.2.4)

all_ids_mi2b2: Creates a vector of all possible IDs for mi2b2 workbench

Description

Gathers all possible IDs from different input sources to provide a vector of all possible MGH or BWH IDs to be used as a data request for mi2b2 workbench. mi2b2 workbench only works with MGH or BWH IDs, therefore curated IDs, such as PMRN cannot be used. However, as MGH and BWH IDs may change over time, to access all possible images for given patients, a full list of all IDs over time for each patient is needed. For this all possible IDs need to gathered and returned.

Usage

all_ids_mi2b2(type = "MGH", d_mrn, d_con)

Value

vector, with all MGH or BWH IDs that occur in the con and mrn datasources for all patients. This is required to request mi2b2 workbench allowing access to all possible images of the patients, even if the MGH or BWH changed over time.

Arguments

type

string, either "MGH" or "BWH" specifying which IDs to use.

d_mrn

data.table, parsed mrn dataset using the load_mrn function.

d_con

data.table, parsed con dataset using the load_con function.

Examples

Run this code
if (FALSE) {
all_MGH_mrn <- all_ids_mi2b2(type = "MGH", d_mrn = data_mrn, d_con = data_con)
}

Run the code above in your browser using DataLab