Patient risk record and governance: one column per outcome, the model's estimand, single risk-batch decisions #21

Merged
edgar merged 4 commits from feature/cacu-ficha-riesgo-gobernanza into dev 2026-11-22 13:48:08 -06:00
Member

Four commits from integration/cacu-197-conciliacion, cherry-picked onto dev (after #20), with no conflicts.

Patient risk record

  • Reads every RiskAssessment of the patient, one per outcome. CaCu's table always has the LIEAG+ and cancer columns, each risk with its interval in parentheses; a column with no current model says "No disponible", and one whose model didn't estimate her says so, with the reason (extension sin-estimacion).
  • Shows what the model's number is (extension estimando) in a folded "Detalle del modelo".
  • A collapsible curve per outcome with its interval band and the index date on the x axis, under a sentence built from the index cytology's results (extension resultados-indice).

Governance

  • A model version lists only the routines its run recorded (the registry doesn't require them).
  • The risk-batch panel sends one decision at a time, so a double click doesn't confirm a batch twice.

Depends on the WebApi and Persistance changes that serve those extensions (one RiskAssessment per outcome, sin-estimacion, resultados-indice, estimando). Without them the record still works with a single RiskAssessment and simply has no estimand, sentence or not-estimated columns.

Tests: ng test 1952 passed; the 6 failures in connect/domain/saved-sql-connections.spec.ts fail on dev too. ng build passes.

Four commits from `integration/cacu-197-conciliacion`, cherry-picked onto `dev` (after #20), with no conflicts. **Patient risk record** - Reads every `RiskAssessment` of the patient, one per outcome. CaCu's table always has the LIEAG+ and cancer columns, each risk with its interval in parentheses; a column with no current model says "No disponible", and one whose model didn't estimate her says so, with the reason (extension `sin-estimacion`). - Shows what the model's number is (extension `estimando`) in a folded "Detalle del modelo". - A collapsible curve per outcome with its interval band and the index date on the x axis, under a sentence built from the index cytology's results (extension `resultados-indice`). **Governance** - A model version lists only the routines its run recorded (the registry doesn't require them). - The risk-batch panel sends one decision at a time, so a double click doesn't confirm a batch twice. **Depends on** the WebApi and Persistance changes that serve those extensions (one RiskAssessment per outcome, `sin-estimacion`, `resultados-indice`, `estimando`). Without them the record still works with a single RiskAssessment and simply has no estimand, sentence or not-estimated columns. **Tests**: `ng test` 1952 passed; the 6 failures in `connect/domain/saved-sql-connections.spec.ts` fail on `dev` too. `ng build` passes.
edgar added 4 commits 2026-11-22 09:50:45 -06:00
The record reads the RiskAssessment's `estimando` extension and shows the quantity, the outcome, the index date and
the interval's method, and names the table's columns with the quantity and the horizons' unit. Below the table, a
collapsible curve of the risk at each horizon, with its interval as a band (or as error bars when a horizon lacks
one); Plotly is loaded only when it's opened.

(cherry picked from commit 6039e6b741)
Not every model has each of the five routines, and the registry doesn't require them; the dialog showed the missing
ones as failures. It now lists the recorded ones and says so when there are none.

(cherry picked from commit b5bff7e0c6)
The record reads every RiskAssessment of the patient. CaCu's table always has the LIEAG+ and cancer columns, each
risk with its interval in parentheses; a column with no current model says "No disponible", and one whose model
didn't estimate her says so, with the reason under the table. Another outcome (a survival model's death) shows only
when she has its risk, with its own index date in its header. The models' details fold under the table, without the
interval's method; the collapsible curves draw one line per outcome with the index date on the x axis, under a
sentence that words the index cytology's results and each outcome's risk at the longest common horizon.

(cherry picked from commit 73b88de0ca)
(cherry picked from commit 88c1eb33be)
edgar merged commit 39e1e3e094 into dev 2026-11-22 13:48:08 -06:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ISSSTELEON/WebApp#21