all_ids_mi2b2: Legacy function to create a vector of all possible IDs for...

View source: R/all_ids_mi2b2.R

all_ids_mi2b2R Documentation

Legacy function to create a vector of all possible IDs for mi2b2 workbench

Description

Legacy function to gather all possible MGH and BWH IDs from mrn.txt and con.txt input sources to provide a vector of all possible MGH or BWH IDs to be used as a data request for mi2b2 workbench.

Usage

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

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.

Value

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

Examples

## Not run: 
all_MGH_mrn <- all_ids_mi2b2(type = "MGH", d_mrn = data_mrn, d_con = data_con)

## End(Not run)

parseRPDR documentation built on June 24, 2024, 5:16 p.m.