Find previously unknown CTSI Study IDs in invoice_line_item data
Source:R/get_new_ctsi_study_ids.R
get_new_ctsi_study_ids.Rd
Given the service instance data and invoice line item data, identify the new CTSI Study IDs in the invoice line item data and return them on revised service instance records.
Value
service_instance records from the service_instance where `ctsi_study_id` was NA but is now known.
Examples
if (FALSE) { # \dontrun{
library(redcapcustodian)
library(rcc.billing)
library(RMariaDB)
library(DBI)
library(tidyverse)
library(dotenv)
rcc_billing_conn <- connect_to_rcc_billing_db()
service_instance <- tbl(rcc_billing_conn, "service_instance") %>%
collect()
invoice_line_item <- tbl(rcc_billing_conn, "invoice_line_item") %>%
collect()
get_new_ctsi_study_ids(service_instance, invoice_line_item)
} # }