Compare commits

..

76 Commits

Author SHA1 Message Date
alberto f7eb170e15 One-step ticks only when the axis spans five or less, counted from zero 2026-12-01 17:29:05 -06:00
alberto b6e9acd3ba OpenAPI document with the training source titles 2026-12-01 17:26:09 -06:00
alberto 8ebf870f41 Plot axes are built fresh for every chart
The module-level axis defaults were shared by every chart, and Plotly writes its detected axis type, range and autorange back into the layout it is given, so one chart's category axis and range leaked into the others (count axes typed as categories, percent ranges ignored). Each layout now gets its own axis objects.
2026-12-01 17:23:53 -06:00
alberto ef407ce0a7 Every chart uses the shared short number format: axes, hover and bar/value text
Counts print as integers and other values with at most one decimal, in tick labels (valueAxis, percentAxis), hover templates and bar and pie text.
2026-12-01 17:20:28 -06:00
alberto 5cd601651c Count axes are linear with whole-number or one-decimal tick labels from one shared builder
The EEG quality chart's count axis was typed as a category axis, which put 0 on the right; every count and value axis now takes its type and tick format from valueAxis: linear, whole numbers for counts (one step when the range is narrow), one decimal otherwise, with Plotly choosing the number of ticks.
2026-12-01 17:15:35 -06:00
alberto 8ca3b053bd C1a: code only, no comments, no Markdown
Remove 125 JavaScript, TypeScript, and stylesheet comments and nine configuration comments. The submodule had zero tracked Markdown files. Remove the Markdown-only EditorConfig section.

Keep the generated client headers and tool directives. Delete other comments in place without regenerating the client or changing OpenAPI data.
2026-12-01 16:55:32 -06:00
alberto c2d4747d69 F1e: the baseline exports from the page 2026-12-01 15:56:31 -06:00
alberto 08c447006c F1e: complete-child case finds the child by search and reads hidden marks as attached 2026-12-01 15:28:54 -06:00
alberto a4bf48b60d F1e: complete-child case reads the semester with the EEGs; export refusal is expected 2026-12-01 15:09:10 -06:00
alberto 13146fdca4 F1e: page cases tolerate collapsed box plots and read the bundle guard's refusal 2026-12-01 14:53:29 -06:00
alberto 4118b050b8 F1: Sankey laid out by Plotly's own columns, with no hand-set x/y
Root cause of the crossing bands and overlap: with explicit node x/y Plotly keeps the nodes where they are set but orders the links leaving a node on its own, so a stopped band could leave the top of a node while its target sat at the bottom (bands crossed), zero-flow nodes stayed in the figure and tiny nodes landed on one another, and long one-line labels ran into the next column's labels. Now the stopped nodes are plain sinks that Plotly justifies to the right column, ordered neuropediátrica, psicológica, M-CHAT from top to bottom so bands never cross; nodes without flow are dropped; labels break in two lines; the padding keeps two-line labels apart. The card spans the whole row. Checked by screenshots of the live page across monthly and semester periods.
2026-12-01 14:36:30 -06:00
alberto 2404a3a66b F1: Sankey stopped nodes bottom to top M-CHAT, psicológica, neuropediátrica; full card width; layout test removed 2026-12-01 14:20:58 -06:00
alberto 58fdfd53d7 F1: Sankey stopped nodes in the rightmost column 2026-12-01 14:14:00 -06:00
alberto 6a6691bdd5 F1e: page case for the complete child; Gobernanza case without the removed sections 2026-12-01 14:05:40 -06:00
alberto 5bd7793cf7 Merge parity/F1h 2026-12-01 14:04:28 -06:00
alberto 7d2a861993 F1: record section test expects the dotted line with its markers 2026-12-01 14:04:28 -06:00
alberto 0fd5cc70ec F1: whole-number axis range typed as a pair; explicit ranges win 2026-12-01 13:51:14 -06:00
alberto 71777537e1 F1h: Gobernanza without Vista previa and Subir archivos, button spacing
Keep preview state in Modelos and reset the toggle on domain changes. Hide the form while collapsed so the current selections, run monitor and result dialog survive toggling. Keep the existing evaluation and PDF handlers.

Use one wrapping button-row class with space-3 gaps and block margins. Inside table cells use the existing cell padding between rows. Apply the same class to the indicators export and keep the existing domain navigation bottom margin.

Delete the training upload UI and hand-edit the client and OpenAPI. Preserve the generator format and update the Modelos component spec and Gobernanza page case to cover both toggle states.
2026-12-01 13:49:28 -06:00
alberto e14a85261c Merge parity/F1g 2026-12-01 13:45:25 -06:00
alberto b001594ac7 Merge parity/F1f 2026-12-01 13:45:25 -06:00
alberto 4929def121 F1g: whole-number axes, risk list link, dotted timeline, head map
Share the integer tick rule between Trazabilidad and TEA record figures.
Use the plotted extent, including stacked totals or interval bounds, to
target four divisions. Round spacing up to a 1/2/5 step with a minimum of
one, anchor ticks at zero, ignore nonfinite values, and include integer
bounds when a fractional extent contains no integer.

Point the existing patient link at the TEA risk route and remove the
details accordion and separate risk action. Exercise the link from the
risk list in the existing patient page case. Connect completed diamonds
in step order on the existing marker trace, using its color for the
dotted line and retaining the duration bars and annotations.

The scalp figure used the ear electrodes as markers outside the circle,
omitted the ears, and masked sample centers without clipping Plotly's
rendered contour cells at the scalp boundary. Its interpolation also
colored distant areas with no adjacent sample. Use the reference's 19
scalp positions, nose and ear paths, and reverse-wound mask painted in
the card's white surface color beneath the outline. Derive the mask and
the existing 41-point grid in headMapGeometry. Use the reference's 0.45
interpolation reach with inverse squared distance, taking a coincident
sample directly and preserving the existing zone inputs and z color
scale. Test mirror positions, scalp bounds, and plotted contour values.

Prettier, Ruff check, Ruff format check, and git diff --check passed.
Angular and Playwright execution are reserved for the test machines.
2026-12-01 13:42:54 -06:00
alberto 789145b93c F1f: TEA indicator chart formats (sex by age group, men blue, women magenta)
Reuse the existing male blue and female magenta, in that order. Read the published sex-by-result and age-by-sex cells and omit unknown sex. Keep the report age labels and sort by the starting month. Use zero for absent count cells and omit rates without denominators.

Keep M24 count heights and percentage labels. Stack the two outcomes within each sex using Plotly offset groups. Use the previous prevalence alpha of 0.25 for both transparent outcomes. For M31, use the published outcome counts and keep the sex focus control by outlining the selected bars while preserving both fill colors. Use the standard chart card height and identify changed figures by measure in the page checks.

Prettier, targeted figure type checking, and the 23 indicator logic tests passed. Full application type checking requires the unavailable pdfmake dependencies in this checkout. Angular and Playwright runs are reserved for the test machines.
2026-12-01 13:36:44 -06:00
alberto 5bf022b36f F1: training form driven by the API schema; Sankey stopped nodes at the left
The training form flattens the discriminated source union generically: the discriminator becomes a select labelled by each variant's title, a variant's fields hide unless it is chosen, and the payload keeps only the chosen variant's fields. No variant names, option labels or Hz labels live in the WebApp. The Sankey places the three 'Se quedó en' nodes in the leftmost column, every node at its own position.
2026-12-01 13:32:26 -06:00
alberto f57a42b22a F1: Gobernanza page case reads the Carpeta textbox by role 2026-12-01 13:06:00 -06:00
alberto 8d7464065d F1: openapi.json regenerated from the merged API, client regenerated, training form types
The checked-in document listed routes the API no longer has; the inputs route now types its response, so the training form reads allowed by index and the schema type drops the JSON schema's own $defs.
2026-12-01 12:19:18 -06:00
alberto ec60f61704 Merge parity/F1a 2026-12-01 11:52:00 -06:00
alberto 2d0c8565ae tea-indicators.spec: one teaSteps import 2026-12-01 11:52:00 -06:00
alberto 3d4032f5d6 Merge parity/F1c
# Conflicts:
#	src/app/indicadores/tea-indicators.spec.ts
2026-12-01 11:51:57 -06:00
alberto 728d89f62e Merge parity/F1b 2026-12-01 11:51:43 -06:00
alberto c4920ed7eb F1b: user fixes
Use the existing Plotly card and registered Sankey trace. Build transition totals from the remaining stages and omit zero-flow links. Build the prevalence donut from the report counts, with a grey slice for missing sex and controls to highlight each recorded sex. Use grouped bars for M23 and separate age and sex stacks for M24. Use the existing stacked history style for M31 and put the M30 figure behind one page flag. Cover the builders and the existing TEA page case.
2026-12-01 11:33:06 -06:00
alberto 344dafd9fc F1a: user fixes
Keep preview visibility in the domain page and reset it on domain changes. Build the source controls from the folder schema, keep folder edits while hidden, and send only the discriminator for site training. Place the existing upload controls in the next card and use the server-declared file types. Keep shared ingestion endpoints used by Conectar and remove the EEG-page upload flow.

Docker socket access was denied and the local environment lacks fastapi-users. Generate the changed OpenAPI route and schemas from the real models router with the production app settings, verify its other routes and schemas against the checked-in document, and run ng-openapi-gen directly from the cached dependencies.
2026-12-01 11:32:48 -06:00
alberto a2bf98e9da F1c: user fixes
Render the worklist stepper from the Patient stage and read M-CHAT, CSS
and alteration count from its FHIR extensions. Keep the compact stepper
private to Seguimiento and share the dated screening logic with the
patient record. Use the first dated event for each step, require prior
steps, and use the later date when an event predates its prerequisite.
Only a good-quality EEG completes that stage.

Use horizontal Plotly bars on the destination rows for elapsed spans,
diamonds for completed steps, and labels for pending steps. Keep the
screening order on the axis and show 30 days on either side when all
completed steps share one date. Reuse the registered bar and scatter
traces and the rebuild palette.

Use completed months at the applied cutoff and show the marked headline
association with the reference formatting. Resolve item labels from
the model's ADOS-2 observation and fall back to the item code. Move the
existing detail and risk actions into the patient-name cell to keep the
requested ten columns. Keep raw association numbers and separate CI
bounds in Excel and keep the screening dates in the follow-up export.

Update the two logic specs and the follow-up, risk and record page
assertions. All 34 targeted Vitest cases passed with Plotly rendering
stubbed. The local TypeScript check reached the existing PDF export
code and reported missing pdfmake typings. Angular and page runs are
reserved for the test machines.
2026-12-01 11:32:17 -06:00
alberto 7c98566579 T17: sweep of the WebApp after the feature-parity work
Removed the legacy indicator layout, unused chart helpers, styles and
exports, the card-actions component, fetch-all and explanatory comments;
one pager shared by the four worklists, shared filter-row styles, one
FHIR name and CURP reader, downloads through export/, the concept-map
editor on Material controls.
2026-12-01 06:48:57 -06:00
alberto 8237e9f483 T15/T16: one page case per page and tab: sign-in, Conectar, Revisión, CaCu, CaMa, TEA tabs, record, risk, Gobernanza
Shared helpers (admin sign-in fixture, watch, downloaded) live in e2e/support.ts.
Conectar checks the EDF reader among the node kinds; CaCu and CaMa show their
four tabs over a platform without their data; the training-inputs 404 of a
domain without training files is the one allowed response.
2026-12-01 05:06:43 -06:00
alberto 2ea5106d32 T8: the record page test goes back through the frame's Regresar link 2026-12-01 04:17:02 -06:00
alberto 32332b0fcf Merge parity/main into parity/T8-tea-lists 2026-12-01 03:55:35 -06:00
alberto fcb3634fa9 T8/T9: TEA Seguimiento and Análisis de riesgo as two components in rebuild's list style
tea-list is replaced by tab-seguimiento-tea and tab-riesgos-tea over one
tea-rows module (params, rows, workbook, export), with Material filters,
cards and pager. The risk list defaults to every child and keeps the
association pairs per row; the focused patient is fetched with the list's
own search. Specs and page cases follow.
2026-12-01 03:55:35 -06:00
alberto 9e50655d51 T13: the execution spec picks the mode through the Material select 2026-12-01 02:25:00 -06:00
alberto a1c079ce43 Merge parity/main into parity/T13-gobernanza 2026-12-01 02:16:45 -06:00
alberto 3a26c63931 T13: Gobernanza as one page with its sections in fixed places
Keep the route, title, subtitle, domain navigation and composition in
gobernanza.{ts,html,scss}. Ejecución keeps mode and health in execution.ts.
Add models.{ts,html,scss} to own the actions, run monitor, status, versions,
reports, figures, clinical validation, and checks and lineage dialogs.

