Run a static briefing

BNR info-hub Technical Manual

1 Run a static briefing

1.1 Purpose

This guide explains how to run a static BNR briefing through the new info-hub workflow.

It uses the 2023 CVD case-count briefing as the example.

The pathway is:

Stata DO file -> outputs/public/briefings/{briefing_id}/ -> site/downloads/files/briefings/{briefing_id}/ -> Quarto HTML/PDF -> release catalogue

1.2 Current pilot briefing

Item Value
Briefing CVD case counts, 2023
Briefing ID cvd_cases_2023_v1
Main Stata file scripts/stata/briefings/cvd_cases_2023/cvd_cases_2023.do
HTML page site/surveillance/cvd/briefings/case-counts.qmd
PDF page site/surveillance/cvd/briefings/case-counts-pdf.qmd
Canonical output bundle outputs/public/briefings/cvd_cases_2023_v1/
Site download copy site/downloads/files/briefings/cvd_cases_2023_v1/

2 Stage 1: Confirm prerequisites

Check that this file exists:

scripts/stata/config/bnr_paths_LOCAL.do

This file is machine-specific and must not be committed to Git.

If it is missing, copy and edit:

scripts/stata/config/bnr_paths_TEMPLATE.do

The Stata briefing expects confidential source data and private prepared datasets under:

C:\yoshimi-hot\output\analyse-bnr\info-hub-private

Do not place confidential data under info-hub/.

3 Stage 2: Run the Stata briefing

In Stata, run:

cd "C:/yoshimi-hot/output/analyse-bnr/info-hub"
do "scripts/stata/briefings/cvd_cases_2023/cvd_cases_2023.do"

The DO file should create:

  • public CSV tables
  • public PNG figures
  • public figure-ready CSV data
  • meta.yml
  • build.yml

4 Stage 3: Check the canonical output bundle

Expected folder:

outputs/public/briefings/cvd_cases_2023_v1/

Expected contents:

tables/
figures/
data/
meta.yml
build.yml
tables/cases_2023_sex_event.csv
tables/age70_2023_sex_event.csv
figures/cases_2023_cum_week.png
figures/cases_2023_age70.png
data/cases_2023_cum_week.csv
data/cases_2023_age70.csv
meta.yml
build.yml

Do not manually edit generated outputs.

Fix the Stata DO file and rerun it.

5 Stage 4: Copy approved Stata outputs into the site

From PowerShell, run:

$repo = "C:\yoshimi-hot\output\analyse-bnr\info-hub"
$briefing = "cvd_cases_2023_v1"

$source = "$repo\outputs\public\briefings\$briefing"
$target = "$repo\site\downloads\files\briefings\$briefing"

New-Item -ItemType Directory -Force -Path $target | Out-Null
Copy-Item "$source\*" $target -Recurse -Force

6 Stage 5: Render the PDF briefing

cd C:\yoshimi-hot\output\analyse-bnr\info-hub\site
quarto render surveillance/cvd/briefings/case-counts-pdf.qmd --to typst

7 Stage 6: Preview and check

quarto preview --port 4200

Check:

  • HTML page renders
  • PDF link works
  • figures appear
  • CSV links work
  • metadata and build links work
  • release catalogue entry works
  • no private local paths appear
Back to top