Learn R Programming

parseRPDR (version 0.2.3)

data_med_raw: Example of med.txt output from RPDR.

Description

A med.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_med_raw

Arguments

Value

data table, imported from med.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.

Medication_Date

string, Completion status of the requested test/transfusion.

Medication_Date_Detail

string, To clarify when patients may have stopped taking a medication, this column provides the statuses of 'Listed' or 'Removed'. This is provided on pre-Epic (LMR) medication dates (1997-2017). The 'Listed' value denotes that a medication was on the patient's medication list on the date indicated. The 'Removed' value denotes that a medication was removed from a patient's medication list on the date indicated.

Medication

string, Name of the medication. This may be appended with the source system in the case of OnCall and LMR medications.

Code_Type

boolean, Standardized classification system or custom source value used to identify the medication.

Code

string, Medication code associated with the "Code_type" value.

Quantity

string, Number of units of the medication ordered.

Provider

string, Ordering provider for the medication.

Clinic

string, Specific department/location where the medication was ordered or administered.

Hospital

numeric, Facility where the medication was ordered or administered.

Inpatient_Outpatient

string, Identifies whether the medication was ordered with an Inpatient or Outpatient indication.

Encounter_number

number, Unique identifier of the record/visit, displayed in the following format: Source System - Institution Number.

Additional_Info

number, Additional administration information about the medication.

Format

data.table