Skip to contents

This function processes a dataset of service requests to extract and transform various service details. It groups response data by record_id, service_date, and probono status to summarize response data and create a source dataset for invoice line items and other tasks.

Usage

get_service_request_lines(service_requests, return_all_records = F)

Arguments

service_requests

A data frame of service requests, REDCap Service Request PID 1414.

return_all_records

A boolean to indicate every record should be returned or just last month's records

Value

A data frame with response details to the service request

Examples

if (FALSE) { # \dontrun{
# get just last month's records
service_request_lines <- get_service_request_lines(service_requests)

# get all the records
service_request_lines <- get_service_request_lines(service_requests, return_all_records = T)
} # }