va_lag: Visit-Arrival Lag

Description Usage Arguments Value

View source: R/va_lag.R

Description

Calculates the average time lag between when: a patient arrives and the first record for their visit is received by the NSSP BioSense Platform. A summary is returned at the facility level.

Usage

1

Arguments

data

The raw data from BioSense on which you will do these summaries.

names

A table of Facility_Name and C_Biosense_Facility_ID which taken from the MFT using the 'pull_data' function.

offset

The number of hours you wish to offset Arrived_Date_Time (which is in UTC). The offset value is how far off your local time zone is from UTC. For example, the Central Time Zone would set this to 5 or 6, depending on if it is daylight savings or not. This value should be an integer.

Value

A data frame with three columns: facility name, facility ID, and average lag between patient visit and first record arrival.


markhwhiteii/biosensequality documentation built on May 14, 2019, 7:43 a.m.