An open API service indexing awesome lists of open source software.

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

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.