Closed pbchase closed 4 months ago
Instead of create_redcap_project_line_items()
, let's make two functions:
get_target_projects_to_invoice <- function() {
}
get_project_service_instances <- function() {
}
Leave the write events in the ETL. That will allow data for different service_types to be bound together before the I/O.
There's yet another function that can be--and should be--refactored out of the ETL. get_new_project_invoice_line_items()
will make the invoice line items for new projects. This function will produce output much like that from create_service_request_line_items()
described in Issue #203
Addressed by PR #230
Refactor
create_and_send_new_redcap_prod_per_project_line_items.R
in preparation for service request line items.create_redcap_project_line_items()
id
column in the functioncreate_redcap_project_line_items()
that use test-local datacreate_and_send_new_redcap_prod_per_project_line_items.R
replace the refactored code with the call tocreate_redcap_project_line_items()
create_and_send_new_redcap_prod_per_project_line_items.R
, just before the write step, set theid
column.create_and_send_new_redcap_prod_per_project_line_items.R
tosend_new_invoice_line_items.R