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*.
data_dia
data table, with diagnoses information.
numeric, defined IDs by merge_id, used for merging later.
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().
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().
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().
POSIXct, Date when the diagnosis was noted, corresponds to Date in RPDR. Converted to POSIXct format.
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.
string, Diagnosis, diagnosis-related group, or phenotype code, corresponds to Code in RPDR.
string, Standardized classification system or custom grouping associated with the diagnosis code, corresponds to Code_type in RPDR.
string, Qualifier for the diagnosis, if any, corresponds to Diagnosis_flag in RPDR.
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.
string, Provider of record for the encounter where the diagnosis was entered, corresponds to Provider in RPDR. Punctuation marks are removed.
string, Specific department/location where the patient encounter took place, corresponds to Clinic in RPDR. Punctuation marks are removed.
string, Facility where the encounter occurred, corresponds to Hospital in RPDR.
string, Identifies whether the diagnosis was noted during an inpatient or outpatient encounter, Punctuation marks are removed.
data.table