Skip to content

Live Maui: repair the All Patients segment before the corpus is switched on #536

Description

@Taleef7

What happens if it is skipped

Maui's All Patients segment was seeded when the roster spanned two clinics. The 20,000-patient corpus (ADR-075) spans five, and case creation is gated by segment applicability, so on the first corpus run 52 % of patients (10,435 of 20,000) get outcomes but no cases: roster cells read NOT_APPLICABLE and no work list surfaces them. Nothing in the data is wrong; everything the staff can act on is missing for half the panel.

Why it is a manual step

ensureSegmentSeed creates and never mutates, by design, so the live segment still lists the two fixture clinics. The repair is one audited PUT /api/segments/<id> adding the corpus sites, documented in DEPLOY.md under "One-time segment repair after adding a tenant", beside the corpus-size setting.

Done when

The live segment lists every corpus site, a manual run through /api/runs/manual shows case counts in proportion to the outcome counts across all five sites, and the segment update's audit row is in the ledger. Sequenced before the corpus is switched on for the Maui sandbox.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    owner-opsOwner-run operational step, not agent code

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions