read.bfs.Rd
Conversion and import of the BfS data file to an R tibble
read.bfs(f, hosptyp = "K111")
path to BfS formatted file containing data of one or more hospitals
type of hospital (default is K111 - University hospital)
tibble
with 39 columns which are:
int - Encounter identifier - generated
chr - Hospital identifier
chr - hospital type - default is K111 - university hospital
chr - Location identifier
chr - Patient identifier
chr - Hospital statistic encounter identifier
chr - Statistic case type: A, B or C
chr - Sex
date - Date of birth
date - Admission date
date - Discharge date
int - Age in years
int - Age in days
chr - Age-sex group
int - Leave days
int - Length of stay
int - Length of stay on ICU
chr - Location before admission
chr - Department
chr - Discharge status
chr - Location after discharge
chr - Vital status
int - Birth weight
int - Admission weight
chr - Principal diagnosis
chr - Secondary diagnosis
chr - All diagnoses
chr - All procedures
date - All procedures dates
int - Day of each procedure from admission day
int - Hours of mechanical ventilation
date - 1st interim discharge date
date - 1st interim admission date
date - 2nd interim discharge date
date - 2nd interim admission date
date - 3rd interim discharge date
date - 3rd interim admission date
date - 4th interim discharge date
date - 4th interim admission date
int - interim leave days