Learn R Programming

parseRPDR (version 0.2.3)

data_lab_raw: Example of lab.txt output from RPDR.

Description

A lab.txt output from RPDR loaded into a data table in R using data.table::fread().

**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_lab_raw

Arguments

Value

data table, imported from lab.txt

EMPI

numeric, Unique Partners-wide identifier assigned to the patient used to consolidate patient information.

EPIC_PMRN

numeric, Epic medical record number. This value is unique across Epic instances within the Partners network.

MRN_Type

string, Indicates the institution associated with a specific MRN. This can appear as a comma-delimited list if MRNs from multiple Partners Health System institutions are available.

MRN

string, Unique Medical Record Number for the site identified in the 'MRN_Type' field. This can appear as a comma-delimited list if multiple MRNs from Partners hospitals are available.

Seq_Date_Time

string, Date when the specimen was collected.

Group_Id

string, Higher-level grouping concept used to consolidate similar tests across hospitals.

Loinc_Code

string, Standardized LOINC code for the laboratory test.

Test_Id

string, Internal identifier for the test used by the source system.

Test_Description

string, Name of the lab test.

Result

string, Result value for the test.

Result_Text

string, Additional information included with the result. This can include instructions for interpretation or comments from the laboratory.

Abnormal_Flag

string, Flag for identifying if values are outside of normal ranges or represent a significant deviation from previous values.

Reference_Units

numeric, Units associated with the result value.

Reference_Range

string, Normal or therapeutic range for this value.

Toxic_Range

string, Reference range of values defined as being toxic to the patient.

Specimen_Type

string, Type of specimen collected to perform the test.

Specimen_Text

string, Free-text information about the specimen, its collection or its integrity.

Correction_Flag

string, Free-text information about any changes made to the results.

Test_Status

string, Flag which indicates whether the procedure is pending or complete.

Ordering_Doc_Name

string, Name of the ordering physician.

Accession

string, Internal tracking number assigned to the specimen for identification in the lab.

Source

string, Database source, either CDR (Clinical Data Repository) or RPDR (internal RPDR database).

Format

data.table