In clinical drug development the goal is produce reliable evidence on whether or not a product is both safe and efficacious
This process involves multi-disciplinary stakeholders coming together to review evidence which is generated a highly regulated manner.
Working a regulated way as a statistician or programmer in pharma has three key pillars?
Big-bang, disrutptive change takes time in a regulated environment.
Non-disruptive change can help us make incremental progress to get ready for change.
Non-disruptive change for automated report generation
Let’s bring the modern tooling and practices to static document generation so that we can retain reproducibilty and work at scale.
What: Sample size report generation
Our trial statisticans estimate and document the sample size for studies using a company template in docx format. It is mandatory that the report complies with the company template.
How: successful development and change is so much more than good code
Mandatory elements are represented as R6 classes where each attribute has a unique input requirement that goes through a series of checks.
Mandatory elements are represented as R6 classes where each attribute has a unique input requirement that goes through a series of checks.
# Initiate change log table
changelog_table <- rdocx::ChangelogTable$new()
row_1 <- rdocx::ChangelogTableRow$new(
date = '01-Feb-2024',
time_point = 'Before protocol finalization',
reason_update = 'Creation of first version',
outcome_update = 'NA - First version',
section_title_impacted = 'NA')
changelog_table$add_row(row_1)
Check document template and render:
A log file will be generated documenting the following:
sessionInfo())
The template is copyright protected by Novartis and should not be used for template preparation.
We use object-oriented (R6 classes) to structure our package.
We could create many assertions to do perform upfront checks.
Error in check_string_is_date(release_date) :
`Date` was not provided in the expected format (%d-%b-%Y). For example: 01-Oct-2023
We have automated tests and check for each incremental change in to the rdocx package.
