Skip to content

Latest commit

 

History

History

documentation_patterns

Patterns

Here are patterns discussed in the article, and links to more complete documentation

Data Tier

Pattern Description
Extractor Exports through the REDCap API into R, and lightly manipulates data
Ellis Reads data from external agencies; only validated data is allowed entry into our warehouse
Ferry Moves data from the warehouse (in SQL Server) to REDCap
Arch Exports warehouse data (not REDCap data) to R and lightly munge
Redactor Removes patient-identifying information from a dataset
Record Set Removes patient-identifying information from a dataset

Domain Logic Tier

Pattern Description
Code Behind R file that can specify tables, graphs, or statistical models
Expensive Model Executes a long-running model, and caches the results to be consumed later

Presentation Tier

Pattern Description
Exploratory Markdown Report Rmd file that's interpreted by knitr to produce a Markdown document, that's eventually becomes an HTML document
Polished LaTeX Report Rnw file that's interpreted by knitr to produce a LaTeX document, that's eventually becomes an PDF document
(knitr common) Features Common to all knitr files/patterns

Figure A: Relationship between the Tiers

Tiers


Figure B: Examples of Data Tier Patterns

Extraverted