Render training.ts after Modelos with the existing source, configuration,
promotion checkbox, input sets and upload. Keep ZIP export and import in
bundles.ts. Keep scope, study list, EDF upload and run progress in
tea/studies.{ts,html}, and render tea/preview.ts separately for TEA with
its EDF and ADOS-2 selection, results and PDF export.

Use a page grid for section spacing and the global card style. Keep
table, action and dialog styles local to Modelos. Use Material fields
for editable values and Material buttons to open native file pickers,
retaining input labels and showing the selected filenames. Keep the
native suggestion lists for scheduler and input set names.

Default the training target to all on domain changes. Both Modelos
training actions focus the Entrenamiento heading and use the same
Formly submit path. Use the existing shared start flag and version
refresh via the Modelos component. Reset the training promotion
checkbox on domain changes and the upload selection with its input
listing. Ignore training submissions that finish in a different domain.

Move gobernanza.spec.ts to models.spec.ts alongside checkActions.
Keep bundles, execution, training, run-monitor, figures and preview PDF
logic specs. Update e2e/pages.spec.ts for Material selections and
the Modelos monitor, and check section order and training focus.

Prettier 3.10.1 and git diff --cached --check passed. The main checkout
has no local Prettier installation, so use the available lockfile
version directly from the requested working directory. Angular builds,
unit tests and Playwright are deferred to the VM per the spec.
2026-12-01 02:15:51 -06:00
alberto 374d58f5a5 Merge parity/main into parity/T10-tea-record 2026-12-01 02:02:56 -06:00
alberto 6df008bf8a T10/T11: the TEA record and the risk page render inside rebuild's patient frame
Paciente renders the TEA record and, on the risk route, the risk page with
the same frame as CaCu and CaMa: back link, title with id, identity block
from the FHIR Patient (name, birth date, sex, one row per identifier
system), sections as one card component, Material controls for the
altered-zones toggle and the pair choice, export button in rebuild's style.
tea-patient.ts, tea-record.html, tea-risk.html and tea-section.html/scss are
deleted; the logic specs follow the new structure.
2026-12-01 02:02:56 -06:00
alberto 52ca5876d0 T7: Trazabilidad of the TEA page shows M30 (altered EEG share with its interval)
The TEA Resumen/Trazabilidad/Definiciones tabs already are rebuild's generic
tabs over tp's measures after T1; Casos por estatus (M28) and the EEG quality
(M29) are in place. M30 is the one figure the reference shows only in
Trazabilidad, as a line with its interval; M31 belongs to the out-of-scope
tea-estatus page.
2026-12-01 01:30:27 -06:00
alberto 48e6c9f390 T3: openapi.json and API client regenerated for the training source 2026-12-01 01:20:29 -06:00
alberto f0dd3ec52f Merge parity/main into parity/T3-training-source 2026-12-01 01:09:45 -06:00
alberto 61aeed35ff T3: training form edits the training source; kind and mains as selects 2026-12-01 00:53:30 -06:00
alberto d8cb6420a4 T2: page specs no longer point at the removed reference captures 2026-12-01 00:46:19 -06:00
alberto d3c04a5fcf The record test's FHIR stub answers searches (the CaCu/CaMa record lists her risks) 2026-12-01 00:23:32 -06:00
alberto 3655b9857c TEA studies upload their EDFs as one upload set (the merged upload takes several files) 2026-12-01 00:09:12 -06:00
alberto 3e213c4fc0 OpenAPI document and client regenerated from the merged API 2026-11-30 23:57:49 -06:00
alberto bd897baa2d Merge origin/rebuild into parity/T1-merge (WebApp)
rebuild's shell, auth and non-TEA pages; tea/parity's TEA pages on tea/parity's API.
- Routes: rebuild's signed-in tree; the TEA risk page joins it (domainAllowed reads the
  route's data domain when the path has no :domain).
- Indicadores: rebuild's header and its generic Resumen/Trazabilidad/Definiciones tabs
  (TEA as the reference page, fed by tea/parity's measures); TEA Seguimiento and Análisis
  de riesgo render tea/parity's tea-list inside rebuild's tab-seguimiento/tab-riesgos,
  which keep rebuild's CaCu/CaMa lists and patient search. rebuild's tab-riesgos-tea read
  rebuild's TEA Patient extensions, which are gone with its backend; tea-list already
  shows that list from tea/parity's FHIR search, so it is deleted rather than ported
  (its look is the base for T8/T9).
- Paciente: rebuild's record for CaCu/CaMa; TEA delegates to tea/parity's TeaRecord.
  rebuild's inline TEA sections read its EEG detail endpoint and are removed.
- Gobernanza: tea/parity's page (execution, models with checks/lineage, bundles, training,
  studies, preview) until T13; model headings use rebuild's model titles. figures.ts:
  rebuild's scenarios (drawn in the record) plus tea/parity's association forest.
