filter_investigations_appointment: List of investigations with appointments

View source: R/administrative_incoming.R

filter_investigations_appointmentR Documentation

List of investigations with appointments

Description

Filtered by date, and chosen clinicians added information about appointments scheduled after the 'Checked' date Stores result in $investigations_filtered_appointments

Usage

filter_investigations_appointment(
  dMeasure_obj,
  date_from = NA,
  date_to = NA,
  clinicians = NA,
  Action = NA,
  Actioned = NA,
  ignorePast = NA,
  lazy = FALSE
)

Arguments

dMeasure_obj

dMeasure R6 object

date_from

(default dMeasure_obj$date_a) start date

date_to

(default dMeasure_obj$date_b) end date (inclusive)

clinicians

(default dMeasure_obj$clinicians) list of clinicians to view

Action

(default NA) Filter by action? a vector of actions (in string form) or NULL e.g. "Urgent Appointment" and/or "Non-urgent Appointment" or "No action" if NA, will adopt the value of $filter_incoming_Action

Actioned

(default NA) Filter by having been 'actioned?' i.e. notified can be logical (TRUE or FALSE), a NULL or a Date (actioned prior to or by 'Actioned' Date) if NA, will adopt the value of $filter_incoming_Actioned

ignorePast

(default NA) don't include appointments before current Sys.Date() if NA, adopts $filter_incoming_ignorePast

lazy

(default FALSE) if TRUE, don't 'call' filter_investigations to re-calculate

Value

list of investigations with relevant appointments


DavidPatShuiFong/dMeasure documentation built on Aug. 2, 2024, 11:45 p.m.