Commit Graph

25 Commits

Author SHA1 Message Date
alberto 3f6fa28590 TEA patient pages: the record and the risk analysis page
Keep the TEA record branch inside Paciente and lazy-load the risk route.
Separate FHIR adaptation, figures, shared section rendering, and PDF
content under paciente. Use the existing section cards, tables, and
buttons, with flexible summary fields and scrollable detail tables.

Read the Patient by _id with Observation, DiagnosticReport, and
RiskAssessment reverse includes. Group neurology observations by
encounter, use aggregate ADOS-2 evaluations, and use the lab-record
observation for EEG dates without reports. Order the timeline and exams
newest first and use the RiskAssessment headline flag for pair order.
Render absent fields and empty tables with an em dash.

Use a normalized 10–20 layout and a 41-by-41 inverse-distance weighted
contour clipped to the head outline, with symmetric z colors and
electrode labels. Keep the head outline and markers when no site has a
score. Request each aggregate champion's version once per record load,
draw the median and p5–p95 band with banded(), and place the observed
value at the EEG's age. Omit unavailable bands and count-rate bands.

Use the RiskAssessment's EEG for z and pair status, falling back to the
newest EEG with z scores for the bars when needed. Use site outside flags
for the forest filter, aggregate scores for global and posterior-rhythm
pairs, and show the unit-OR line and available CI bounds. Select the
headline pair by default. The current RiskAssessment carries no logistic
coefficients, so the view shows patient and reference points at the
served z and at zero. Keep the optional logistic figure input independent
of the FHIR mapping. Link to Seguimiento with the agreed query parameter.

Share section data with the PDF and include snapshots of the rendered
figures. Use the existing safe seguimiento and riesgos filename tokens
with the UTC date. Format values for es-MX and size categorical charts
to their row count.

Add Vitest coverage for the head map, norm and point, forest filtering,
z band, probability fallback, ADOS-2 rows, PDF content, included data,
and the domain branch. Static TypeScript and Angular template checks
passed with a temporary PDF type shim. The Angular build, Vitest runtime
and Playwright run on the test machines.
2026-11-30 14:19:03 -06:00
alberto 56d1ef2e8a WebApp shared: Plotly partial bundle, card actions, print report, export module
Plotly partial bundle (bar, scatter, box, pie, sankey, contour) replacing the cartesian dist; card-actions (published Measure definitions, settings, Volver); Descargar reporte with a print stylesheet; export module: xlsx with frozen header, autofilter, Parámetros sheet and 5,000-row cap, pdfmake documents with header/footer, allRows following next links, file names without patient identifiers; lazy-loaded export libraries.

Checks on milkpc (node:22): npm ci, ng build (initial 567 kB / 134 kB transfer), ng test 7 files passed.
2026-11-30 13:36:35 -06:00
alberto 5d03f333f7 Client: eeg_studies_summary and the FHIR eeg_summary as distinct operations 2026-11-29 19:47:01 -06:00
alberto f7cc141625 Merge P4.3 into P4.1 for one combined gate 2026-11-29 19:46:01 -06:00
alberto 84dcebda55 Regenerate the governance REST API client 2026-11-29 19:45:50 -06:00
alberto 12b056343b TEA follow-up: Patient search with TEA filters and $eeg-summary
Regenerate the OpenAPI document and Angular client with the existing generator configuration. Repeated generation produced identical files.
2026-11-29 19:42:17 -06:00
alberto 38ece960f9 Merge P3.7 into P3.5 for one combined gate 2026-11-28 16:31:56 -06:00
alberto b3e5a69783 Client: run outputs 2026-11-28 13:37:28 -06:00
alberto 8442ad5fe6 Client for the training config 2026-11-28 13:26:18 -06:00
alberto 6732893bcc Merge tea/parity into P3.6 2026-11-28 10:31:03 -06:00
alberto 5ce225df5a Client for the edf pipeline node; the canvas shows a kind it has no form for by its raw name and leaves it out of the palette 2026-11-28 10:30:49 -06:00
alberto 8b1cbec66a Client for model bundle export and import 2026-11-28 09:24:39 -06:00
alberto 43b5523f99 Client for the runs, execution and TEA EEG analysis routes 2026-11-28 06:54:00 -06:00
Roberto Treviño 07212a2083 Client for study-field corrections and multi-column extract 2026-11-27 01:45:16 -06:00
Roberto Treviño 0e4d838d44 Survival scenario charts on the governance page; breast treatment entity 2026-11-26 19:03:39 -06:00
Roberto Treviño d1f9dcbea8 Governance charts for recurrence scenarios and age curves 2026-11-26 14:25:53 -06:00
Roberto Treviño 471ed3a18c TEA indicators, EEG section in governance 2026-11-26 07:06:52 -06:00
Roberto Treviño 53a6393cb2 CaMa indicators and follow-up list, model governance page 2026-11-25 23:20:52 -06:00
Roberto Treviño 9b02641804 ConceptMap editor, names and CURP shown, catalog codes read 2026-11-25 16:17:23 -06:00
Roberto Treviño 9fc0666d66 Page tests: serve on 127.0.0.1, where localhost resolves to ::1 only 2026-11-25 11:06:53 -06:00
Roberto Treviño cd7bbaf11a One shell with the current look: indicators, follow-up list and patient view from FHIR; /conectar canvas; /revision; Playwright page tests 2026-11-25 10:21:30 -06:00
Roberto Treviño 70b6d6c646 Regenerate the API client for model governance and measures 2026-11-25 08:16:09 -06:00
Roberto Treviño 4f858fc686 Regenerate the API client for person review and corrections 2026-11-24 22:35:13 -06:00
Roberto Treviño 0ee30d67f7 Regenerate the API client for the conectar and review routes 2026-11-24 21:00:52 -06:00
rockdrigo 00d03656ef Rebuild: Angular 22 shell with Material, Plotly and the generated API client
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:18:13 -06:00