Commit 37e3444
Bug #5b: extend patient_id UPDATE to Tier 3 variants + apply pending-PR routines in orchestrator
Two changes:
1. Extend bug #5b's patient_id-NULL fix to the 10 multi-condition
nrt_investigation variants (22000010-22000100) and the Tetanus
variant (22000200). The original cherry-pick (bb7cec9) only set
patient_id on the foundation Inv (20000100); the Tier 3 variants
left it NULL, so the same DELETE-by-sentinel-PATIENT_UID cascade
that blocks HEPATITIS_DATAMART would block any condition-datamart
SP whose query path goes through F_PAGE_CASE -> D_PATIENT lookup.
2. New orchestrator step 2.5 apply_pending_pr_routines pulls each
pending-PR routine (PRs #837, #839, #840) from its bug branch via
`git show` and applies it to the freshly-reset DB before fixtures.
Without this the orchestrator aborts at step 8 on
ldf_answers_tetanus.sql (bug #7 early-RETURN guard fires on a SUB
data_type ldf_uid, and bug #8 SUBSTRING fires on the tetanus
datamart SP). Remove a branch from the list once its PR merges and
the baseline image is refreshed.
End-to-end coverage uplift vs. coverage_tier_3.md baseline:
HEPATITIS_DATAMART 0 -> 1 (5b)
COVID_CASE_DATAMART 0 -> 1 (5b on 22000070)
BMIRD_STREP_PNEUMO_DATAMART 0 -> 1 (5b on 22000100)
F_PAGE_CASE 1 -> 6 (multi-condition + 5b)
LDF_DIMENSIONAL_DATA 0 -> 5 (PR #839 bug-7)
MORB_RPT_USER_COMMENT 0 -> 1 (PR #837 bug-3)
Still 0 (separate per-condition blockers, not 5b-related): HEPATITIS_CASE,
HEP100, F_STD_PAGE_CASE, STD_HIV_DATAMART, TB_DATAMART, VAR_DATAMART,
LDF_TETANUS, LDF_HEPATITIS — see coverage_hep_datamart_investigation.md
for per-condition diagnoses.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent bb7cec9 commit 37e3444
3 files changed
Lines changed: 69 additions & 0 deletions
File tree
- utilities/comparison-fixtures
- fixtures/30_sp_coverage
- scripts
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
123 | 133 | | |
124 | 134 | | |
125 | 135 | | |
| |||
Lines changed: 54 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
185 | 238 | | |
186 | 239 | | |
187 | 240 | | |
| |||
579 | 632 | | |
580 | 633 | | |
581 | 634 | | |
| 635 | + | |
582 | 636 | | |
583 | 637 | | |
584 | 638 | | |
| |||
0 commit comments