tidy_services: Tidy services

Description Usage Arguments Details Value

Description

tidy_services tidy medical service history data

Usage

1
tidy_services(raw.data)

Arguments

raw.data

A data frame with service data

Details

This function takes a data frame with medical service history and produces a tidy version with service begin and end dates/times. It accounts for incorrect end times from raw EDW data by calculating the end time using the start time of the next service (unless it was the patient's last service during the hospitalization). It also combines multiple rows of data when the patient did not actually leave that service. The data should be read in by read_edw_data.

Value

A data frame


bgulbis/BGTools documentation built on May 12, 2019, 8:21 p.m.