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. It returns one month of data. By default, the data returned is from the previous month. You can return the current month by setting `months_previous = 0`. Get earlier months by setting `months_previous` to higher number.
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
- months_previous
A double indicating how many months back we should look when querying the service_requests for service_request_lines. Defaults to 1.