Add cte-plan-fixture.json, cte-result-fixture.json, and phase-summary-fixture.json — realistic Italian-language payloads for the cardiology DWH replay session, conforming exactly to contracts.md (A/B/C). Add augment-review-gates.mjs (pattern of augment-schema-linking.mjs): finds the F6 cte_plan gate, first CTE 1 cte_result gate, and Fase 5 phase-summary gate by title regex and swaps in the v2 artifact.data, so CtePlanViewer, CteResultViewer, and PhaseSummaryViewer render in the offline replay. Idempotent; exits 1 if an expected gate is missing. Document the augment scripts and re-extract note in tools/replay/README.md.
37 lines
1.6 KiB
JSON
37 lines
1.6 KiB
JSON
{
|
|
"schema_version": 2,
|
|
"name": "ablazioni_recenti",
|
|
"index": 1,
|
|
"total": 4,
|
|
"purpose": "Ablazioni transcatetere (ablazione_transcatetere IS TRUE) con data ∈ [2011-07-03, 2026-07-03].",
|
|
"rationale": "Punto di partenza della catena: isola l'evento indice (ablazione) prima di cercare l'impianto conseguente.",
|
|
"depends_on": [],
|
|
"sql": "WITH ablazioni_recenti AS (\n SELECT\n cod_paz,\n num,\n data_ablazione\n FROM fact_studio_elettrofisiologico_endocavitario_ablazione\n WHERE ablazione_transcatetere IS TRUE\n AND data_ablazione BETWEEN DATE '2011-07-03' AND DATE '2026-07-03'\n)\nSELECT * FROM ablazioni_recenti\nLIMIT 10;",
|
|
"status": "ok",
|
|
"execution_ms": 184,
|
|
"row_sample": 10,
|
|
"warnings": ["righe = limit: risultato troncato dalla preview"],
|
|
"sql_hash": "a3f6c9d1e8b2047f",
|
|
"columns": [
|
|
{ "name": "cod_paz", "description": "Codice paziente (FK a dim_patient)." },
|
|
{ "name": "num", "description": "Numero progressivo dell'episodio clinico per il paziente." },
|
|
{ "name": "data_ablazione", "description": "Data di esecuzione della procedura di ablazione." }
|
|
],
|
|
"preview": {
|
|
"columns": ["cod_paz", "num", "data_ablazione"],
|
|
"rows": [
|
|
[3758, 5, "2018-09-24"],
|
|
[8175, 473, "2025-05-19"],
|
|
[152185, 3, "2026-05-28"],
|
|
[20446, 61, "2018-05-14"],
|
|
[25492, 3, "2013-11-28"],
|
|
[4664, 94, "2016-05-31"],
|
|
[39149, 2, "2018-04-05"],
|
|
[7243, 38, "2012-12-12"],
|
|
[22310, 9, "2013-07-15"],
|
|
[4848, 408, "2011-10-05"]
|
|
]
|
|
},
|
|
"note": "Tutte le data_ablazione ricadono nel range [2011-07-03, 2026-07-03]; preview troncata a 10 righe. Mantiene le chiavi cod_paz e num."
|
|
}
|