dm_mrs_cause: Star Definition for Mortality Reporting System by Cause

dm_mrs_causeR Documentation

Star Definition for Mortality Reporting System by Cause

Description

Definition of facts and dimensions for the Mortality Reporting System considering the cause classification.

Usage

dm_mrs_cause

Format

A dimensional_model object.

Examples

# Defined by:

dm_mrs_cause <- dimensional_model() |>
  define_fact(
    name = "mrs_cause",
    measures = c(
      "Pneumonia and Influenza Deaths",
      "Other Deaths"
    ),
  ) |>
  define_dimension(
    name = "when",
    attributes = c(
      "Week Ending Date",
      "WEEK",
      "Year"
    )
  ) |>
  define_dimension(
    name = "when_received",
    attributes = c(
      "Reception Date",
      "Reception Week",
      "Reception Year"
    )
  ) |>
  define_dimension(
    name = "when_available",
    attributes = c(
      "Data Availability Date",
      "Data Availability Week",
      "Data Availability Year"
    )
  ) |>
  define_dimension(
    name = "where",
    attributes = c(
      "REGION",
      "State",
      "City"
    )
  )


josesamos/starschemar documentation built on May 6, 2024, 5:57 a.m.