query_tx_plans: Query all treatment plans from TBdb

Description Usage Arguments Examples

View source: R/query_tx_plans.r

Description

This function provides a standardized method for querying all treatment plan statuses (including multiples per patient) from TBdb, including plan type, plan author, start date, end date (if completed), reason stopped, plan author, and number of treatments completed

Usage

1
query_tx_plans(start_date, stop_date = Sys.Date())

Arguments

start_date

The start date of the earliest treatment plans to query

stop_date

The start date of the latest treatment plans to query

Examples

1
2
3
# Query all treatment plans started in the last week
query_tx_plans(start_date = Sys.Date() - 7,
               stop_date = Sys.Date())

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