count_patients: Count the total number of patients seen between two dates.

Description Usage Arguments Value Examples

View source: R/count_patients.r

Description

This function counts the number of all patients seen between the given dates; specifically, any individual with a TST, QFT, encounter, or treatment during the period is counted.

Usage

1
count_patients(start_date, stop_date)

Arguments

start_date

The first Date on which to count patients

stop_date

The last Date on which to count patients

Value

The number of patients seen in the indicated period.

Examples

1
2
3
# Number of patients seen in the last thirty days
count_patients(start_date = Sys.Date() - 30,
               stop_date = Sys.Date())

mmparker/tbdbaid documentation built on May 23, 2019, 5:05 a.m.