Commit Graph

40 Commits

Author SHA1 Message Date
alberto 06f1cadc4b T17: webapi sweep: unused helpers in ingest and users removed 2026-12-01 06:07:45 -06:00
alberto b61a4863d1 T8: a TEA follow-up search by _id keeps its follow-up row 2026-12-01 03:55:35 -06:00
alberto 6c1d098619 T3: training form and train request carry the training source (site or folder) 2026-12-01 00:53:28 -06:00
alberto f26d32a010 Merge origin/rebuild into parity/T1-merge (WebApi)
- main.py: both routers sets (execution, preview from tea/parity; sources, users from
  rebuild).
- runs.py: tea/parity's cancel, history and execution config; rebuild's /terminate is the
  same action and is not kept twice.
- eeg.py: tea/parity's (the record reads per-child FHIR resources, not rebuild's EEG
  detail with zones and relation).
- fhir.py: tea/parity's patient rows with TEA filters, plus rebuild's name/identifier
  search applied to whatever rows the request selects.
- models.py: tea/parity's endpoints; /models/{domain} returns rebuild's name + title.
- tests: P7 deletions kept (test_cacu, test_cama, test_conectar, test_synthea*, test_tea);
  test_webapp keeps tea/parity's runner, now with the first administrator (sign-in).
2026-11-30 23:56:11 -06:00
alberto ec5d945f71 Cleanup of the TEA parity work: no prose in code, no hacks, everything in its place
1. No prose in code
- Remove parity-added Python comments and docstrings across the EEG, FHIR,
  execution, preview, training and run code and tests. Preserve endpoint
  descriptions as explicit FastAPI schema metadata.

2. No hacks, no glued code
- Read the declared TEA patient filters and training inputs directly and
  use the same TEA check for exposing and validating reference options.
- Give the Dagster GraphQL request one helper. Keep lock backoff and
  cancellation polling because their timing and error behavior are
  covered by run tests and they handle different Dagster states.
- Use the renamed FHIR report ID helper in the hospital test. Keep
  TEA_GATE_SLOW local to that test and preserve the test assertions.

3. Everything in its place
- Keep endpoint and run handling in WebApi and reuse Core and Persistance
  for domain rules and reads. Leave tests in the existing testpaths.
