Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CLAUDE.md

# Python
__pycache__
tamanu_source_dbt.egg-info/

# Dependencies
dbt_packages/
Expand Down
2 changes: 1 addition & 1 deletion .maui
Submodule .maui updated from 24608d to 9f724f
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ The generated assets are saved in the `compiled/` folder. The documentation is v
- Import script: `compiled/reports/importReports.js`
- Versioned documentation: `compiled/v{VERSION}/reporting-docs-v{VERSION}-{DEPLOYMENT}.html`

## Sensitive Facility Reporting

Set `has_sensitive_facility: true` in the `vars` block of `dbt_project.yml` to include models
tagged `restricted` (sensitive-facility dataset views) when generating reports and the reporting
schema script. When `false` (the default), those models are silently excluded from both
`generate_project_reports()` and `generate_reporting_schema_script()`.

The flag is read at script run-time from `dbt_project.yml` via `get_dbt_project_vars()`, not
from the dbt runtime context, so it must be set in the file before running the build scripts.

## Generate survey models
To automatically generate dbt models and documentation for surveys from database, execute the following command:
```
Expand Down
Loading
Loading