Skip to content

Notice Versioning: Manifest and Notice Catalog - #214

Draft
TiaTuinstra wants to merge 2 commits into
mainfrom
feat/notice-version
Draft

Notice Versioning: Manifest and Notice Catalog#214
TiaTuinstra wants to merge 2 commits into
mainfrom
feat/notice-version

Conversation

@TiaTuinstra

Copy link
Copy Markdown
Collaborator

Notice versioning (assignment manifest mode): a new optional mode that maps each client to a specific notice version and language via a JSON assignment manifest. When --notice-assignments <file> is provided and config/notice_versions.yaml exists, the pipeline dispatches each client to the correct template and language individually - enabling a single run to produce overdue, affirmative, and informational notices in mixed languages. When the catalog file is absent, the pipeline behaves identically to before.

Added:

  • New pipeline/notice_versioning.py module: NoticeVersionCatalog, NoticeVersion, ResolvedNotice, load_catalog(), validate_eligibility().
  • New pipeline/assignment_manifest.py module: ManifestRow, ReconciliationResult, load_manifest(), reconcile(), has_errors(), print_preflight_summary().
  • New --notice-assignments PATH CLI argument; language becomes optional (can be omitted when using manifest mode).
  • Preflight gate after preprocessing in manifest mode: missing clients, unknown version IDs, and eligibility conflicts (e.g., affirmative notice assigned to a client with vaccines due) are caught before any PDF is generated.
  • Per-run assignment metadata file output/metadata/notice_assignments_<run_id>.json written in manifest mode (no PII fields).
  • notice_versioning config block in parameters.yaml for allow_unassigned and extra_manifest_rows policy controls.
  • Example config/notice_versions.yaml with overdue_standard_v1 and affirmative_schedule_v1.

@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

@TiaTuinstra TiaTuinstra changed the title Notice versioning draft implementation using manifest and notice catalog Notice Versioning: Manifest and Notice Catalog Sep 4, 2026
… of overdue agents on notices (rather than diseases)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grouping of overdue diseases by typical vaccine provided Multiple notice versions Support workflow for up-to-date students

1 participant