https://github.com/rmgpanw/qof
Quality and Outcomes Framework (QOF) notes
https://github.com/rmgpanw/qof
ehr ehr-phenotyping nhs nhs-digital
Last synced: 8 months ago
JSON representation
Quality and Outcomes Framework (QOF) notes
- Host: GitHub
- URL: https://github.com/rmgpanw/qof
- Owner: rmgpanw
- Created: 2024-10-14T08:37:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T13:40:55.000Z (over 1 year ago)
- Last Synced: 2024-10-18T13:31:29.674Z (over 1 year ago)
- Topics: ehr, ehr-phenotyping, nhs, nhs-digital
- Language: R
- Homepage: https://rmgpanw.github.io/qof/
- Size: 2.64 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(magrittr)
library(stringr)
library(targets)
```
# Overview
A data science project built with [quarto](https://quarto.org/) and [targets](https://books.ropensci.org/targets/).
# Setup
- Create an R script called `_targets_config.R` in the project root directory with the following objects and populate:
```{r results='asis', eval=TRUE, echo=FALSE, warning=FALSE, message=FALSE}
result <- readLines(tar_read(TARGETS_CONFIG)) %>%
# subset for comments, object assignments and empty lines
subset(.,
str_detect(.,
"^#+ |<-|^$")) %>%
# remove assignments, leaving only object names
str_replace("<-.*$",
"<-") %>%
# print
paste(sep = "",
collapse = "\n")
cat(paste0("```",
"\n",
result,
"\n",
"```"))
```
- Install required R packages, ideally using [renv](https://rstudio.github.io/renv/) with `renv::init()`, or `renv::restore()` if a `renv.lock` file is already present.
- Run [targets pipeline](https://books.ropensci.org/targets/) with `tar_make()` in the R console.