Skip to contents

Overview

The goal of osdc (Open Source Diabetes Classifier) is to expose an algorithm for classifying diabetes within the Danish registers that can be accessible as an R package. The algorithm that has been developed at Steno Diabetes Center Aarhus is flexible and convenient to use, and validated in terms of accuracy. While there are a few algorithms used throughout Denmark for Danish register research, they are usually textual descriptions of how to do it, rather than code-based descriptions (e.g. the Register of Selected Chronic Diseases).

In this project, we aim to make it easier and more explicit to classify type 1 and type 2 diabetes within a Danish register context. The original implementation of the algorithm is validated in a peer-reviewed publication here, but we expect to make tweaks to the algorithm over time. Any changes will be transparent in the osdc repository.

Installation

You can install the development version of osdc from GitHub with:

# install.packages("pak")
pak::pak("steno-aarhus/osdc")

To install all dependencies for development only, like simulating more data or running the full test suite, use:

pak::pak(
  "steno-aarhus/osdc",
  dependencies = c("all", "Config/Needs/data")
)

Development

When developing the package and you make changes to any of the files in data-raw/, use the targets pipeline to re-generate the data files:

# install.packages("targets")
targets::tar_make()

Code of Conduct

Please note that the osdc project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.