Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ] Database schema, naming convention and documentation #118

Open
peterdutey opened this issue May 11, 2024 · 0 comments
Open

[REQ] Database schema, naming convention and documentation #118

peterdutey opened this issue May 11, 2024 · 0 comments
Labels
data-modelling documentation Improvements or additions to documentation REQUIREMENT

Comments

@peterdutey
Copy link
Collaborator

peterdutey commented May 11, 2024

Overview

The Ramses data model follows a fact constellation schema design to accommodate the various many-to-many relationships that exist between medication prescriptions, hospital stays, and the many associated dimensions, chiefly time (particularly date/month/quarter/year), antibiotic classes (ATC, AWaRe, and other groupings).

Table naming convention

Every table generated by the Ramses package should be named prefix_domain_item_

Prefixes (mandatory component):

  • fact: to designate fact tables storing Fact tables, which are the database representations of clinical processes such as medication prescription, medication administrations, or hospital encounters.
  • dimension: to designate tables storing Dimensions, which characterise clinical processes
  • bridge: to designate tables for facilitating many-to-many relationships between Facts and Dimensions.

Domain (optional component):

  • medication for medication-related facts and dimensions
  • microbiology for tables related to antimicrobial culture and susceptibility testing
  • inpatient for tables related to inpatient wards
  • outpatient for tables relating to outpatient department

Item (mandatory component):

  • one or more words designating what a table row corresponds to.

Documentation

Users will need:

  • a vignette presenting a database model diagram linking facts and dimensions and a demo of dplyr joins
  • a data dictionary for each table
  • signposting to training resources about database modelling

Related issues

#109 #73 #104

@peterdutey peterdutey added documentation Improvements or additions to documentation data-modelling REQUIREMENT labels May 11, 2024
@peterdutey peterdutey added this to To do in Ramses development via automation May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-modelling documentation Improvements or additions to documentation REQUIREMENT
Projects
Development

No branches or pull requests

1 participant