Learn R Programming

parseRPDR (version 0.2.3)

data_dia: Example of processed dia.txt output from RPDR using the load_dia() function.

Description

Result of a dia.txt output from RPDR loaded into a data table in R using load_dia().

**NOTE**: Due to potential issues with PHI and PPI, the example datasets can be downloaded from the Partners Gitlab repository under *parserpdr-sample-data*.

Usage

data_dia

Arguments

Value

data table, with diagnoses information.

ID_MERGE

numeric, defined IDs by merge_id, used for merging later.

ID_dia_EMPI

string, Unique Partners-wide identifier assigned to the patient used to consolidate patient information from dia datasource, corresponds to EMPI in RPDR. Data is formatted using pretty_mrn().

ID_dia_PMRN

string, Epic medical record number. This value is unique across Epic instances within the Partners network from dia datasource, corresponds to EPIC_PMRN in RPDR. Data is formatted using pretty_mrn().

ID_dia_loc

string, if mrn_type == TRUE, then the data in MRN_Type and MRN are parsed into IDs corresponding to locations (loc). Data is formatted using pretty_mrn().

time_dia

POSIXct, Date when the diagnosis was noted, corresponds to Date in RPDR. Converted to POSIXct format.

dia_name

string, Name of the diagnosis, diagnosis-related group, or phenotype. For more information on available Phenotypes visit https://phenotypes.partners.org/phenotype_list.html, corresponds to Diagnosis_Name in RPDR.

dia_code

string, Diagnosis, diagnosis-related group, or phenotype code, corresponds to Code in RPDR.

dia_code_type

string, Standardized classification system or custom grouping associated with the diagnosis code, corresponds to Code_type in RPDR.

dia_flag

string, Qualifier for the diagnosis, if any, corresponds to Diagnosis_flag in RPDR.

dia_enc_num

string, Unique identifier of the record/visit. This values includes the source system, hospital, and a unique identifier within the source system, corresponds to Encounter_number in RPDR.

dia_provider

string, Provider of record for the encounter where the diagnosis was entered, corresponds to Provider in RPDR. Punctuation marks are removed.

dia_clinic

string, Specific department/location where the patient encounter took place, corresponds to Clinic in RPDR. Punctuation marks are removed.

dia_hosp

string, Facility where the encounter occurred, corresponds to Hospital in RPDR.

dia_inpatient

string, Identifies whether the diagnosis was noted during an inpatient or outpatient encounter, Punctuation marks are removed.

Format

data.table