2026-11-30 13:41:49 -06:00
alberto 983680ead3 TEA per-child FHIR resources: ADOS-2, EEG report, checks, metrics, Condition, RiskAssessment: routes and the per-child gate 2026-11-30 01:14:13 -06:00
Roberto Treviño 8a2ce3bbb4 Training defaults to every model of the domain 2026-11-29 21:12:31 -06:00
alberto eda8dde354 GET /tea/eegs/summary: operation eeg_studies_summary (eeg_summary is the FHIR $eeg-summary) 2026-11-29 19:47:01 -06:00
alberto 08f240cde9 Merge P4.3 into P4.1 for one combined gate 2026-11-29 19:46:01 -06:00
alberto 80b3d23b75 Add governance and TEA preview REST endpoints
Use the models router for curves and training inputs, the EEG router for summary, and a separate preview router. Keep the preview result typed with the existing persistence model and declare multipart binary schemas for generated Blob parameters.
2026-11-29 19:45:50 -06:00
alberto b401f98f19 TEA follow-up: Patient search with TEA filters and $eeg-summary
Use _patient_rows and shared Query declarations for follow-up selection. Validate filters with an empty row before reading candidates, and use doseq for repeated values in paging links. Keep operation routes out of the metadata scan for read and search interactions. Use _follow_up_gate to compare the 29 captured queries by normalized record number, scalar counts and metrics.
2026-11-29 19:42:17 -06:00
Roberto Treviño d7624c7e0f A run can be stopped 2026-11-29 12:39:00 -06:00
Roberto Treviño c9b60b190b Models are listed with their titles 2026-11-29 12:39:00 -06:00
Roberto Treviño 4ef38c18e2 Patient search takes name and identifier, and _id on the follow-up list 2026-11-29 12:38:59 -06:00
Roberto Treviño 3a18af9516 CaMa serves treatments as Procedures and recurrences as Conditions 2026-11-29 06:43:09 -06:00
Roberto Treviño 29186909cc MeasureReport evaluates its periods together 2026-11-29 06:23:10 -06:00
alberto c7caf56f83 Cancel waits up to 30 s for a run that is still starting (Dagster cannot terminate it then); still starting is a 409 with Retry-After 2026-11-29 06:06:50 -06:00
Roberto Treviño 11c648ac36 Promotion docs name the configured reports 2026-11-29 01:40:55 -06:00
Roberto Treviño ae4638e4dd API workers share startup and OAuth sign-ins through the data folder 2026-11-29 01:32:08 -06:00
Roberto Treviño d8d834f308 EEG study serves its ADOS-2 association rows; TEA gate as roundtrips 2026-11-28 21:28:38 -06:00
Roberto Treviño f6e8b09dd0 EEG study serves each metric's zones and electrodes with their age-curve scores 2026-11-28 17:15:41 -06:00
alberto 2131ff60a5 Merge P3.7 into P3.5 for one combined gate 2026-11-28 16:31:56 -06:00
alberto 70c9506b97 tea_preview job: one file previewed, result as run output: GET /runs/{id}?outputs=true; the TEA gate also previews one hospital EDF 2026-11-28 13:37:27 -06:00
Roberto Treviño 7222cbdb49 EEG metrics carry their age band; reference comparisons skip crossed strata; the no-session test reads no platform data 2026-11-28 13:29:22 -06:00
alberto 7e25dde319 Training config: reference name and mains frequency: GET /models/{domain}/{name}/training-config; POST train accepts reference 2026-11-28 13:26:18 -06:00
Roberto Treviño b515746406 Source types, connection test, server folders, uploads and OAuth sign-in for the Conectar dialog; sign-in for the web app with fastapi-users, the API left open 2026-11-28 09:29:59 -06:00
alberto 3438a3135b Merge P3.4: model bundle endpoints 2026-11-28 09:24:48 -06:00
alberto 88bbc6155f Generic model bundles: export and import: export and import endpoints 2026-11-28 09:24:38 -06:00
alberto e434e085fe Runs API reads Dagster again when its SQLite run storage is locked; still locked is a 503 with Retry-After
The Postgres TEA gate got a 502 polling an ingest: logsForRun failed with
'database is locked' while the run wrote its events.
2026-11-28 08:43:00 -06:00
alberto 4793cf01f0 Runs API: a run's state, steps, live progress, info and warnings apart, the failure's own message; cancel; history by job and domain; execution options and health; POST /tea/eegs/analyze
test_runs.py: 17 passed on SQLite and Postgres
(compose test stack). test_conectar.py fails on an identity-merge count, as it does on tea/parity
without this change.
2026-11-28 06:54:00 -06:00
Roberto Treviño d3f7aeb537 Documents no route recognises, and unnamed persons, for review 2026-11-27 19:17:49 -06:00
Roberto Treviño 9c89c9e10d Corrections of study fields; operator flow on ISSSTELEON's test source (SQL Server, two tables of PDFs) 2026-11-27 01:45:16 -06:00
Roberto Treviño cb9115c435 TEA gate, EEG pages, analyze and named training runs 2026-11-26 07:06:52 -06:00
Roberto Treviño 26cf994d1a FHIR, follow-up lists and model jobs by domain; CaMa gate; report download for governance 2026-11-25 23:20:52 -06:00
Roberto Treviño 806302ee5d FHIR out from the catalog, the FHIR door, ConceptMap routes; round-trip, new-label and Synthea gates 2026-11-25 16:17:23 -06:00
Roberto Treviño 0dd5c035bc FHIR R4B API per domain: Patient follow-up list, clinical resources, Measure, MeasureReport, paging, CapabilityStatement; HL7 validator and page gates 2026-11-25 10:21:26 -06:00
Roberto Treviño e2ed1e9dfb Model governance and CaCu measures as FHIR MeasureReports; Phase 2 gate 2026-11-25 01:16:45 -06:00
Roberto Treviño 1c53276b55 Review persons: settle possible splits, correct identity fields; operator test settles everything 2026-11-24 22:35:13 -06:00
Roberto Treviño 326250ffb3 Conectar API: sources, uploads, pipelines, runs, node rows, review; tested end to end 2026-11-24 21:00:52 -06:00
rockdrigo df921f13cd Rebuild: FastAPI skeleton with health, domains, run status and the auth seam
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:18:08 -06:00