feat(cama): regular follow-up read from the cohort, with the revision refreshed on a new cut-off

The follow-up tab of breast cancer now reads the cohort the analysis publishes: it asks for the
cohort's revision at today's cut-off and lists the whole cohort quoting it. Where the server does
not publish the cohort (404 or 503 on its aggregate) the plain follow-up list is read.

- Another cut-off in the form asks for that cut-off's revision before the list; a revision that
  changes under the list (409) is asked for again once and the same query repeated, and a conflict
  that persists is reported.
- "Quitar selección" returns to the whole cohort instead of another source.
- An empty whole cohort says "Sin pacientes para el corte seleccionado"; filters and windows keep
  the text of the filters.
- Filters, cut-off, page and rows are kept while a record is opened and closed.
- Page specs that open CaMa follow-up answer the aggregate first.
This commit is contained in:
Angel Capetillo Zavala
2026-11-13 15:18:11 -06:00
parent 2b0f6dfbed
commit 7971a49dcd
10 changed files with 285 additions and 41 deletions
@@ -55,6 +55,8 @@ describe('Secciones compartidas por dominio', () => {
pestana('seguimiento').click(); harness.detectChanges();
// CaCu and CaMa request their own follow-up when the tab opens; the lab WebApi has neither yet (404).
if (domain !== 'tea') {
// CaMa asks for the cohort's revision first and reads the plain list when the cohort is not published.
if (domain === 'cama') { http.expectOne(r => r.url === '/cama/analisis/indicadores').flush({}, { status: 404, statusText: 'Pending' }); }
http.expectOne(r => r.url === '/' + domain + '/seguimiento').flush({}, { status: 404, statusText: 'Pending' });
harness.detectChanges();
}