patient_length_of_stay {ExamPAData}R Documentation

Patient Length of Stay

Description

Data used on June 16, 2020 Exam PA

Usage

patient_length_of_stay

Format

data.frame, 10000 observations of 13 variables:

days

Number of days between admission into and discharge from hospital. Integer 1 - 14.

gender

Patient gender. Male or Female.

age

Patient age (in 10-year age bands). [0, 10), [10, 20), ..., [90, 100)

race

patient race. AfricanAmerican, Asian, Caucasian, Hispanic, Other.

weight

Patient weight (in 25-pound weight bands). [0, 25), [25, 50), [175, 200)

admit_type_id

Identifier corresponding to the type of hospital admission. 1 = Emergency, 2 = Urgent, 3 = Elective, 4 = Not Available.

metformin

Indicates whether upon admission, metformin was prescribed or there was a change in the dosage. Up = dosage was increased, Down = dosage was decreased, Steady = dosage did not change, No = drug was not prescribed.

insulin

Indicates whether upon admission, insulin was prescribed or there was a change in the dosage. Up = dosage was increased, Down = dosage was decreased, Steady = dosage did not change, No = drug was not prescribed.

readmitted

Indicates whether patient had been readmitted after an inpatient stay in the twelve months preceding the encounter. <30 = patient was readmitted in less than 30 days, >30 = patient was readmitted in more than 30 days, No = no record of readmission.

num_procs

Number of procedures performed in the twelve months preceding the encounter. Integer 0 - 6.

num_meds

Number of distinct medications administered in the twelve months preceding the encounter. Integer 1 - 67.

num_ip

Number of the inpatient visits of the patient in the twelve months preceding the encounter. Integer 0 -21.

num_diags

Number of diagnoses entered to the system in the twelve months preceding the encounter. Integer 1 - 16.


[Package ExamPAData version 0.5.0 Index]