- plot.ts: rebuild's layout helpers on tea/parity's partial Plotly bundle.
- Conectar: rebuild's KINDS/HELP with an entry for tea/parity's edf node.
- Dead code removed: measures boxes/sankey (tea/parity's old TEA tab), eeg-labels
  headMap/byDeviation/LEVEL_NAMES/METRIC_NAMES (rebuild's TEA record), e2e/layout.ts.
- e2e: tea/parity's TEA cases, signed in; rebuild's CaCu/CaMa/site cases need their
  hospitals loaded and come back with the page suite (T16).
- openapi.json and src/app/api: regenerated in the next commit.
2026-11-30 23:56:25 -06:00
alberto b291885b97 Gobernanza preview saved as PDF; Playwright TEA page tests
- The EEG preview dialog gets "Guardar como PDF": previewPdfContent is a
  pure function (verdict, checks, metrics with scores per electrode and
  zone, ADOS-2 classification/CSS and items by their Core titles,
  warnings), downloadPreviewPdf a thin wrapper over export/pdf; the file
  is tea-gobernanza-<day>.pdf. Unit-tested without mocks.
- e2e/pages.spec.ts now holds only the TEA page tests (the CaCu/CaMa
  cases needed fixtures P7 removed): every indicator tab, the follow-up
  xlsx export, the patient record and risk page with their PDFs, and
  every Gobernanza section in sync mode including the preview PDF. Each
  download is checked for a file and a name without a record number.
- Fixes the page tests found: the TEA xlsx name ('seguimiento-tea') failed
  validateName, so the export always threw; it is now tea-<page>-<day>.
  ng serve crashed on every Plotly page (has-hover reads 'global'): the
  build defines global as globalThis. Record numbers repeated once per
  source identifier; they are deduplicated. A refused bundle export showed
  '{}': the blob error body is now read for the API's detail.
2026-11-30 19:17:46 -06:00
alberto b847e04697 ADOS-2 items shown by the child's module, grouped by domain and subdomain
The patient record ADOS-2 table and the Seguimiento ADOS-2 card list only
the module's items, in the order of core.tea.ados2_items as the FHIR
aggregate Observation carries them: each module item component has the
module's item code and exact title as a second coding (and code.text), and
ados2-domain / ados2-subdomain extensions. Components without those
(items outside the module) are not listed. Association titles and the
concordance look the item up by catalog field instead of by row index, so
they do not depend on which items the module has. ADOS2_ITEMS moves to a
shared src/app/ados2.ts.
2026-11-30 16:56:26 -06:00
alberto e5556ebf41 Merge P6 cleanup into P5-combined 2026-11-30 16:34:17 -06:00
alberto 08a1bf910e Merge P5.3-tea-patient into P5-combined 2026-11-30 14:20:07 -06:00
alberto 7e21ebbc7b Merge P5.2-tea-indicators into P5-combined 2026-11-30 14:20:07 -06:00
alberto fde3ec08e1 Merge P5.4-gobernanza into P5-combined 2026-11-30 14:20:07 -06:00
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 adff5bac5c Indicadores TEA: Resumen, Trazabilidad, Seguimiento, Análisis de riesgo, periodicities 2026-11-30 14:19:03 -06:00
alberto e2d1c9f277 Gobernanza: execution, models (training, run monitor, checks, lineage, bundles, interpretability), EEG studies
Share one execution selection across training and analysis. Use the first
configured scheduler for a remote default and let the API validate typed
addresses. Suspend health polling when the document is hidden. Poll each
run serially, retry status reads on transient errors, and compute ETA from
completed items and elapsed seconds.

Reuse the Conectar Formly types with nullable fields and inlined references.
Omit the optional cohort when its name is blank, and offer the declared
input sets in a datalist with filename validation before upload. Identify
the versions created by a training run from its version log lines, then
check each exact version before promotion. Use native dialogs for checks,
lineage, bulk confirmation and preview. Recheck promotion eligibility before
submitting changes, and list results per version.

Verify bundle hashes using SubtleCrypto before upload. Use blob downloads
for bundles and reports. Read age centiles from the curve endpoint and keep
the count-rate reference line from the report. Join study metrics by code
and regional values by feature, skipping absent ages and values. Use one
Plotly trace per association pair and scale the forest plot height by row
count.

Preflight the TEA pipeline before staging EDFs, then start the pipeline once
for the batch. Refresh studies, their overlays and summary on completed
runs. Page through analyze history to compare its end times against the
latest tea_eeg result. The branch base lacks export/pdf.ts, so the preview
uses the specified TODO and omits the PDF action.

Added Vitest coverage for execution and run polling, ETA and cancellation,
training schema, version actions, bundle digest verification, study overlays
and the association forest. Ruff check, Ruff format --check, Prettier,
strict Angular and TypeScript diagnostics for Gobernanza and git diff --check
passed. npm ci, ng build and vitest run are assigned to the test machines.
2026-11-30 14:19:03 -06:00
alberto 0760721144 Cleanup of the TEA parity work: no prose in code, no hacks, everything in its place
1. No prose in code
- Remove the parity-added comment above the canvas palette mapping.

2. No hacks, no glued code
- Keep the existing palette entries and saved-pipeline behavior.

3. Everything in its place
- Keep canvas code in conectar. Generated API bindings and OpenAPI
  are excluded from the cleanup.
2026-11-30 13:41:49 -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
Roberto Treviño 053679c817 Connecting a database no longer freezes the page: the columns field keeps one empty list 2026-11-30 05:17:14 -06:00
Roberto Treviño ffa732df12 The page test follows the pages as they are 2026-11-30 02:14:16 -06:00
Roberto Treviño 786b199203 The generated API client matches the API 2026-11-29 21:15:12 -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
204 changed files with 13667 additions and 8083 deletions
-5
View File
@@ -1,4 +1,3 @@
# Editor configuration, see https://editorconfig.org
root = true
[*]
@@ -11,7 +10,3 @@ trim_trailing_whitespace = true
[*.ts]
quote_type = single
ij_typescript_use_double_quotes = false
[*.md]
max_line_length = off
trim_trailing_whitespace = false
-9
View File
@@ -1,17 +1,12 @@
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
# Compiled output
/dist
/tmp
/out-tsc
/bazel-out
# Node
/node_modules
npm-debug.log
yarn-error.log
# IDEs and editors
.idea/
.project
.classpath
@@ -20,7 +15,6 @@ yarn-error.log
.settings/
*.sublime-workspace
# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
@@ -29,7 +23,6 @@ yarn-error.log
!.vscode/mcp.json
.history/*
# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
@@ -39,10 +32,8 @@ testem.log
/typings
__screenshots__/
# System files
.DS_Store
Thumbs.db
# Playwright
/test-results/
/playwright-report/
+3
View File
@@ -39,6 +39,9 @@
"material-symbols/outlined.css",
"src/styles.scss"
],
"define": {
"global": "globalThis"
},
"allowedCommonJsDependencies": [
"plotly.js-cartesian-dist-min"
]
-122
View File
@@ -1,122 +0,0 @@
import type { Page } from '@playwright/test';
/** What breaks a page's layout, measured in the browser: overlapping texts (also inside
* Plotly figures: legend against axis titles, tick labels), labels clipped at a figure's
* edge, labels that wrap where they should not (buttons, badges), a header taller than one
* row, text cut by its own box, and a page wider than the window. Empty: nothing found. */
export async function layoutProblems(page: Page): Promise<string[]> {
return page.evaluate(() => {
const found: string[] = [];
const box = (e: Element) => e.getBoundingClientRect();
const hit = (a: DOMRect, b: DOMRect) =>
a.width > 0 &&
b.width > 0 &&
a.left < b.right - 1 &&
b.left < a.right - 1 &&
a.top < b.bottom - 1 &&
b.top < a.bottom - 1;
const where = (el: Element) => {
const card = el.closest('mat-card, section, .card');
const h = card?.querySelector('h1,h2,h3,h4,mat-card-title');
return (h?.textContent ?? '').trim().slice(0, 60);
};
if (document.documentElement.scrollWidth > window.innerWidth + 1)
found.push(
`page overflows horizontally: ${document.documentElement.scrollWidth} > ${window.innerWidth}`,
);
for (const plot of document.querySelectorAll('.js-plotly-plot')) {
const texts = [
...plot.querySelectorAll(
'.legend, .g-xtitle text, .g-ytitle text, .xtitle, .ytitle, .gtitle',
),
];
for (let i = 0; i < texts.length; i++)
for (let j = i + 1; j < texts.length; j++)
if (
!texts[i].contains(texts[j]) &&
!texts[j].contains(texts[i]) &&
hit(box(texts[i]), box(texts[j]))
)
found.push(
`plot "${where(plot)}": ${texts[i].getAttribute('class')} overlaps ${texts[j].getAttribute('class')}`,
);
const host = box(plot);
for (const t of plot.querySelectorAll('.slicetext, .xtick text, .ytick text, .legendtext')) {
const b = box(t);
if (b.width && (b.left < host.left - 1 || b.right > host.right + 1))
found.push(`plot "${where(plot)}": text "${t.textContent}" clipped at the edge`);
}
const ticks = [...plot.querySelectorAll('.xtick text')].map(box);
for (let i = 1; i < ticks.length; i++)
if (hit(ticks[i - 1], ticks[i])) {
found.push(`plot "${where(plot)}": x tick labels overlap`);
break;
}
}
// Text elements overlapping each other (headings, labels, buttons, table cells).
const els = [
...document.querySelectorAll<HTMLElement>(
'h1,h2,h3,h4,p,label,button,a,dt,dd,th,td,mat-card-title,.mdc-tab__text-label,mat-label,li',
),
].filter(
(e: any) =>
e.offsetParent &&
box(e).width > 0 &&
box(e).height > 0 &&
!e.closest('.js-plotly-plot, .cdk-overlay-container') &&
!e.closest('details:not([open]) > :not(summary)'),
);
for (let i = 0; i < els.length; i++)
for (let j = i + 1; j < Math.min(els.length, i + 40); j++) {
const a = els[i],
b = els[j];
if (a.contains(b) || b.contains(a)) continue;
if (hit(box(a), box(b)))
found.push(
`"${(a.textContent ?? '').trim().slice(0, 30)}" overlaps "${(b.textContent ?? '').trim().slice(0, 30)}" (${where(a)})`,
);
}
// Text cut by its own box (ellipsis or overflow hidden).
for (const e of document.querySelectorAll<HTMLElement>(
'button, .mdc-tab__text-label, th, mat-label, .mat-mdc-select-value-text',
))
if (
e.offsetParent &&
e.scrollWidth > e.clientWidth + 2 &&
getComputedStyle(e).overflow !== 'visible'
)
found.push(`text cut: "${(e.textContent ?? '').trim().slice(0, 40)}"`);
const header = document.querySelector('.header');
if (header && header.getBoundingClientRect().height > 90 && window.innerWidth > 720)
found.push(
`header taller than one row: ${Math.round(header.getBoundingClientRect().height)}px`,
);
for (const b of document.querySelectorAll<HTMLElement>(
'button:not(.mat-button-toggle-button), a.mdc-button, .badge, .mat-mdc-chip',
)) {
const label = (b.querySelector('.mdc-button__label') as HTMLElement | null) ?? b;
const lines =
label.getClientRects().length &&
Math.round(
label.getBoundingClientRect().height /
parseFloat(getComputedStyle(label).lineHeight || '20'),
);
if (b.offsetParent && lines > 1 && (label.textContent ?? '').trim().length < 40)
found.push(`label wraps: "${(label.textContent ?? '').trim()}"`);
}
const icons = [
...document.querySelectorAll('header mat-icon, header a, header button, header .title'),
];
for (let i = 0; i < icons.length; i++)
for (let j = i + 1; j < icons.length; j++)
if (
!icons[i].contains(icons[j]) &&
!icons[j].contains(icons[i]) &&
hit(box(icons[i]), box(icons[j]))
)
found.push(
`header: "${(icons[i].textContent ?? '').trim().slice(0, 20)}" overlaps "${(icons[j].textContent ?? '').trim().slice(0, 20)}"`,
);
return [...new Set(found)];
});
}
+432 -639
View File
File diff suppressed because it is too large Load Diff
+36
View File
@@ -0,0 +1,36 @@
import { expect, test } from '@playwright/test';
import { watch } from './support';
const besidesAuthProbes = (problems: string[]) =>
problems.filter(
(p) =>
!p.includes('/api/auth/') &&
!p.includes('/api/users/me') &&
!p.startsWith('console: Failed to load resource'),
);
test('sign-in: the guard asks first, and the form lands on the requested page', async ({
page,
}) => {
const problems = watch(page);
await page.goto('/indicadores/tea');
await expect(page).toHaveURL(/\/login\?next=%2Findicadores%2Ftea$/);
await expect(page.getByRole('heading', { name: 'Inicio de sesión' })).toBeVisible();
await page.getByLabel('Usuario', { exact: true }).fill('admin@isssteleon.mx');
await page.getByLabel('Contraseña', { exact: true }).fill('solo-para-pruebas');
await page.getByRole('button', { name: 'Ingresar', exact: true }).click();
await expect(page).toHaveURL(/\/indicadores\/tea$/);
await expect(page.getByRole('tab', { name: 'Resumen' })).toBeVisible();
expect(besidesAuthProbes(problems)).toEqual([]);
});
test('sign-in: a wrong password shows the error and stays', async ({ page }) => {
const problems = watch(page);
await page.goto('/login');
await page.getByLabel('Usuario', { exact: true }).fill('admin@isssteleon.mx');
await page.getByLabel('Contraseña', { exact: true }).fill('solo-para-pruebas-pero-mal');
await page.getByRole('button', { name: 'Ingresar', exact: true }).click();
await expect(page.getByRole('alert')).toHaveText('Usuario o contraseña incorrectos.');
await expect(page).toHaveURL(/\/login$/);
expect(besidesAuthProbes(problems)).toEqual([]);
});
+36
View File
@@ -0,0 +1,36 @@
import { statSync } from 'node:fs';
import { expect, Locator, Page, test as base } from '@playwright/test';
export const test = base.extend<{ admin: void }>({
admin: [
async ({ page }, use) => {
const signed = await page.request.post('/api/auth/login', {
form: { username: 'admin@isssteleon.mx', password: 'solo-para-pruebas' },
});
expect(signed.status()).toBe(204);
await use();
},
{ auto: true },
],
});
export function watch(page: Page): string[] {
const problems: string[] = [];
page.on('console', (m) => m.type() === 'error' && problems.push(`console: ${m.text()}`));
page.on('response', (r) => r.status() >= 400 && problems.push(`${r.status()} ${r.url()}`));
page.on('pageerror', (e) => problems.push(`page: ${e.message}`));
return problems;
}
export async function downloaded(
page: Page,
button: Locator,
kind: 'pdf' | 'xlsx',
): Promise<string> {
const [file] = await Promise.all([page.waitForEvent('download'), button.click()]);
const name = file.suggestedFilename();
expect(name).toMatch(new RegExp(`^tea-[a-z]+-\\d{4}-\\d{2}-\\d{2}\\.${kind}$`));
expect(name).not.toMatch(/N-?\d{4}/);
expect(statSync(await file.path()).size).toBeGreaterThan(0);
return name;
}
+2391 -855
View File
File diff suppressed because it is too large Load Diff
+2266 -130
View File
File diff suppressed because it is too large Load Diff
+5 -4
View File
@@ -2,10 +2,8 @@
"name": "webapp",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config proxy.conf.json",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"api": "ng-openapi-gen -c ng-openapi-gen.json"
},
@@ -29,9 +27,11 @@
"d3-zoom": "3.0.0",
"material-symbols": "0.48.3",
"ngx-vflow": "2.7.0",
"plotly.js-cartesian-dist-min": "4.1.2",
"pdfmake": "0.3.15",
"plotly.js": "4.1.2",
"rxjs": "~7.8.0",
"tslib": "^2.3.0"
"tslib": "^2.3.0",
"write-excel-file": "4.1.1"
},
"devDependencies": {
"@angular/build": "^22.3.0",
@@ -42,6 +42,7 @@
"@types/d3-selection": "3.0.13",
"@types/d3-zoom": "3.0.9",
"@types/fhir": "0.0.44",
"@types/pdfmake": "0.3.3",
"@types/plotly.js": "3.0.15",
"jsdom": "^31.0.0",
"ng-openapi-gen": "^1.1.0",
+1 -5
View File
@@ -1,8 +1,5 @@
import { defineConfig } from '@playwright/test';
/** The pages against a running API (API_URL), served by the dev server with the same
* proxy the app uses in production (`/api`). Run by WebApi/tests/test_webapp.py, which
* starts the platform and loads the synthetic hospital first. */
export default defineConfig({
testDir: 'e2e',
timeout: 15 * 60_000,
@@ -12,10 +9,9 @@ export default defineConfig({
use: {
baseURL: 'http://127.0.0.1:4310',
viewport: { width: 1440, height: 1000 },
actionTimeout: 60_000, // a stuck step fails, not the whole run
actionTimeout: 60_000,
},
webServer: {
// IPv4 explicitly: `localhost` may resolve to ::1 only (CI containers), where the url below never answers.
command: 'npx ng serve --host 127.0.0.1 --port 4310 --proxy-config proxy.e2e.mjs',
env: { NG_CLI_ANALYTICS: 'false' },
url: 'http://127.0.0.1:4310',
-1
View File
@@ -1,2 +1 @@
// `/api` to the API the e2e run started (API_URL).
export default { '/api': { target: process.env.API_URL, pathRewrite: { '^/api': '' } } };
-4
View File
@@ -1,10 +1,6 @@
// This file was generated by running 'ng generate @angular/material:theme-color'.
// Proceed with caution if making changes to this file.
@use 'sass:map';
@use '@angular/material' as mat;
// Note: Color palettes are generated from primary: #a8c243, tertiary: #5f9ea0
$_palettes: (
primary: (
0: #000000,
+100
View File
@@ -0,0 +1,100 @@
import type { Observation, ObservationComponent } from 'fhir/r4';
import { describe, expect, it } from 'vitest';
import { ados2Component, ados2Groups } from './ados2';
import { EXT } from './fhir';
function item(
field: string,
domain: string,
subdomain: string,
code: string,
title: string,
value?: number,
): ObservationComponent {
return {
code: {
coding: [{ code: `ados2.${field}` }, { code, display: title }],
text: title,
},
extension: [
{ url: EXT + 'ados2-domain', valueCoding: { code: domain[0], display: domain } },
{ url: EXT + 'ados2-subdomain', valueCoding: { code: subdomain, display: subdomain } },
],
valueQuantity: value == null ? undefined : { value },
};
}
const AS = 'Afectación social (AS)';
const CRR = 'Comportamiento restringido y repetitivo (CRR)';
const observation: Observation = {
resourceType: 'Observation',
status: 'final',
code: { coding: [{ code: 'ados2' }] },
component: [
{ code: { coding: [{ code: 'ados2.module' }] }, valueCodeableConcept: { text: 'Módulo 1' } },
item('pointing', AS, 'Comunicación', 'A-7', 'Señalar', 2),
item('gestures', AS, 'Comunicación', 'A-8', 'Gestos', 1),
item(
'unusual_eye_contact',
AS,
'Interacción social recíproca',
'B-1',
'Contacto visual inusual',
),
item(
'intonation',
CRR,
'Comportamientos restringidos y repetitivos',
'A-3',
'Entonación de las vocalizaciones o verbalizaciones',
3,
),
{ code: { coding: [{ code: 'ados2.response_to_name' }] } },
],
};
describe('Ítems del ADOS-2', () => {
it('agrupa los ítems del módulo por dominio y subdominio en su orden', () => {
expect(ados2Groups(observation)).toEqual([
{
domain: AS,
subdomains: [
{
subdomain: 'Comunicación',
items: [
{ code: 'A-7', title: 'Señalar', score: 2 },
{ code: 'A-8', title: 'Gestos', score: 1 },
],
},
{
subdomain: 'Interacción social recíproca',
items: [{ code: 'B-1', title: 'Contacto visual inusual', score: undefined }],
},
],
},
{
domain: CRR,
subdomains: [
{
subdomain: 'Comportamientos restringidos y repetitivos',
items: [
{
code: 'A-3',
title: 'Entonación de las vocalizaciones o verbalizaciones',
score: 3,
},
],
},
],
},
]);
expect(ados2Groups(undefined)).toEqual([]);
});
it('encuentra el ítem de una asociación por su número', () => {
expect(ados2Component(observation, 2)?.code.text).toBe('Señalar');
expect(ados2Component(observation, 8)?.code.coding?.[0].code).toBe('ados2.response_to_name');
expect(ados2Component(observation, 0)).toBeUndefined();
});
});
+82
View File
@@ -0,0 +1,82 @@
import type { Observation, ObservationComponent } from 'fhir/r4';
import { code, ext } from './fhir';
const ADOS2_ITEMS = [
'vocalization_directed',
'pointing',
'gestures',
'unusual_eye_contact',
'facial_expressions',
'gaze_integration',
'shared_enjoyment',
'response_to_name',
'ignoring',
'requesting',
'showing',
'joint_attention_initiation',
'joint_attention_response',
'social_overtures_quality',
'social_overtures_caregiver',
'reciprocal_communication',
'rapport_quality',
'intonation',
'stereotyped_language',
'unusual_sensory_interest',
'hand_finger_mannerisms',
'repetitive_interests',
];
interface Ados2Item {
code: string;
title: string;
score?: number;
}
interface Ados2Subdomain {
subdomain: string;
items: Ados2Item[];
}
interface Ados2Domain {
domain: string;
subdomains: Ados2Subdomain[];
}
function coded(component: ObservationComponent, name: string): string {
const coding = ext(component, name)?.valueCoding;
return coding?.display ?? coding?.code ?? '';
}
export function ados2Groups(observation: Observation | undefined): Ados2Domain[] {
const groups: Ados2Domain[] = [];
for (const component of observation?.component ?? []) {
const item = component.code.coding?.[1];
if (!ext(component, 'ados2-domain') || !item?.code) continue;
const domain = coded(component, 'ados2-domain');
const subdomain = coded(component, 'ados2-subdomain');
let group = groups.at(-1);
if (!group || group.domain !== domain) {
group = { domain, subdomains: [] };
groups.push(group);
}
let sub = group.subdomains.at(-1);
if (!sub || sub.subdomain !== subdomain) {
sub = { subdomain, items: [] };
group.subdomains.push(sub);
}
sub.items.push({
code: item.code,
title: component.code.text ?? item.display ?? item.code,
score: component.valueQuantity?.value,
});
}
return groups;
}
export function ados2Component(
observation: Observation | undefined,
number: number,
): ObservationComponent | undefined {
const field = ADOS2_ITEMS[number - 1];
return observation?.component?.find((c) => field && code(c.code) === `ados2.${field}`);
}
-6
View File
@@ -3,9 +3,6 @@
import { Injectable } from '@angular/core';
/**
* Provides the ApiConfiguration configuration object with a given root URL.
*/
export function provideApiConfiguration(rootUrl: string) {
var config = new ApiConfiguration();
config.rootUrl = rootUrl;
@@ -15,9 +12,6 @@ export function provideApiConfiguration(rootUrl: string) {
};
}
/**
* Global configuration
*/
@Injectable({
providedIn: 'root',
})
-16
View File
@@ -11,9 +11,6 @@ import { StrictHttpResponse } from './strict-http-response';
export type ApiFnOptional<P, R> = (http: HttpClient, rootUrl: string, params?: P, context?: HttpContext) => Observable<StrictHttpResponse<R>>;
export type ApiFnRequired<P, R> = (http: HttpClient, rootUrl: string, params: P, context?: HttpContext) => Observable<StrictHttpResponse<R>>;
/**
* Helper service to call API functions directly
*/
@Injectable({ providedIn: 'root' })
export class Api {
constructor(
@@ -24,24 +21,14 @@ export class Api {
private _rootUrl?: string;
/**
* Returns the root url for API operations. If not set directly here,
* will fallback to `ApiConfiguration.rootUrl`.
*/
get rootUrl(): string {
return this._rootUrl || this.config.rootUrl;
}
/**
* Sets the root URL for API operations
*/
set rootUrl(rootUrl: string) {
this._rootUrl = rootUrl;
}
/**
* Executes an API call, returning the response body only
*/
invoke<P, R>(fn: ApiFnRequired<P, R>, params: P, context?: HttpContext): Promise<R>;
invoke<P, R>(fn: ApiFnOptional<P, R>, params?: P, context?: HttpContext): Promise<R>;
async invoke<P, R>(fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>, params: P, context?: HttpContext): Promise<R> {
@@ -49,9 +36,6 @@ export class Api {
return (await resp).body;
}
/**
* Executes an API call, returning the entire response
*/
invoke$Response<P, R>(fn: ApiFnRequired<P, R>, params: P, context?: HttpContext): Promise<StrictHttpResponse<R>>;
invoke$Response<P, R>(fn: ApiFnOptional<P, R>, params?: P, context?: HttpContext): Promise<StrictHttpResponse<R>>;
invoke$Response<P, R>(fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>, params: P, context?: HttpContext): Promise<StrictHttpResponse<R>> {
@@ -7,17 +7,17 @@ import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Document } from '../../models/document';
import { AnalyzeRequest } from '../../models/analyze-request';
export interface Export$Params {
kind: string;
body: Document
export interface AnalyzeEegs$Params {
body: AnalyzeRequest
}
export function export$(http: HttpClient, rootUrl: string, params: Export$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
const rb = new RequestBuilder(rootUrl, export$.PATH, 'post');
export function analyzeEegs(http: HttpClient, rootUrl: string, params: AnalyzeEegs$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, analyzeEegs.PATH, 'post');
if (params) {
rb.path('kind', params.kind, {});
rb.body(params.body, 'application/json');
}
@@ -26,9 +26,11 @@ export function export$(http: HttpClient, rootUrl: string, params: Export$Params
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<any>;
return r as StrictHttpResponse<{
[key: string]: string;
}>;
})
);
}
export$.PATH = '/cacu/exports/{kind}';
analyzeEegs.PATH = '/tea/eegs/analyze';
+33
View File
@@ -0,0 +1,33 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
export interface EegStudiesSummary$Params {
}
export function eegStudiesSummary(http: HttpClient, rootUrl: string, params?: EegStudiesSummary$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: number;
}>> {
const rb = new RequestBuilder(rootUrl, eegStudiesSummary.PATH, 'get');
if (params) {
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: number;
}>;
})
);
}
eegStudiesSummary.PATH = '/tea/eegs/summary';
@@ -0,0 +1,36 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Health } from '../../models/health';
export interface ExecutionHealth$Params {
mode?: ('sync' | 'local' | 'remote' | null);
scheduler?: (string | null);
reference?: (string | null);
}
export function executionHealth(http: HttpClient, rootUrl: string, params?: ExecutionHealth$Params, context?: HttpContext): Observable<StrictHttpResponse<Health>> {
const rb = new RequestBuilder(rootUrl, executionHealth.PATH, 'get');
if (params) {
rb.query('mode', params.mode, {});
rb.query('scheduler', params.scheduler, {});
rb.query('reference', params.reference, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<Health>;
})
);
}
executionHealth.PATH = '/execution/health';
@@ -7,12 +7,13 @@ import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Options } from '../../models/options';
export interface Capabilities$Params {
export interface ExecutionOptions$Params {
}
export function capabilities(http: HttpClient, rootUrl: string, params?: Capabilities$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
const rb = new RequestBuilder(rootUrl, capabilities.PATH, 'get');
export function executionOptions(http: HttpClient, rootUrl: string, params?: ExecutionOptions$Params, context?: HttpContext): Observable<StrictHttpResponse<Options>> {
const rb = new RequestBuilder(rootUrl, executionOptions.PATH, 'get');
if (params) {
}
@@ -21,9 +22,9 @@ export function capabilities(http: HttpClient, rootUrl: string, params?: Capabil
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<any>;
return r as StrictHttpResponse<Options>;
})
);
}
capabilities.PATH = '/cacu/exports/capabilities';
executionOptions.PATH = '/execution/options';
+45
View File
@@ -0,0 +1,45 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
export interface EegSummary$Params {
domain: Domain;
'follow-up-window'?: (number | null);
'follow-up-start'?: (string | null);
'follow-up-cutoff'?: (string | null);
'follow-up-status'?: (string | null);
}
export function eegSummary(http: HttpClient, rootUrl: string, params: EegSummary$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, eegSummary.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.query('follow-up-window', params['follow-up-window'], {});
rb.query('follow-up-start', params['follow-up-start'], {});
rb.query('follow-up-cutoff', params['follow-up-cutoff'], {});
rb.query('follow-up-status', params['follow-up-status'], {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
}>;
})
);
}
eegSummary.PATH = '/{domain}/fhir/Patient/$eeg-summary';
-3
View File
@@ -12,9 +12,6 @@ import { Domain } from '../../models/domain';
export interface PostBundle$Params {
domain: Domain;
/**
* the sender's pipeline (its fhir nodes read this inbox)
*/
sender: string;
body: {
[key: string]: any;
-3
View File
@@ -12,9 +12,6 @@ import { Domain } from '../../models/domain';
export interface SearchCondition$Params {
domain: Domain;
/**
* Patient/<id>, comma-separated
*/
subject?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
@@ -12,11 +12,7 @@ import { Domain } from '../../models/domain';
export interface SearchDiagnosticReport$Params {
domain: Domain;
/**
* Patient/<id>, comma-separated
*/
subject?: (string | null);
'stage-cutoff'?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
}
@@ -27,7 +23,6 @@ export function searchDiagnosticReport(http: HttpClient, rootUrl: string, params
if (params) {
rb.path('domain', params.domain, {});
rb.query('subject', params.subject, {});
rb.query('stage-cutoff', params['stage-cutoff'], {});
rb.query('_count', params['_count'], {});
rb.query('_offset', params['_offset'], {});
}
-3
View File
@@ -12,9 +12,6 @@ import { Domain } from '../../models/domain';
export interface SearchEncounter$Params {
domain: Domain;
/**
* Patient/<id>, comma-separated
*/
subject?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
@@ -12,24 +12,12 @@ import { Domain } from '../../models/domain';
export interface SearchMeasureReport$Params {
domain: Domain;
/**
* the Measure's id or canonical URL
*/
measure: string;
/**
* semesters (2025-S1) or months (2025-03), comma-separated
*/
'reporting-period': string;
/**
* count only what was known by then
*/
'as-of'?: (string | null);
/**
* durations count to this day
*/
'event-cutoff'?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
@@ -12,9 +12,6 @@ import { Domain } from '../../models/domain';
export interface SearchObservation$Params {
domain: Domain;
/**
* Patient/<id>, comma-separated
*/
subject?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
+3 -36
View File
@@ -13,55 +13,23 @@ export interface SearchPatient$Params {
domain: Domain;
'_id'?: (string | null);
/**
* months: the domain's follow-up list over that window up to the cut-off
*/
'follow-up-window'?: (number | null);
/**
* default: the last day with data
*/
'follow-up-start'?: (string | null);
'follow-up-cutoff'?: (string | null);
'follow-up-status'?: (string | null);
/**
* each word starts a word of her name (case and accents ignored)
*/
name?: (string | null);
/**
* [system|]value: a CURP or record number (case ignored)
*/
identifier?: (string | null);
/**
* CaCu: completed years at the cut-off
*/
'follow-up-age-min'?: (number | null);
/**
* CaCu: completed years at the cut-off
*/
'follow-up-age-max'?: (number | null);
/**
* -recent or -risk-<outcome>
*/
'_sort'?: string;
/**
* years
*/
'risk-horizon'?: (number | null);
/**
* any of ('DiagnosticReport:subject', 'RiskAssessment:subject', 'Observation:subject')
*/
'_revinclude'?: Array<string>;
/**
* DiagnosticReport:result
*/
'_include:iterate'?: Array<string>;
'_count'?: (number | null);
'_offset'?: number;
@@ -74,12 +42,11 @@ export function searchPatient(http: HttpClient, rootUrl: string, params: SearchP
rb.path('domain', params.domain, {});
rb.query('_id', params['_id'], {});
rb.query('follow-up-window', params['follow-up-window'], {});
rb.query('follow-up-start', params['follow-up-start'], {});
rb.query('follow-up-cutoff', params['follow-up-cutoff'], {});
rb.query('follow-up-status', params['follow-up-status'], {});
rb.query('name', params.name, {});
rb.query('identifier', params.identifier, {});
rb.query('follow-up-age-min', params['follow-up-age-min'], {});
rb.query('follow-up-age-max', params['follow-up-age-max'], {});
rb.query('_sort', params['_sort'], {});
rb.query('risk-horizon', params['risk-horizon'], {});
rb.query('_revinclude', params['_revinclude'], {});
-3
View File
@@ -12,9 +12,6 @@ import { Domain } from '../../models/domain';
export interface SearchProcedure$Params {
domain: Domain;
/**
* Patient/<id>, comma-separated
*/
subject?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
@@ -12,9 +12,6 @@ import { Domain } from '../../models/domain';
export interface SearchRiskAssessment$Params {
domain: Domain;
/**
* Patient/<id>, comma-separated
*/
subject?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
+3
View File
@@ -7,10 +7,12 @@ import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Analyze } from '../../models/analyze';
import { Domain } from '../../models/domain';
export interface Analyze$Params {
domain: Domain;
body?: Analyze
}
export function analyze(http: HttpClient, rootUrl: string, params: Analyze$Params, context?: HttpContext): Observable<StrictHttpResponse<{
@@ -19,6 +21,7 @@ export function analyze(http: HttpClient, rootUrl: string, params: Analyze$Param
const rb = new RequestBuilder(rootUrl, analyze.PATH, 'post');
if (params) {
rb.path('domain', params.domain, {});
rb.body(params.body, 'application/json');
}
return http.request(
+42
View File
@@ -0,0 +1,42 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
export interface Curve$Params {
domain: Domain;
name: string;
version: number;
feature?: string;
}
export function curve(http: HttpClient, rootUrl: string, params: Curve$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
[key: string]: any;
}>>> {
const rb = new RequestBuilder(rootUrl, curve.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('version', params.version, {});
rb.query('feature', params.feature, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<Array<{
[key: string]: any;
}>>;
})
);
}
curve.PATH = '/models/{domain}/{name}/versions/{version}/curve';
+36
View File
@@ -0,0 +1,36 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
export interface ExportModels$Params {
domain: Domain;
names?: (Array<string> | null);
versions?: 'champion' | 'latest' | 'all';
}
export function exportModels(http: HttpClient, rootUrl: string, params: ExportModels$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
const rb = new RequestBuilder(rootUrl, exportModels.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.query('names', params.names, {});
rb.query('versions', params.versions, {});
}
return http.request(
rb.build({ responseType: 'blob', accept: 'application/zip', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<any>;
})
);
}
exportModels.PATH = '/models/{domain}/export';
+41
View File
@@ -0,0 +1,41 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { BodyImportModels } from '../../models/body-import-models';
import { Domain } from '../../models/domain';
export interface ImportModels$Params {
domain: Domain;
sha256: string;
body: BodyImportModels
}
export function importModels(http: HttpClient, rootUrl: string, params: ImportModels$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, importModels.PATH, 'post');
if (params) {
rb.path('domain', params.domain, {});
rb.query('sha256', params.sha256, {});
rb.body(params.body, 'multipart/form-data');
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: string;
}>;
})
);
}
importModels.PATH = '/models/{domain}/import';
+40
View File
@@ -0,0 +1,40 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
export interface Lineage$Params {
domain: Domain;
name: string;
version: number;
}
export function lineage(http: HttpClient, rootUrl: string, params: Lineage$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: any;
}>> {
const rb = new RequestBuilder(rootUrl, lineage.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('version', params.version, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: any;
}>;
})
);
}
lineage.PATH = '/models/{domain}/{name}/versions/{version}/lineage';
+40
View File
@@ -0,0 +1,40 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
export interface Retire$Params {
domain: Domain;
name: string;
version: number;
}
export function retire(http: HttpClient, rootUrl: string, params: Retire$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, retire.PATH, 'post');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('version', params.version, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: string;
}>;
})
);
}
retire.PATH = '/models/{domain}/{name}/versions/{version}/retire';
+35
View File
@@ -0,0 +1,35 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
import { TrainingConfig } from '../../models/training-config';
export interface TrainingConfig$Params {
domain: Domain;
name: string;
}
export function trainingConfig(http: HttpClient, rootUrl: string, params: TrainingConfig$Params, context?: HttpContext): Observable<StrictHttpResponse<TrainingConfig>> {
const rb = new RequestBuilder(rootUrl, trainingConfig.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<TrainingConfig>;
})
);
}
trainingConfig.PATH = '/models/{domain}/{name}/training-config';
+40
View File
@@ -0,0 +1,40 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
export interface VersionChecks$Params {
domain: Domain;
name: string;
version: number;
}
export function versionChecks(http: HttpClient, rootUrl: string, params: VersionChecks$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: any;
}>> {
const rb = new RequestBuilder(rootUrl, versionChecks.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('version', params.version, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: any;
}>;
})
);
}
versionChecks.PATH = '/models/{domain}/{name}/versions/{version}/checks';
+32
View File
@@ -0,0 +1,32 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { PreviewStatus } from '../../models/preview-status';
export interface PreviewStatus$Params {
run_id: string;
}
export function previewStatus(http: HttpClient, rootUrl: string, params: PreviewStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<PreviewStatus>> {
const rb = new RequestBuilder(rootUrl, previewStatus.PATH, 'get');
if (params) {
rb.path('run_id', params.run_id, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<PreviewStatus>;
})
);
}
previewStatus.PATH = '/tea/preview/{run_id}';
@@ -7,17 +7,18 @@ import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { BodyStartPreview } from '../../models/body-start-preview';
export interface TerminateRun$Params {
run_id: string;
export interface StartPreview$Params {
body: BodyStartPreview
}
export function terminateRun(http: HttpClient, rootUrl: string, params: TerminateRun$Params, context?: HttpContext): Observable<StrictHttpResponse<{
export function startPreview(http: HttpClient, rootUrl: string, params: StartPreview$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, terminateRun.PATH, 'post');
const rb = new RequestBuilder(rootUrl, startPreview.PATH, 'post');
if (params) {
rb.path('run_id', params.run_id, {});
rb.body(params.body, 'multipart/form-data');
}
return http.request(
@@ -32,4 +33,4 @@ export function terminateRun(http: HttpClient, rootUrl: string, params: Terminat
);
}
terminateRun.PATH = '/runs/{run_id}/terminate';
startPreview.PATH = '/tea/preview';
+32
View File
@@ -0,0 +1,32 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Cancel } from '../../models/cancel';
export interface CancelRun$Params {
run_id: string;
}
export function cancelRun(http: HttpClient, rootUrl: string, params: CancelRun$Params, context?: HttpContext): Observable<StrictHttpResponse<Cancel>> {
const rb = new RequestBuilder(rootUrl, cancelRun.PATH, 'post');
if (params) {
rb.path('run_id', params.run_id, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<Cancel>;
})
);
}
cancelRun.PATH = '/runs/{run_id}/cancel';
+39
View File
@@ -0,0 +1,39 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Domain } from '../../models/domain';
import { RunSummary } from '../../models/run-summary';
export interface RunHistory$Params {
job?: (string | null);
domain?: (Domain | null);
limit?: number;
before?: (string | null);
}
export function runHistory(http: HttpClient, rootUrl: string, params?: RunHistory$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<RunSummary>>> {
const rb = new RequestBuilder(rootUrl, runHistory.PATH, 'get');
if (params) {
rb.query('job', params.job, {});
rb.query('domain', params.domain, {});
rb.query('limit', params.limit, {});
rb.query('before', params.before, {});
}
return http.request(
rb.build({ responseType: 'json', accept: 'application/json', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<Array<RunSummary>>;
})
);
}
runHistory.PATH = '/runs';
+5 -6
View File
@@ -7,17 +7,18 @@ import { filter, map } from 'rxjs/operators';
import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
import { Run } from '../../models/run';
export interface RunStatus$Params {
run_id: string;
outputs?: boolean;
}
export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<Run>> {
const rb = new RequestBuilder(rootUrl, runStatus.PATH, 'get');
if (params) {
rb.path('run_id', params.run_id, {});
rb.query('outputs', params.outputs, {});
}
return http.request(
@@ -25,9 +26,7 @@ export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$P
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<{
[key: string]: string;
}>;
return r as StrictHttpResponse<Run>;
})
);
}
+32 -18
View File
@@ -5,16 +5,14 @@ export type { AuthCookieLogin$Params as AuthCookieLogin$Params } from './fn/auth
export { authCookieLogin as authCookieLogin } from './fn/auth/auth-cookie-login';
export type { AuthCookieLogout$Params as AuthCookieLogout$Params } from './fn/auth/auth-cookie-logout';
export { authCookieLogout as authCookieLogout } from './fn/auth/auth-cookie-logout';
export type { Capabilities$Params as Capabilities$Params } from './fn/exports/capabilities';
export { capabilities as capabilities } from './fn/exports/capabilities';
export type { Export$Params as Export$Params } from './fn/exports/export';
export { export$ as export$ } from './fn/exports/export';
export type { Domains$Params as Domains$Params } from './fn/operations/domains';
export { domains as domains } from './fn/operations/domains';
export type { Health$Params as Health$Params } from './fn/operations/health';
export { health as health } from './fn/operations/health';
export type { ConceptMaps$Params as ConceptMaps$Params } from './fn/ingest/concept-maps';
export { conceptMaps as conceptMaps } from './fn/ingest/concept-maps';
export type { ExecutionHealth$Params as ExecutionHealth$Params } from './fn/execution/execution-health';
export { executionHealth as executionHealth } from './fn/execution/execution-health';
export type { ExecutionOptions$Params as ExecutionOptions$Params } from './fn/execution/execution-options';
export { executionOptions as executionOptions } from './fn/execution/execution-options';
export type { GetConceptMap$Params as GetConceptMap$Params } from './fn/ingest/get-concept-map';
export { getConceptMap as getConceptMap } from './fn/ingest/get-concept-map';
export type { SaveConceptMap$Params as SaveConceptMap$Params } from './fn/ingest/save-concept-map';
@@ -37,8 +35,6 @@ export type { OauthStart$Params as OauthStart$Params } from './fn/ingest/oauth-s
export { oauthStart as oauthStart } from './fn/ingest/oauth-start';
export type { SourcePreview$Params as SourcePreview$Params } from './fn/ingest/source-preview';
export { sourcePreview as sourcePreview } from './fn/ingest/source-preview';
export type { SourceResources$Params as SourceResources$Params } from './fn/ingest/source-resources';
export { sourceResources as sourceResources } from './fn/ingest/source-resources';
export type { TestSource$Params as TestSource$Params } from './fn/ingest/test-source';
export { testSource as testSource } from './fn/ingest/test-source';
export type { SourceTypes$Params as SourceTypes$Params } from './fn/ingest/source-types';
@@ -49,12 +45,24 @@ export type { Models$Params as Models$Params } from './fn/models/models';
export { models as models } from './fn/models/models';
export type { Analyze$Params as Analyze$Params } from './fn/models/analyze';
export { analyze as analyze } from './fn/models/analyze';
export type { ExportModels$Params as ExportModels$Params } from './fn/models/export-models';
export { exportModels as exportModels } from './fn/models/export-models';
export type { ImportModels$Params as ImportModels$Params } from './fn/models/import-models';
export { importModels as importModels } from './fn/models/import-models';
export type { Score$Params as Score$Params } from './fn/models/score';
export { score as score } from './fn/models/score';
export type { Train$Params as Train$Params } from './fn/models/train';
export { train as train } from './fn/models/train';
export type { TrainingConfig$Params as TrainingConfig$Params } from './fn/models/training-config';
export { trainingConfig as trainingConfig } from './fn/models/training-config';
export type { Versions$Params as Versions$Params } from './fn/models/versions';
export { versions as versions } from './fn/models/versions';
export type { VersionChecks$Params as VersionChecks$Params } from './fn/models/version-checks';
export { versionChecks as versionChecks } from './fn/models/version-checks';
export type { Curve$Params as Curve$Params } from './fn/models/curve';
export { curve as curve } from './fn/models/curve';
export type { Lineage$Params as Lineage$Params } from './fn/models/lineage';
export { lineage as lineage } from './fn/models/lineage';
export type { Promote$Params as Promote$Params } from './fn/models/promote';
export { promote as promote } from './fn/models/promote';
export type { AddClinicalValidation$Params as AddClinicalValidation$Params } from './fn/models/add-clinical-validation';
@@ -63,6 +71,8 @@ export type { ReadReport$Json$Params as ReadReport$Json$Params } from './fn/mode
export { readReport$Json as readReport$Json } from './fn/models/read-report-json';
export type { ReadReport$Any$Params as ReadReport$Any$Params } from './fn/models/read-report-any';
export { readReport$Any as readReport$Any } from './fn/models/read-report-any';
export type { Retire$Params as Retire$Params } from './fn/models/retire';
export { retire as retire } from './fn/models/retire';
export type { Conflicts$Params as Conflicts$Params } from './fn/review/conflicts';
export { conflicts as conflicts } from './fn/review/conflicts';
export type { Correct$Params as Correct$Params } from './fn/review/correct';
@@ -77,26 +87,28 @@ export type { Reject$Params as Reject$Params } from './fn/review/reject';
export { reject as reject } from './fn/review/reject';
export type { Unrecognised$Params as Unrecognised$Params } from './fn/review/unrecognised';
export { unrecognised as unrecognised } from './fn/review/unrecognised';
export type { RunHistory$Params as RunHistory$Params } from './fn/runs/run-history';
export { runHistory as runHistory } from './fn/runs/run-history';
export type { RunStatus$Params as RunStatus$Params } from './fn/runs/run-status';
export { runStatus as runStatus } from './fn/runs/run-status';
export type { TerminateRun$Params as TerminateRun$Params } from './fn/runs/terminate-run';
export { terminateRun as terminateRun } from './fn/runs/terminate-run';
export type { CancelRun$Params as CancelRun$Params } from './fn/runs/cancel-run';
export { cancelRun as cancelRun } from './fn/runs/cancel-run';
export type { Studies$Params as Studies$Params } from './fn/eeg/studies';
export { studies as studies } from './fn/eeg/studies';
export type { AnalyzeEegs$Params as AnalyzeEegs$Params } from './fn/eeg/analyze-eegs';
export { analyzeEegs as analyzeEegs } from './fn/eeg/analyze-eegs';
export type { EegStudiesSummary$Params as EegStudiesSummary$Params } from './fn/eeg/eeg-studies-summary';
export { eegStudiesSummary as eegStudiesSummary } from './fn/eeg/eeg-studies-summary';
export type { Study$Params as Study$Params } from './fn/eeg/study';
export { study as study } from './fn/eeg/study';
export type { StartPreview$Params as StartPreview$Params } from './fn/preview/start-preview';
export { startPreview as startPreview } from './fn/preview/start-preview';
export type { PreviewStatus$Params as PreviewStatus$Params } from './fn/preview/preview-status';
export { previewStatus as previewStatus } from './fn/preview/preview-status';
export type { UsersCurrentUser$Params as UsersCurrentUser$Params } from './fn/users/users-current-user';
export { usersCurrentUser as usersCurrentUser } from './fn/users/users-current-user';
export type { UsersPatchCurrentUser$Params as UsersPatchCurrentUser$Params } from './fn/users/users-patch-current-user';
export { usersPatchCurrentUser as usersPatchCurrentUser } from './fn/users/users-patch-current-user';
export type { RegisterRegister$Params as RegisterRegister$Params } from './fn/users/register-register';
export { registerRegister as registerRegister } from './fn/users/register-register';
export type { UsersUser$Params as UsersUser$Params } from './fn/users/users-user';
export { usersUser as usersUser } from './fn/users/users-user';
export type { UsersDeleteUser$Params as UsersDeleteUser$Params } from './fn/users/users-delete-user';
export { usersDeleteUser as usersDeleteUser } from './fn/users/users-delete-user';
export type { UsersPatchUser$Params as UsersPatchUser$Params } from './fn/users/users-patch-user';
export { usersPatchUser as usersPatchUser } from './fn/users/users-patch-user';
export type { PostBundle$Params as PostBundle$Params } from './fn/fhir/post-bundle';
export { postBundle as postBundle } from './fn/fhir/post-bundle';
export type { SearchCondition$Params as SearchCondition$Params } from './fn/fhir/search-condition';
@@ -115,6 +127,8 @@ export type { SearchObservation$Params as SearchObservation$Params } from './fn/
export { searchObservation as searchObservation } from './fn/fhir/search-observation';
export type { SearchPatient$Params as SearchPatient$Params } from './fn/fhir/search-patient';
export { searchPatient as searchPatient } from './fn/fhir/search-patient';
export type { EegSummary$Params as EegSummary$Params } from './fn/fhir/eeg-summary';
export { eegSummary as eegSummary } from './fn/fhir/eeg-summary';
export type { ReadPatient$Params as ReadPatient$Params } from './fn/fhir/read-patient';
export { readPatient as readPatient } from './fn/fhir/read-patient';
export type { SearchProcedure$Params as SearchProcedure$Params } from './fn/fhir/search-procedure';
+26 -4
View File
@@ -2,22 +2,30 @@
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export type { Analysis } from './models/analysis';
export type { Analyze } from './models/analyze';
export type { AnalyzeRequest } from './models/analyze-request';
export type { Answers } from './models/answers';
export type { BodyAddClinicalValidation } from './models/body-add-clinical-validation';
export type { BodyImportModels } from './models/body-import-models';
export type { BodyStartPreview } from './models/body-start-preview';
export type { BodyUpload } from './models/body-upload';
export type { Browsed } from './models/browsed';
export type { Cancel } from './models/cancel';
export type { Catalog } from './models/catalog';
export type { Condition } from './models/condition';
export type { Correction } from './models/correction';
export type { Document } from './models/document';
export type { Domain } from './models/domain';
export type { Edf } from './models/edf';
export type { Entry } from './models/entry';
export type { ErrorModel } from './models/error-model';
export type { Execution } from './models/execution';
export type { Extract } from './models/extract';
export type { Fhir } from './models/fhir';
export type { FieldSpec } from './models/field-spec';
export type { FolderTrainingSource } from './models/folder-training-source';
export type { Group } from './models/group';
export type { Guided } from './models/guided';
export type { Health } from './models/health';
export type { HttpValidationError } from './models/http-validation-error';
export type { Join } from './models/join';
export type { Link } from './models/link';
@@ -27,28 +35,42 @@ export type { Map } from './models/map';
export type { Metric } from './models/metric';
export type { Model } from './models/model';
export type { Option } from './models/option';
export type { Options } from './models/options';
export type { PersonDecision } from './models/person-decision';
export type { Pipeline } from './models/pipeline';
export type { Position } from './models/position';
export type { PreviewAdos2 } from './models/preview-ados-2';
export type { PreviewEeg } from './models/preview-eeg';
export type { PreviewMetric } from './models/preview-metric';
export type { PreviewResult } from './models/preview-result';
export type { PreviewStatus } from './models/preview-status';
export type { Progress } from './models/progress';
export type { Provider } from './models/provider';
export type { Read } from './models/read';
export type { Rejection } from './models/rejection';
export type { Relation } from './models/relation';
export type { Route } from './models/route';
export type { Run } from './models/run';
export type { RunRequest } from './models/run-request';
export type { RunSummary } from './models/run-summary';
export type { SavedPipeline } from './models/saved-pipeline';
export type { Scope } from './models/scope';
export type { Score } from './models/score';
export type { SignIn } from './models/sign-in';
export type { Site } from './models/site';
export type { SiteTrainingSource } from './models/site-training-source';
export type { Source } from './models/source';
export type { SourceRef } from './models/source-ref';
export type { SourceType } from './models/source-type';
export type { Step } from './models/step';
export type { Study } from './models/study';
export type { Target } from './models/target';
export type { Tasks } from './models/tasks';
export type { Tested } from './models/tested';
export type { Training } from './models/training';
export type { TrainingConfig } from './models/training-config';
export type { TrainingSource } from './models/training-source';
export type { Uploaded } from './models/uploaded';
export type { UserCreate } from './models/user-create';
export type { UserRead } from './models/user-read';
export type { UserUpdate } from './models/user-update';
export type { ValidationError } from './models/validation-error';
export type { Version } from './models/version';
export type { Worker } from './models/worker';
+6 -2
View File
@@ -2,12 +2,16 @@
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Metric } from '../models/metric';
import { Relation } from '../models/relation';
export interface Analysis {
age_months: (number | null);
checks: Array<{
[key: string]: any;
}>;
id: string;
level: (string | null);
metrics: Array<Metric>;
relation?: Array<Relation>;
regions: Array<{
[key: string]: any;
}>;
valid: (boolean | null);
}
+9
View File
@@ -0,0 +1,9 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Execution } from '../models/execution';
import { Scope } from '../models/scope';
export interface AnalyzeRequest {
execution?: (Execution | null);
scope?: Scope;
}
+7
View File
@@ -0,0 +1,7 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Execution } from '../models/execution';
export interface Analyze {
execution?: (Execution | null);
}
+6
View File
@@ -0,0 +1,6 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface BodyImportModels {
file: string;
}
+9
View File
@@ -0,0 +1,9 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface BodyStartPreview {
ados2?: (Blob | null);
birth_date?: (string | null);
edf: Blob;
pipeline?: string;
}
+8
View File
@@ -0,0 +1,8 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface Cancel {
id: string;
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
status: string;
}
-6
View File
@@ -3,14 +3,8 @@
export interface Condition {
/**
* Por ejemplo «text», el texto leído del documento.
*/
column: string;
op: 'equals' | 'contains' | 'matches' | 'present';
/**
* Lo que se busca; por ejemplo «citología».
*/
value?: string;
}
-4
View File
@@ -2,10 +2,6 @@
/* Code generated by ng-openapi-gen DO NOT EDIT. */
/**
* One field of one record as a reviewer read it in the source document: an identity
* field (a mistyped record number) or a study's (a stage the scan made unreadable).
*/
export interface Correction {
entity?: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
field: string;
-18
View File
@@ -1,18 +0,0 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface Document {
columns: Array<string>;
parameters: Array<Array<string>>;
risk_scales?: Array<{
[key: string]: any;
}>;
row_stages?: Array<Array<{
[key: string]: string;
}>>;
rows: Array<Array<string>>;
timeline?: Array<{
[key: string]: string;
}>;
title: string;
}
-3
View File
@@ -3,9 +3,6 @@
import { Domain } from './domain';
/**
* Each possible value of `Domain`
*/
export const DOMAIN: Domain[] = [
'cacu',
'cama',
+14
View File
@@ -0,0 +1,14 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Position } from '../models/position';
export interface Edf {
column: string;
id: string;
inputs?: Array<string>;
kind?: 'edf';
label?: string;
position?: (Position | null);
}
+8
View File
@@ -0,0 +1,8 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface Execution {
mode?: ('sync' | 'local' | 'remote' | null);
scheduler?: (string | null);
}
-23
View File
@@ -3,50 +3,27 @@
import { Position } from '../models/position';
/**
* Platform fields read from text, each kept with the text it was read from.
*
* `auto` asks the LLM when one is configured and answering, else applies `patterns`;
* with neither, the row is held. Patterns are regexes with one group, per field (the
* LLM can propose them from sample documents); their values go through the ConceptMap
* and `formats` as in `map`.
*/
export interface Extract {
column: (string | Array<string>);
/**
* Dato → columna, sin leer el texto.
*/
columns?: {
[key: string]: string;
};
concept_map?: (string | null);
/**
* Qué estudio se saca del documento.
*/
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
formats?: {
[key: string]: string;
};
/**
* Para el modelo de lenguaje.
*/
hints?: string;
id: string;
inputs?: Array<string>;
kind?: 'extract';
/**
* Cómo se ve en el diagrama.
*/
label?: string;
method?: 'auto' | 'llm' | 'patterns';
/**
* Dato → expresión con un grupo ( ).
*/
patterns?: {
[key: string]: string;
};
-8
View File
@@ -3,11 +3,6 @@
import { Position } from '../models/position';
/**
* FHIR R4 Bundles a standard hospital sent (a column of their JSON) as rows of one
* entity: identity, death or a study (core.fhir_in). The sender's own codes go through
* its ConceptMap.
*/
export interface Fhir {
column?: string;
concept_map?: (string | null);
@@ -16,9 +11,6 @@ export interface Fhir {
inputs?: Array<string>;
kind?: 'fhir';
/**
* Cómo se ve en el diagrama.
*/
label?: string;
position?: (Position | null);
}
@@ -0,0 +1,9 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface FolderTrainingSource {
folder: string;
kind: 'folder';
line_hz?: 50 | 60;
}
-4
View File
@@ -2,10 +2,6 @@
/* Code generated by ng-openapi-gen DO NOT EDIT. */
/**
* How the Conectar dialog drew a source: its type (core.sources) and the answers given.
* The node's dlt fields are made from them; drawn by hand ("Avanzado"), a node has none.
*/
export interface Guided {
answers?: {
[key: string]: any;
+20
View File
@@ -0,0 +1,20 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface Health {
dashboard_ok?: (boolean | null);
dashboard_url?: (string | null);
error?: (string | null);
expected_workers?: (number | null);
latency_ms?: (number | null);
mode: 'sync' | 'local' | 'remote';
reachable: boolean;
reference?: ({
[key: string]: any;
} | null);
scheduler: (string | null);
threads?: (number | null);
version_error?: (string | null);
versions_ok?: (boolean | null);
workers?: (number | null);
}
-9
View File
@@ -3,23 +3,14 @@
import { Position } from '../models/position';
/**
* Two inputs side by side where their columns match.
*/
export interface Join {
how?: 'inner' | 'left';
id: string;
inputs?: Array<string>;
kind?: 'join';
/**
* Cómo se ve en el diagrama.
*/
label?: string;
/**
* Columna de la primera entrada = columna de la segunda.
*/
on: Array<[string, string]>;
position?: (Position | null);
}
-17
View File
@@ -3,33 +3,16 @@
import { Position } from '../models/position';
/**
* Identity rows from every input, grouped into persons (Splink).
*
* Two records are the same person when any rule holds (Splink's SQL rule syntax, `l.`
* and `r.` for the two records); persons are the connected groups. A person whose
* records disagree on birth date or sex is held for review as a whole. Pairs Splink
* scores above `review` that ended up apart are queued as possible matches.
*/
export interface Link {
fields?: Array<string>;
id: string;
inputs?: Array<string>;
kind?: 'link';
/**
* Cómo se ve en el diagrama.
*/
label?: string;
position?: (Position | null);
/**
* Parecidos por encima de esto los ve un revisor.
*/
review?: number;
/**
* Vacío: las de siempre (mismo identificador, o misma fecha de nacimiento y nombre).
*/
rules?: Array<string>;
}
-4
View File
@@ -2,10 +2,6 @@
/* Code generated by ng-openapi-gen DO NOT EDIT. */
/**
* What "Probar conexión" shows: a database's tables (the resources of `source`, built
* from `args`), or the first rows the type's own node reads (files, records).
*/
export interface Listing {
args?: {
[key: string]: any;
-19
View File
@@ -3,27 +3,14 @@
import { Position } from '../models/position';
/**
* Columns to platform fields, the site's codes translated by its ConceptMap
* (core.concept_map), and its date formats.
*/
export interface Map {
/**
* La tabla de códigos del sitio.
*/
concept_map?: (string | null);
/**
* Dato de la plataforma → columna del sitio.
*/
fields: {
[key: string]: string;
};
/**
* Por ejemplo %d/%m/%Y.
*/
formats?: {
[key: string]: string;
};
@@ -31,15 +18,9 @@ export interface Map {
inputs?: Array<string>;
kind?: 'map';
/**
* Cómo se ve en el diagrama.
*/
label?: string;
position?: (Position | null);
/**
* Un dato igual para todas las filas.
*/
values?: {
[key: string]: string;
};
-6
View File
@@ -1,16 +1,10 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Site } from '../models/site';
export interface Metric {
code: string;
electrodes?: Array<Site>;
median?: (number | null);
model: (string | null);
outside: (number | null);
p5?: (number | null);
p95?: (number | null);
value: number;
z: (number | null);
zones?: Array<Site>;
}
+7
View File
@@ -0,0 +1,7 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface Options {
default_mode: 'sync' | 'local' | 'remote';
schedulers: Array<string>;
}
+2 -1
View File
@@ -1,6 +1,7 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Edf } from '../models/edf';
import { Extract } from '../models/extract';
import { Fhir } from '../models/fhir';
import { Join } from '../models/join';
@@ -11,5 +12,5 @@ import { Route } from '../models/route';
import { Source } from '../models/source';
import { Target } from '../models/target';
export interface Pipeline {
nodes: Array<(Source | Read | Route | Map | Extract | Fhir | Join | Link | Target)>;
nodes: Array<(Source | Read | Route | Map | Extract | Edf | Fhir | Join | Link | Target)>;
}
+16
View File
@@ -0,0 +1,16 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface PreviewAdos2 {
classification: (string | null);
css: (number | null);
evaluation_date: (string | null);
items: {
[key: string]: (number | null);
};
module: (string | null);
read: Array<string>;
titles: {
[key: string]: string;
};
}
+21
View File
@@ -0,0 +1,21 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { PreviewMetric } from '../models/preview-metric';
export interface PreviewEeg {
age_months: (number | null);
bad_channels: (number | null);
channels: (number | null);
checks: Array<{
[key: string]: any;
}>;
clean_fraction: (number | null);
duration_min: (number | null);
error: (string | null);
level: string;
line_noise_db: (number | null);
metrics: Array<PreviewMetric>;
recorded_on: (string | null);
sleep: (boolean | null);
valid: (boolean | null);
}
+17
View File
@@ -0,0 +1,17 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Score } from '../models/score';
import { Site } from '../models/site';
export interface PreviewMetric {
code: string;
electrodes: {
[key: string]: Site;
};
model: (string | null);
score: (Score | null);
value: (number | null);
zones: {
[key: string]: Site;
};
}
+10
View File
@@ -0,0 +1,10 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { PreviewAdos2 } from '../models/preview-ados-2';
import { PreviewEeg } from '../models/preview-eeg';
export interface PreviewResult {
ados2: (PreviewAdos2 | null);
eeg: PreviewEeg;
warnings: Array<string>;
}
+8
View File
@@ -0,0 +1,8 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { PreviewResult } from '../models/preview-result';
export interface PreviewStatus {
result: (PreviewResult | null);
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
}
+18
View File
@@ -0,0 +1,18 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Tasks } from '../models/tasks';
import { Worker } from '../models/worker';
export interface Progress {
done: number;
elapsed_s: number;
eta_s: (number | null);
mode: 'sync' | 'local' | 'remote';
phase: string;
scheduler: (string | null);
tasks?: (Tasks | null);
total: number;
updated_at: string;
workers?: Array<Worker>;
}
-3
View File
@@ -2,9 +2,6 @@
/* Code generated by ng-openapi-gen DO NOT EDIT. */
/**
* A sign-in button's OAuth 2.0 provider (authorization code flow).
*/
export interface Provider {
authorize_params?: {
[key: string]: string;
-9
View File
@@ -3,22 +3,13 @@
import { Position } from '../models/position';
/**
* Files in a column (PDF, Word, Excel, scans...) to text (MarkItDown, OCRmyPDF).
*/
export interface Read {
/**
* Donde la entrada trae cada documento.
*/
column: string;
id: string;
inputs?: Array<string>;
kind?: 'read';
/**
* Cómo se ve en el diagrama.
*/
label?: string;
position?: (Position | null);
}
-25
View File
@@ -1,25 +0,0 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
/**
* One pair of the champion EEG–ADOS-2 association, for this EEG (models.tea.association).
*/
export interface Relation {
biomarker: string;
ci_high: (number | null);
ci_low: (number | null);
event: string;
kind: string;
metric: string;
model: string;
n: number;
observed?: (number | null);
odds_ratio: number;
outcome_code: string;
probability: number;
q: (number | null);
reference_probability: number;
z: number;
zone: string;
}
-11
View File
@@ -4,24 +4,13 @@
import { Condition } from '../models/condition';
import { Position } from '../models/position';
/**
* Only the rows where every condition holds (e.g. reports titled "Citología"). An
* `otherwise` route takes the rows of its input that none of the other routes on that
* input take (documents nobody recognises, for a reviewer), then its own conditions.
*/
export interface Route {
id: string;
inputs?: Array<string>;
kind?: 'route';
/**
* Cómo se ve en el diagrama.
*/
label?: string;
/**
* Recoge lo que nadie reconoce, para revisarlo.
*/
otherwise?: boolean;
position?: (Position | null);
when?: Array<Condition>;
+12
View File
@@ -0,0 +1,12 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface RunSummary {
domain: (string | null);
ended: (number | null);
id: string;
job: string;
started: (number | null);
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
status: string;
}
+22
View File
@@ -0,0 +1,22 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Progress } from '../models/progress';
import { Step } from '../models/step';
export interface Run {
domain: (string | null);
ended: (number | null);
error: (string | null);
id: string;
info: Array<string>;
job: string;
outputs?: ({
[key: string]: any;
} | null);
progress: (Progress | null);
started: (number | null);
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
status: string;
steps: Array<Step>;
warnings: Array<string>;
}
+9
View File
@@ -0,0 +1,9 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface Scope {
ids?: Array<string>;
mode?: 'pending' | 'first_n' | 'ids';
n?: (number | null);
}
+10
View File
@@ -0,0 +1,10 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface Score {
median: (number | null);
outside: (number | null);
p5: (number | null);
p95: (number | null);
z: (number | null);
}
@@ -0,0 +1,6 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface SiteTrainingSource {
kind: 'site';
}
+3 -3
View File
@@ -1,8 +1,8 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Score } from '../models/score';
export interface Site {
site: string;
value: number;
z: (number | null);
score: (Score | null);
value: (number | null);
}
-22
View File
@@ -4,15 +4,8 @@
import { Guided } from '../models/guided';
import { Position } from '../models/position';
/**
* One table, file set or API resource, copied as it is (dlt). Merged on the source's
* own primary key or `primary_key`; replaced whole when it has none.
*/
export interface Source {
/**
* Los de la fuente dlt.
*/
args?: {
[key: string]: any;
};
@@ -21,29 +14,14 @@ export interface Source {
inputs?: Array<string>;
kind?: 'source';
/**
* Cómo se ve en el diagrama.
*/
label?: string;
position?: (Position | null);
/**
* Columnas que identifican una fila.
*/
primary_key?: Array<string>;
/**
* Cuál, si la fuente ofrece varios (una tabla).
*/
resource?: (string | null);
/**
* Módulo:función de la fuente dlt.
*/
source: string;
/**
* Transformador dlt para los archivos.
*/
then?: (string | null);
}
+9
View File
@@ -0,0 +1,9 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface Step {
ended: (number | null);
key: string;
started: (number | null);
status: string;
}
-10
View File
@@ -3,23 +3,13 @@
import { Position } from '../models/position';
/**
* Rows of platform fields into one platform entity, each row given its person by the
* one `link` node among the inputs. Rule breaks are held for review.
*/
export interface Target {
/**
* En qué estudio de la plataforma se guarda.
*/
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
id: string;
inputs?: Array<string>;
kind?: 'target';
/**
* Cómo se ve en el diagrama.
*/
label?: string;
position?: (Position | null);
}
+10
View File
@@ -0,0 +1,10 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface Tasks {
erred?: number;
memory?: number;
processing?: number;
queued?: number;
waiting?: number;
}
+13
View File
@@ -0,0 +1,13 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface TrainingConfig {
defaults: {
[key: string]: any;
};
domain: string;
json_schema: {
[key: string]: any;
};
name: string;
}
+7
View File
@@ -0,0 +1,7 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { FolderTrainingSource } from '../models/folder-training-source';
import { SiteTrainingSource } from '../models/site-training-source';
export type TrainingSource = (SiteTrainingSource | FolderTrainingSource);
+5
View File
@@ -1,7 +1,12 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Execution } from '../models/execution';
import { TrainingSource } from '../models/training-source';
export interface Training {
as_of?: (string | null);
execution?: (Execution | null);
models?: Array<string>;
source?: (TrainingSource | null);
}
+1
View File
@@ -11,5 +11,6 @@ export interface Version {
[key: string]: string;
};
reports: Array<string>;
status: 'champion' | 'retired' | 'candidate';
version: number;
}
+11
View File
@@ -0,0 +1,11 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
export interface Worker {
cpu_pct: number;
executing: number;
memory_bytes: number;
memory_limit: (number | null);
name: string;
threads: number;
}
-59
View File
@@ -3,10 +3,6 @@
import { HttpRequest, HttpParameterCodec, HttpParams, HttpHeaders, HttpContext } from '@angular/common/http';
/**
* Custom parameter codec to correctly handle the plus sign in parameter
* values. See https://github.com/angular/angular/issues/18261
*/
class ParameterCodec implements HttpParameterCodec {
encodeKey(key: string): string {
return encodeURIComponent(key);
@@ -26,17 +22,11 @@ class ParameterCodec implements HttpParameterCodec {
}
const ParameterCodecInstance = new ParameterCodec();
/**
* Defines the options for appending a parameter
*/
interface ParameterOptions {
style?: string;
explode?: boolean;
}
/**
* Base class for a parameter
*/
abstract class Parameter {
constructor(public name: string, public value: any, public options: ParameterOptions, defaultStyle: string, defaultExplode: boolean) {
this.options = options || {};
@@ -74,9 +64,6 @@ abstract class Parameter {
}
}
/**
* A parameter in the operation path
*/
class PathParameter extends Parameter {
constructor(name: string, value: any, options: ParameterOptions) {
super(name, value, options, 'simple', false);
@@ -91,24 +78,20 @@ class PathParameter extends Parameter {
let separator = this.options.explode ? prefix === '' ? ',' : prefix : ',';
let alreadySerialized = false;
if (this.options.style === 'matrix') {
// The parameter name is just used as prefix, except in some cases...
prefix = `;${this.name}=`;
if (this.options.explode && typeof value === 'object') {
prefix = ';';
if (value instanceof Array) {
// For arrays we have to repeat the name for each element
value = value.map(v => `${this.name}=${this.serializeValue(v, ';')}`);
value = value.join(';');
alreadySerialized = true;
} else {
// For objects we have to put each the key / value pairs
value = this.serializeValue(value, ';');
alreadySerialized = true
}
}
}
value = prefix + (alreadySerialized ? value : this.serializeValue(value, separator));
// Replace both the plain variable and the corresponding variant taking in the prefix and explode into account
path = path.replace(`{${this.name}}`, value);
path = path.replace(`{${prefix}${this.name}${this.options.explode ? '*' : ''}}`, value);
return path;
@@ -124,9 +107,6 @@ class PathParameter extends Parameter {
}
}
/**
* A parameter in the query
*/
class QueryParameter extends Parameter {
constructor(name: string, value: any, options: ParameterOptions) {
super(name, value, options, 'form', true);
@@ -134,7 +114,6 @@ class QueryParameter extends Parameter {
append(params: HttpParams): HttpParams {
if (this.value instanceof Array) {
// Array serialization
if (this.options.explode) {
for (const v of this.value) {
params = params.append(this.name, this.serializeValue(v));
@@ -146,9 +125,7 @@ class QueryParameter extends Parameter {
return params.append(this.name, this.serializeValue(this.value, separator));
}
} else if (this.value !== null && typeof this.value === 'object') {
// Object serialization
if (this.options.style === 'deepObject') {
// Append a parameter for each key, in the form `name[key]`
for (const key of Object.keys(this.value)) {
const propVal = this.value[key];
if (propVal !== null && propVal !== undefined) {
@@ -156,7 +133,6 @@ class QueryParameter extends Parameter {
}
}
} else if (this.options.explode) {
// Append a parameter for each key without using the parameter name
for (const key of Object.keys(this.value)) {
const propVal = this.value[key];
if (propVal !== null && propVal !== undefined) {
@@ -164,7 +140,6 @@ class QueryParameter extends Parameter {
}
}
} else {
// Append a single parameter whose values are a comma-separated list of key,value,key,value...
const array: any[] = [];
for (const key of Object.keys(this.value)) {
const propVal = this.value[key];
@@ -176,16 +151,12 @@ class QueryParameter extends Parameter {
params = params.append(this.name, this.serializeValue(array));
}
} else if (this.value !== null && this.value !== undefined) {
// Plain value
params = params.append(this.name, this.serializeValue(this.value));
}
return params;
}
}
/**
* A parameter in the HTTP request header
*/
class HeaderParameter extends Parameter {
constructor(name: string, value: any, options: ParameterOptions) {
super(name, value, options, 'simple', false);
@@ -205,9 +176,6 @@ class HeaderParameter extends Parameter {
}
}
/**
* Helper to build http requests from parameters
*/
export class RequestBuilder {
private _path = new Map<string, PathParameter>();
@@ -222,30 +190,18 @@ export class RequestBuilder {
public method: string) {
}
/**
* Sets a path parameter
*/
path(name: string, value: any, options?: ParameterOptions): void {
this._path.set(name, new PathParameter(name, value, options || {}));
}
/**
* Sets a query parameter
*/
query(name: string, value: any, options?: ParameterOptions): void {
this._query.set(name, new QueryParameter(name, value, options || {}));
}
/**
* Sets a header parameter
*/
header(name: string, value: any, options?: ParameterOptions): void {
this._header.set(name, new HeaderParameter(name, value, options || {}));
}
/**
* Sets the body content, along with the content type
*/
body(value: any, contentType = 'application/json'): void {
if (value instanceof Blob) {
this._bodyContentType = value.type;
@@ -253,7 +209,6 @@ export class RequestBuilder {
this._bodyContentType = contentType;
}
if (this._bodyContentType === 'application/x-www-form-urlencoded' && value !== null && typeof value === 'object') {
// Handle URL-encoded data
const pairs: Array<[string, string]> = [];
for (const key of Object.keys(value)) {
let val = value[key];
@@ -269,7 +224,6 @@ export class RequestBuilder {
}
this._bodyContent = pairs.map(p => `${encodeURIComponent(p[0])}=${encodeURIComponent(p[1])}`).join('&');
} else if (this._bodyContentType === 'multipart/form-data') {
// Handle multipart form data
const formData = new FormData();
if (value !== null && value !== undefined) {
for (const key of Object.keys(value)) {
@@ -291,7 +245,6 @@ export class RequestBuilder {
}
this._bodyContent = formData;
} else {
// The body is the plain content
this._bodyContent = value;
}
}
@@ -309,33 +262,24 @@ export class RequestBuilder {
return String(value);
}
/**
* Builds the request with the current set parameters
*/
build<T = any>(options?: {
/** Which content types to accept */
accept?: string;
/** The expected response type */
responseType?: 'json' | 'text' | 'blob' | 'arraybuffer';
/** Whether to report progress on uploads / downloads */
reportProgress?: boolean;
/** Allow passing HttpContext for HttpClient */
context?: HttpContext;
}): HttpRequest<T> {
options = options || {};
// Path parameters
let path = this.operationPath;
for (const pathParam of this._path.values()) {
path = pathParam.append(path);
}
const url = this.rootUrl + path;
// Query parameters
let httpParams = new HttpParams({
encoder: ParameterCodecInstance
});
@@ -343,7 +287,6 @@ export class RequestBuilder {
httpParams = queryParam.append(httpParams);
}
// Header parameters
let httpHeaders = new HttpHeaders();
if (options.accept) {
httpHeaders = httpHeaders.append('Accept', options.accept);
@@ -352,12 +295,10 @@ export class RequestBuilder {
httpHeaders = headerParam.append(httpHeaders);
}
// Request content headers
if (this._bodyContentType && !(this._bodyContent instanceof FormData)) {
httpHeaders = httpHeaders.set('Content-Type', this._bodyContentType);
}
// Perform the request
return new HttpRequest<T>(this.method.toUpperCase(), url, this._bodyContent, {
params: httpParams,
headers: httpHeaders,
-3
View File
@@ -3,9 +3,6 @@
import { HttpResponse } from '@angular/common/http';
/**
* Constrains the http response to not have the body defined as `T | null`, but `T` only.
*/
export type StrictHttpResponse<T> = HttpResponse<T> & {
readonly body: T;
}
-1
View File
@@ -16,7 +16,6 @@ export const appConfig: ApplicationConfig = {
provideRouter(routes, withComponentInputBinding()),
provideHttpClient(),
provideApiConfiguration('/api'),
// Icons are the Material Symbols font served with the app.
provideAppInitializer(() => {
inject(MatIconRegistry).setDefaultFontSetClass('material-symbols-outlined');
}),
+6
View File
@@ -13,6 +13,12 @@ export const routes: Routes = [
canActivate: [domainAllowed],
loadComponent: () => import('./indicadores/indicadores').then((m) => m.Indicadores),
},
{
path: 'indicadores/tea/pacientes/:id/riesgo',
canActivate: [domainAllowed],
data: { domain: 'tea', risk: true },
loadComponent: () => import('./paciente/paciente').then((m) => m.Paciente),
},
{
path: 'indicadores/:domain/pacientes/:id',
canActivate: [domainAllowed],
+1 -3
View File
@@ -21,7 +21,7 @@
.title {
flex: 1;
min-width: 0; // gives way to the switcher and the sections, on one line
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -29,7 +29,6 @@
font-weight: 500;
}
// Nothing in the header wraps or shrinks: the title gives way first, then hides.
.domain,
.sections a,
.user {
@@ -90,7 +89,6 @@
.sections {
gap: var(--space-3);
}
// the account by its icon alone; the switcher's name cut short if it must be
.user .who-name {
display: none;
}

Some files were not shown because too many files have changed in this diff Show More