Compare commits

..

117 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
Roberto Treviño ca887c29ab Wording: formal, precise, no narrative; the missing reports of a promotion in Spanish 2026-11-29 15:24:25 -06:00
Roberto Treviño bb506c3926 Conectar: Configuración and Avanzado tabs, rows instead of JSON, field titles as keys, captions that fit their nodes 2026-11-29 15:24:24 -06:00
Roberto Treviño b48c025400 Page test: no overlapping, clipped or wrapped labels at 1440 and 820 px 2026-11-29 12:39:07 -06:00
Roberto Treviño a93cd71126 Cosmetic pass: legends above plots, readable hovers and ticks, KPI qualifiers, a header that never wraps 2026-11-29 12:39:07 -06:00
Roberto Treviño 979b7cf34d Gobernanza: the header's domain switcher, model titles, confirmations, a stop button, an upload button 2026-11-29 12:39:07 -06:00
Roberto Treviño cde9b1cfb1 Revisión: documents no route recognises; reasons and fields in Spanish 2026-11-29 12:39:07 -06:00
Roberto Treviño edc32af67e CaMa record as the old card: summary, mammography, histopathology, prognosis, risk of death and its scenarios' risk factors 2026-11-29 12:39:07 -06:00
Roberto Treviño 2216186d26 Patient lists have a search box; TEA alterations by their Spanish names 2026-11-29 12:39:07 -06:00
Roberto Treviño 55c4e0b173 OpenAPI client: model titles, run termination, Patient name and identifier 2026-11-29 12:39:07 -06:00
Roberto Treviño 52cca0a84c Record history shows only ICD-10 codes beside a diagnosis 2026-11-29 07:13:57 -06:00
Roberto Treviño 7e50ff9b90 OpenAPI spec names the configured promotion reports and CaMa's history 2026-11-29 06:58:38 -06:00
Roberto Treviño ac1d8fc4fa Records show the server's names for coded results; risk lists say empty only once loaded 2026-11-29 06:43:10 -06:00
Roberto Treviño d09e8c59ed Proxy waits up to two minutes for the API 2026-11-29 01:32:09 -06:00
Roberto Treviño 4a8e2e22bd Name breast recurrences in Revisión 2026-11-29 01:06:40 -06:00
Roberto Treviño 1655d464e1 Regenerate the API client for breast recurrences 2026-11-28 23:05:21 -06:00
Roberto Treviño e275782198 Recurrence scenarios leave Gobernanza: the record draws them 2026-11-28 21:30:01 -06:00
Roberto Treviño 133092f8c8 Record: Relación con el ADOS-2 and Análisis de recurrencia; Gobernanza draws the association 2026-11-28 21:28:42 -06:00
Roberto Treviño 6ea54d6e6d Trazabilidad, Datos y definiciones and the risk lists as the old app: declared panels, old labels and order; page tests against the capture 2026-11-28 17:24:29 -06:00
Roberto Treviño cbec0d431e Governance figures spec: scenarios are drawn by the record 2026-11-28 17:16:25 -06:00
Roberto Treviño fd19fdaefa TEA record: Zonas más afectadas (head map and zones by deviation); survival scenarios leave Gobernanza 2026-11-28 17:15:43 -06:00
alberto 38ece960f9 Merge P3.7 into P3.5 for one combined gate 2026-11-28 16:31:56 -06:00
Roberto Treviño 20e26b847a Wizard page test waits for the cancelled dialog to close before saving 2026-11-28 16:05:21 -06:00
alberto b3e5a69783 Client: run outputs 2026-11-28 13:37:28 -06:00
Roberto Treviño 37444a25a1 TEA record: ADOS-2 by item, EEG quality and its alterations against the age norm; page tests follow the cards' and dialog's words 2026-11-28 13:29:23 -06:00
alberto 8442ad5fe6 Client for the training config 2026-11-28 13:26:18 -06:00
Roberto Treviño cb0403affb TEA Análisis de Riesgo as the old page: its filters, the EEG summary of the filtered children and their list; the domain's full name; reports that fail to load can be retried 2026-11-28 10:47:22 -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
Roberto Treviño aeb2d4ec84 TEA Indicadores as the old page: the period summary in words, the three timeliness boxes, counts and age-group figures; tab named Resumen 2026-11-28 10:26:24 -06:00
Roberto Treviño 3e096dd03f CaMa Indicadores as the old page: its cards, timeliness boxes with pending ones, BI-RADS 4–6 donuts, malignancy by BI-RADS and the biopsy donut, the confirmation card; page definitions apart from figure builders 2026-11-28 10:09:30 -06:00
Roberto Treviño 9a15ac6fcb CaCu Indicadores as the old page: its cards and words, the route, cytology and biopsy donuts, results by clinical scenario, confirmation rates; the page test compares with the capture; the guard injects before it waits 2026-11-28 10:03:31 -06:00
Roberto Treviño 198aae59da Conectar dialog by kind of source; plain-language canvas; login page and guard; loading indicators as the old app; survival curves of her clinical scenarios in the CaMa record 2026-11-28 09:30:00 -06:00
alberto 8b1cbec66a Client for model bundle export and import 2026-11-28 09:24:39 -06:00
alberto 43b5523f99 Client for the runs, execution and TEA EEG analysis routes 2026-11-28 06:54:00 -06:00
Roberto Treviño cc22840c3c Client for otherwise routes and unrecognised documents 2026-11-27 19:17:49 -06:00
Roberto Treviño 672091d19a Client for extract fields taken from columns 2026-11-27 16:25:01 -06:00
Roberto Treviño 07212a2083 Client for study-field corrections and multi-column extract 2026-11-27 01:45:16 -06:00
Roberto Treviño 0e4d838d44 Survival scenario charts on the governance page; breast treatment entity 2026-11-26 19:03:39 -06:00
Roberto Treviño d1f9dcbea8 Governance charts for recurrence scenarios and age curves 2026-11-26 14:25:53 -06:00
Roberto Treviño 471ed3a18c TEA indicators, EEG section in governance 2026-11-26 07:06:52 -06:00
Roberto Treviño 53a6393cb2 CaMa indicators and follow-up list, model governance page 2026-11-25 23:20:52 -06:00
Roberto Treviño 9b02641804 ConceptMap editor, names and CURP shown, catalog codes read 2026-11-25 16:17:23 -06:00
Roberto Treviño 9fc0666d66 Page tests: serve on 127.0.0.1, where localhost resolves to ::1 only 2026-11-25 11:06:53 -06:00
Roberto Treviño cd7bbaf11a One shell with the current look: indicators, follow-up list and patient view from FHIR; /conectar canvas; /revision; Playwright page tests 2026-11-25 10:21:30 -06:00
Roberto Treviño 70b6d6c646 Regenerate the API client for model governance and measures 2026-11-25 08:16:09 -06:00
Roberto Treviño 4f858fc686 Regenerate the API client for person review and corrections 2026-11-24 22:35:13 -06:00
Roberto Treviño 0ee30d67f7 Regenerate the API client for the conectar and review routes 2026-11-24 21:00:52 -06:00
rockdrigo 00d03656ef Rebuild: Angular 22 shell with Material, Plotly and the generated API client
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:18:13 -06:00
827 changed files with 32325 additions and 87058 deletions
+3 -4
View File
@@ -1,4 +1,3 @@
node_modules/
dist/
.angular/
.git/
node_modules
dist
.angular
-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
+3 -8
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,6 +32,8 @@ testem.log
/typings
__screenshots__/
# System files
.DS_Store
Thumbs.db
/test-results/
/playwright-report/
+1
View File
@@ -0,0 +1 @@
src/app/api/
-4
View File
@@ -1,4 +0,0 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": ["angular.ng-template"]
}
-20
View File
@@ -1,20 +0,0 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: test",
"url": "http://localhost:9876/debug.html"
}
]
}
-42
View File
@@ -1,42 +0,0 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "Changes detected"
},
"endsPattern": {
"regexp": "bundle generation (complete|failed)"
}
}
}
},
{
"type": "npm",
"script": "test",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "Changes detected"
},
"endsPattern": {
"regexp": "bundle generation (complete|failed)"
}
}
}
}
]
}
+4 -6
View File
@@ -1,12 +1,10 @@
# Production image: the Angular build served by nginx, which proxies the API paths to `webapi`.
FROM node:22-slim AS build
FROM node:24-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npx ng build --configuration production
RUN npx ng build
FROM nginx:1.27-alpine
FROM nginx:1.29-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist/WebApp/browser /usr/share/nginx/html
EXPOSE 80
COPY --from=build /app/dist/webapp/browser /usr/share/nginx/html
-16
View File
@@ -1,16 +0,0 @@
# WebApp
Interfaz de ISSSTELEON en Angular y Angular Material: conexión e importación de
datos (`/conectar`), bitácora de cargas (`/bitacora`), gobernanza y tablero de
indicadores (`/indicadores`).
```bash
npm ci
npx ng serve # http://localhost:4200
npx ng test --watch=false # pruebas unitarias (Vitest)
npx ng build # compilación de producción en dist/WebApp
```
`ng serve` envía las rutas de la API a WebApi en `localhost:5050`
(`proxy.conf.json`). La imagen de Docker (`Dockerfile`) sirve la compilación con
nginx (`nginx.conf`), que reenvía esas mismas rutas al servicio `webapi`.
+21 -38
View File
@@ -2,12 +2,11 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"packageManager": "npm",
"analytics": false
"packageManager": "npm"
},
"newProjectRoot": "projects",
"projects": {
"WebApp": {
"webapp": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
@@ -31,15 +30,20 @@
}
],
"styles": [
"node_modules/@fontsource/roboto/300.css",
"node_modules/@fontsource/roboto/400.css",
"node_modules/@fontsource/roboto/500.css",
"node_modules/@fontsource/rajdhani/600.css",
"node_modules/@fontsource/rajdhani/700.css",
"node_modules/@fontsource/roboto-mono/400.css",
"node_modules/@fontsource/roboto-mono/600.css",
"node_modules/material-icons/iconfont/filled.css",
"@fontsource/roboto/300.css",
"@fontsource/roboto/400.css",
"@fontsource/roboto/500.css",
"@fontsource/roboto/700.css",
"@fontsource/rajdhani/500.css",
"@fontsource/rajdhani/600.css",
"material-symbols/outlined.css",
"src/styles.scss"
],
"define": {
"global": "globalThis"
},
"allowedCommonJsDependencies": [
"plotly.js-cartesian-dist-min"
]
},
"configurations": {
@@ -47,13 +51,13 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumWarning": "600kB",
"maximumError": "1MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kB",
"maximumError": "10kB"
"maximumWarning": "4kB",
"maximumError": "8kB"
}
],
"outputHashing": "all"
@@ -62,45 +66,24 @@
"optimization": false,
"extractLicenses": false,
"sourceMap": true
},
"simulado": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true,
"fileReplacements": [
{
"replace": "src/app/app.config.ts",
"with": "src/app/app.config.simulado.ts"
}
]
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular/build:dev-server",
"options": {
"proxyConfig": "proxy.conf.json"
},
"configurations": {
"production": {
"buildTarget": "WebApp:build:production"
"buildTarget": "webapp:build:production"
},
"development": {
"buildTarget": "WebApp:build:development"
},
"simulado": {
"buildTarget": "WebApp:build:simulado",
"proxyConfig": "simulado/proxy.simulado.json"
"buildTarget": "webapp:build:development"
}
},
"defaultConfiguration": "development"
},
"test": {
"builder": "@angular/build:unit-test",
"options": {
"isolate": true
}
"builder": "@angular/build:unit-test"
}
}
}
+463
View File
@@ -0,0 +1,463 @@
import { expect } from '@playwright/test';
import { downloaded, test, watch } from './support';
test('tea indicators: every tab loads, and the follow-up list exports to Excel', async ({
page,
}) => {
const problems = watch(page);
const listed = page.waitForResponse(
(r) => r.url().includes('/tea/fhir/Measure') && !r.url().includes('MeasureReport'),
);
await page.goto('/indicadores/tea');
const measures = (await (await listed).json()).entry.length;
expect(measures).toBe(11);
await expect(page.getByRole('tab', { name: 'Resumen' })).toBeVisible();
const indicators = page.locator('app-tab-indicadores');
await expect(indicators.locator('[data-measure]')).toHaveCount(10);
await expect(indicators.locator('[data-figure="sankey"] .sankey')).toBeVisible();
await expect(indicators.locator('[data-measure="M31_PREVALENCIA"] .barlayer')).toBeVisible();
await expect(
indicators.locator('[data-measure="M24_CONFIRMACION_DIAGNOSTICO"] app-plot'),
).toHaveCount(1);
await expect(
indicators.locator('[data-measure="M23_PACIENTES_EVALUADOS"] mat-button-toggle-group'),
).toHaveCount(0);
await expect(
indicators.getByRole('heading', { name: 'Porcentaje de EEG normal y anormal' }),
).toHaveCount(0);
await page.getByRole('tab', { name: 'Trazabilidad' }).click();
const history = page.locator('app-tab-trazabilidad');
await expect(history.locator('[data-measure]')).toHaveCount(11);
await expect(
history.getByRole('heading', { name: 'Prevalencia registrada de TEA' }),
).toBeVisible();
await expect(
history.getByRole('heading', { name: 'Porcentaje de EEG normal y anormal' }),
).toBeVisible();
await expect(page.locator('app-tab-trazabilidad app-plot').first()).toBeVisible();
await page.getByRole('tab', { name: 'Seguimiento' }).click();
const rows = page.locator('app-tab-seguimiento-tea table tbody tr');
await expect(rows.first().locator('td').first()).toHaveText(/^N-?\d{4}$/);
await expect(rows.first().locator('app-tea-stepper li')).toHaveCount(4);
await expect(page.locator('app-tab-seguimiento-tea').getByRole('columnheader')).toHaveText([
'Expediente',
'Nombre',
'Sexo',
'Edad (meses)',
'Etapa',
'Puntaje M-CHAT',
'CSS ADOS-2',
'Estatus de EEG',
'Alteraciones encontradas',
]);
const name = await downloaded(
page,
page.getByRole('button', { name: 'Exportar a Excel' }),
'xlsx',
);
expect(name).toMatch(/^tea-seguimiento-/);
await page.getByRole('tab', { name: 'Análisis de riesgo' }).click();
const risk = page.locator('app-tab-riesgos-tea');
await expect(
risk.getByRole('heading', { name: 'EEG de los pacientes del periodo' }),
).toBeVisible();
await expect(risk.locator('table.worklist tbody tr').first().locator('td').first()).toHaveText(
/^N-?\d{4}$/,
);
await expect(risk.locator('table.worklist > thead').getByRole('columnheader')).toHaveText([
'Expediente',
'Nombre',
'Sexo',
'Edad (meses)',
'Asociación principal',
'Razón de momios',
'IC 95 %',
'q',
'Probabilidad',
'Probabilidad de referencia',
]);
await risk.getByRole('combobox', { name: 'Modelo de asociación' }).click();
await page.getByRole('option', { name: 'Con resultados' }).click();
await expect(risk.locator('table.worklist tbody tr').first()).toBeVisible();
await page.getByRole('tab', { name: 'Datos y definiciones' }).click();
const definitions = page.locator('app-tab-definiciones');
await expect(definitions.locator('details')).toHaveCount(measures);
await expect(
definitions.getByText('Porcentaje de EEG normal y anormal', { exact: true }),
).toBeVisible();
await definitions.getByText('Prevalencia registrada de TEA', { exact: true }).click();
await expect(definitions.getByText(/Every child loaded on the platform/)).toBeVisible();
expect(problems).toEqual([]);
});
test('tea complete child: every screen has data', async ({ page }) => {
const problems = watch(page);
const recordNumber = /^N-?0011$/;
const filled = /^\s*(?!—\s*$)\S/;
const mark = '.point, .slice path, .sankey-node, .box';
const tab = (name: string) => page.getByRole('tab', { name }).click();
const section = (title: string) =>
page.locator('app-tea-section').filter({
has: page.locator('mat-card-title').getByText(title, { exact: true }),
});
const find = async (host: string) => {
const search = page.locator(host).getByRole('searchbox', { name: 'Buscar paciente' });
await search.fill('N0011');
await search.press('Enter');
};
const childRow = (table: string) =>
page
.locator(table)
.getByRole('row')
.filter({
has: page.getByRole('cell', { name: recordNumber }),
});
await page.goto('/indicadores/tea');
const summary = page.locator('app-tab-indicadores');
await summary.getByText('Semestral', { exact: true }).click();
await summary.getByRole('combobox', { name: 'Periodo seleccionado' }).click();
await page.getByRole('option', { name: '2025-S2', exact: true }).click();
await summary.getByRole('button', { name: 'Aplicar' }).click();
await expect(summary.locator('.summary mark').first()).toHaveText(/\d/);
const summaryFigures = summary.locator('.figure-card, .box-card');
await expect(summaryFigures).toHaveCount(10);
for (const card of await summaryFigures.all()) {
await expect(card.locator(`app-plot :is(${mark})`).first()).toBeAttached();
}
await expect(summary.getByText('Sin datos publicados')).toHaveCount(0);
await tab('Trazabilidad');
const history = page.locator('app-tab-trazabilidad');
const panels = history.locator('[data-measure]');
await expect(panels).toHaveCount(11);
for (const panel of await panels.all()) {
await expect(panel.locator(`app-plot :is(${mark})`).first()).toBeAttached();
}
await expect(history.getByText('Sin datos para el periodo.')).toHaveCount(0);
await tab('Seguimiento');
await find('app-tab-seguimiento-tea');
const followUp = childRow('app-tab-seguimiento-tea table.worklist');
await expect(followUp.getByRole('cell')).toHaveCount(9);
await expect(followUp.locator('td:not(:nth-child(5))')).toHaveText(Array(8).fill(filled));
await expect(followUp.locator('app-tea-stepper li.completed')).toHaveCount(4);
await expect(followUp.getByRole('cell').last()).toHaveText(/^[1-9]\d*$/);
await tab('Análisis de riesgo');
const risk = page.locator('app-tab-riesgos-tea');
await find('app-tab-riesgos-tea');
await risk.getByRole('combobox', { name: 'Modelo de asociación' }).click();
await page.getByRole('option', { name: 'Con resultados' }).click();
const riskRow = childRow('app-tab-riesgos-tea table.worklist');
await expect(riskRow.getByRole('cell')).toHaveText(Array(10).fill(filled));
await tab('Datos y definiciones');
const definitions = page.locator('app-tab-definiciones');
await expect(definitions.locator('details')).toHaveCount(11);
await definitions.getByText('Prevalencia registrada de TEA', { exact: true }).click();
await expect(definitions.getByText(/Every child loaded on the platform/)).toBeVisible();
await tab('Seguimiento');
await followUp.getByRole('link').click();
await expect(page.getByText(recordNumber)).toBeVisible();
const gantt = section('Línea del tiempo');
await expect(gantt.locator('app-plot .barlayer .point').first()).toBeAttached();
const diamonds = gantt.locator('app-plot .scatterlayer path.point');
await expect(diamonds).toHaveCount(4);
for (const diamond of await diamonds.all()) {
await expect(diamond).toHaveAttribute('d', /^M[\d.]+,0L0,[\d.]+L-/);
}
await expect(section('ADOS-2').locator('tbody tr').first().locator('td').nth(2)).toHaveText(
/^[AB]-\d+$/,
);
await expect(section('Calidad del EEG').locator('tbody tr').first()).toBeVisible();
const alterations = section('Alteraciones');
await expect(
alterations.locator('h3:text-is("Norma por edad · p5–p95") + app-plot .point').first(),
).toBeAttached();
await expect(
alterations.locator('h3:text-is("Mapa de la cabeza") + app-plot .contourlayer path').first(),
).toBeAttached();
await expect(section('Relación con el ADOS-2').locator('tbody tr').first()).toBeVisible();
await page.getByRole('link', { name: 'Análisis de riesgo' }).click();
await expect(page.getByRole('heading', { name: 'Análisis de riesgo TEA' })).toBeVisible();
await expect(section('Qué calcula').locator('p').first()).toHaveText(/ADOS-2/);
await expect(
section('Puntuaciones z por métrica y zona').locator('app-plot .point').first(),
).toBeAttached();
await expect(
section('Razones de momios por par').locator('app-plot .point').first(),
).toBeAttached();
await expect(
section('Probabilidad frente a la referencia').locator('tbody tr').first(),
).toBeVisible();
await expect(section('Probabilidad según z').locator('app-plot .point').first()).toBeAttached();
await expect(section('Limitaciones').locator('p').first()).toHaveText(/cohorte/);
await page.goto('/gobernanza/tea');
await expect(page.getByRole('region', { name: 'Ejecución' }).getByRole('status')).toContainText(
'Disponible',
);
const models = page.getByRole('region', { name: 'Modelos' });
const modelCards = models.locator('section.model');
await expect(modelCards).toHaveCount(8);
for (const model of await modelCards.all()) {
await expect(model.getByText('champion', { exact: true })).toBeVisible();
}
await expect(page.locator('app-governance-training formly-form')).toBeVisible();
await expect(page.getByText('Subir archivos', { exact: true })).toHaveCount(0);
const bundles = page.getByRole('region', { name: 'Bundles' });
await expect(bundles.getByRole('combobox', { name: 'Versiones' })).toHaveText('En producción');
await expect(bundles.getByRole('button', { name: 'Exportar bundle' })).toBeEnabled();
const studies = page.locator('app-eeg-studies');
const completeEeg = studies.getByRole('row').filter({ hasText: 'LAB-N-0011-1' });
await expect(completeEeg).toContainText(/\bVálido\b/);
await completeEeg.getByRole('button').click();
await expect(
studies
.locator('table.plain:not(.eegs) tbody tr td')
.filter({ hasText: /^tea\./ })
.first(),
).toBeVisible();
await models.getByRole('button', { name: 'Evaluar un solo estudio' }).click();
const preview = page.locator('app-eeg-preview');
await expect(preview.getByLabel('EDF')).toBeAttached();
await expect(preview.getByLabel('ADOS-2 (PDF)')).toBeAttached();
await expect(preview.getByLabel('Fecha de nacimiento')).toBeVisible();
await expect(page.getByRole('heading', { name: 'Vista previa', level: 2 })).toHaveCount(0);
expect(problems).toEqual([]);
});
test('tea patient: the record and the risk page load and export to PDF', async ({ page }) => {
const problems = watch(page);
await page.goto('/indicadores/tea');
await page.getByRole('tab', { name: 'Seguimiento' }).click();
const first = page.locator('app-tab-seguimiento-tea table tbody tr').first();
await expect(first.locator('td').first()).toHaveText(/^N-?\d{4}$/);
await first.getByRole('link').click();
await expect(page).toHaveURL(/\/indicadores\/tea\/pacientes\/[^/]+$/);
await expect(page.getByRole('heading', { level: 1 })).toBeVisible();
const timeline = page.locator('app-tea-section').first();
await expect(timeline.getByText('Línea del tiempo', { exact: true })).toBeVisible();
await expect(timeline.locator('app-plot .scatterlayer .point').first()).toBeVisible();
await expect(timeline.getByRole('table')).toHaveCount(0);
const record = await downloaded(page, page.getByRole('button', { name: 'Exportar PDF' }), 'pdf');
expect(record).toMatch(/^tea-seguimiento-/);
await page.getByRole('link', { name: 'Regresar' }).click();
const focused = page.locator('app-tab-seguimiento-tea');
await expect(focused.getByRole('button', { name: 'Ver todos los pacientes' })).toBeVisible();
const focusedRows = focused.locator('table tbody tr');
await expect(focusedRows).toHaveCount(1);
await expect(focusedRows.first().locator('td')).toHaveCount(9);
await expect(focusedRows.first().locator('app-tea-stepper')).toBeVisible();
await focusedRows.first().getByRole('link').click();
await page.getByRole('link', { name: 'Análisis de riesgo' }).click();
await expect(page.getByRole('heading', { name: 'Análisis de riesgo TEA' })).toBeVisible();
await expect(page.locator('app-tea-section').first()).toBeVisible();
expect(await downloaded(page, page.getByRole('button', { name: 'Exportar PDF' }), 'pdf')).toMatch(
/^tea-riesgos-/,
);
await page.goto('/indicadores/tea');
await page.getByRole('tab', { name: 'Análisis de riesgo' }).click();
const riskList = page.locator('app-tab-riesgos-tea table.worklist');
const patientLink = riskList.getByRole('row').nth(1).getByRole('link');
await expect(patientLink).toHaveAttribute(
'href',
/\/indicadores\/tea\/pacientes\/[^/]+\/riesgo$/,
);
await patientLink.click();
await expect(page).toHaveURL(/\/indicadores\/tea\/pacientes\/[^/]+\/riesgo$/);
await expect(page.getByRole('heading', { name: 'Análisis de riesgo TEA' })).toBeVisible();
expect(problems).toEqual([]);
});
test('tea gobernanza: every section in sync mode, and the preview saved as PDF', async ({
page,
}) => {
const problems = watch(page);
await page.goto('/gobernanza/tea');
await expect(page.locator('app-gobernanza').getByRole('heading', { level: 2 })).toHaveText([
'Ejecución',
'Modelos',
'Entrenamiento',
'Bundles',
'Estudios EEG',
]);
await expect(page.getByRole('heading', { name: 'Subir archivos', exact: true })).toHaveCount(0);
await expect(page.getByText('Archivos de entrenamiento', { exact: true })).toHaveCount(0);
await page.getByRole('combobox', { name: 'Modo' }).click();
await page.getByRole('option', { name: 'Sync' }).click();
await expect(page.getByRole('status').filter({ hasText: 'Disponible' })).toBeVisible();
await page.getByRole('button', { name: 'Entrenar modelos' }).click();
const training = page.getByRole('heading', { name: 'Entrenamiento', level: 2 });
await expect(training).toBeVisible();
await expect(training).toBeFocused();
await expect(page.locator('app-governance-training formly-form')).toBeVisible();
const source = page.getByRole('combobox', { name: 'Origen' });
const folder = page.getByRole('textbox', { name: 'Carpeta', exact: true });
const line = page.getByRole('combobox', { name: 'Frecuencia de la red eléctrica (Hz)' });
await expect(source).toHaveText('Niños del sitio sin el diagnóstico');
await expect(folder).toBeHidden();
await expect(line).toBeHidden();
await source.click();
await page.getByRole('option', { name: 'Carpeta de EDF con edades' }).click();
await expect(folder).toBeVisible();
await expect(line).toBeVisible();
await source.click();
await page.getByRole('option', { name: 'Niños del sitio sin el diagnóstico' }).click();
await expect(folder).toBeHidden();
await expect(line).toBeHidden();
const monitor = page.locator('app-governance-models app-run-monitor');
await page.getByRole('button', { name: 'Analizar EEG' }).click();
await expect(page.getByRole('heading', { name: 'Análisis de EEG' })).toBeVisible();
await expect(monitor.getByRole('status')).toHaveText('SUCCESS', { timeout: 10 * 60_000 });
await page.getByRole('button', { name: 'Calcular riesgos' }).click();
await expect(page.getByRole('heading', { name: 'Cálculo de riesgos' })).toBeVisible();
await expect(monitor.getByRole('status')).toHaveText('SUCCESS', { timeout: 10 * 60_000 });
await page.getByRole('button', { name: 'Promover candidatas' }).click();
await expect(page.getByText('No hay candidatas que se puedan promover.')).toBeVisible();
const studies = page.locator('app-eeg-studies');
await expect(studies.locator('input[type=file]')).toHaveCount(0);
await expect(studies.locator('table.eegs tbody tr').first()).toContainText(/Válido|No válido/);
await studies.locator('table.eegs tbody button:enabled').first().click();
await expect(studies.getByRole('heading', { name: /^EEG .* meses$/ })).toBeVisible();
await studies.getByRole('button', { name: 'Analizar', exact: true }).click();
await expect(studies.locator('app-run-monitor').first().getByRole('status')).toHaveText(
'SUCCESS',
{ timeout: 10 * 60_000 },
);
const models = page.getByRole('region', { name: 'Modelos' });
const toggle = models.getByRole('button', { name: 'Evaluar un solo estudio' });
const preview = models.locator('.button-row + app-eeg-preview');
const edf = preview.getByRole('button', { name: 'EDF', exact: true });
const ados = preview.getByRole('button', { name: 'ADOS-2 (PDF)', exact: true });
const birth = preview.getByLabel('Fecha de nacimiento');
await expect(toggle).toHaveAttribute('aria-pressed', 'false');
await expect(edf).toBeHidden();
await expect(ados).toBeHidden();
await expect(birth).toBeHidden();
await toggle.click();
await expect(toggle).toHaveAttribute('aria-pressed', 'true');
await expect(page.getByRole('heading', { name: 'Vista previa', exact: true })).toHaveCount(0);
await expect(edf).toBeVisible();
await expect(ados).toBeVisible();
await expect(birth).toBeVisible();
await toggle.click();
await expect(toggle).toHaveAttribute('aria-pressed', 'false');
await expect(edf).toBeHidden();
await expect(ados).toBeHidden();
await expect(birth).toBeHidden();
await toggle.click();
await preview.getByLabel('EDF').setInputFiles(process.env['TEA_EDF']!);
await preview.getByLabel('ADOS-2 (PDF)').setInputFiles(process.env['TEA_ADOS2']!);
await preview.getByLabel('Fecha de nacimiento').fill(process.env['TEA_BIRTH']!);
await preview.getByRole('button', { name: 'Vista previa' }).click();
const dialog = page.getByRole('dialog', { name: 'Vista previa del estudio' });
await expect(dialog.getByText('Resultado de la vista previa')).toBeVisible({
timeout: 10 * 60_000,
});
await expect(dialog.locator('dt').first()).toHaveText(/^[AB]-\d+ \S/);
expect(
await downloaded(page, dialog.getByRole('button', { name: 'Guardar como PDF' }), 'pdf'),
).toMatch(/^tea-gobernanza-/);
await dialog.getByRole('button', { name: 'Cerrar' }).click();
const bundles = page.locator('app-governance-bundles');
await bundles.getByRole('combobox', { name: 'Versiones' }).click();
await page.getByRole('option', { name: 'Todas' }).click();
const [bundle] = await Promise.all([
page.waitForEvent('download'),
bundles.getByRole('button', { name: 'Exportar bundle' }).click(),
]);
expect(bundle.suggestedFilename()).toMatch(/^tea-models-[0-9a-f]{12}\.zip$/);
await expect(bundles.locator('code')).toHaveText(/^[0-9a-f]{64}$/);
expect(problems).toEqual([]);
});
test('conectar: the tea pipeline on the canvas, and a node form', async ({ page }) => {
const problems = watch(page);
await page.goto('/conectar');
const pipelines = page.locator('aside.pipelines a');
await expect(pipelines).toHaveCount(1);
await expect(pipelines.first()).toContainText('tea');
await pipelines.first().click();
const canvas = page.locator('.canvas');
await expect(page.getByRole('button', { name: 'Leer EDF' })).toBeVisible();
const extract = canvas.locator('.node-caption', { hasText: 'Extraer datos' });
await expect(extract).toBeVisible();
await extract.click();
const panel = page.locator('aside.panel');
await expect(panel.getByRole('heading', { name: 'Extraer datos · ados2_results' })).toBeVisible();
await expect(panel.locator('formly-form')).toBeVisible();
expect(problems).toEqual([]);
});
test('revision: the unrecognised-documents tab mirrors the pipeline', async ({ page }) => {
const problems = watch(page);
const answer = page.waitForResponse((r) => r.url().includes('/review/unrecognised'));
await page.goto('/revision');
await expect(page.getByRole('heading', { name: 'Revisión' })).toBeVisible();
const count = ((await (await answer).json()) as unknown[]).length;
const tab = page.getByRole('tab', { name: 'Documentos no reconocidos' });
await expect(tab).toHaveText(`Documentos no reconocidos (${count})`);
await tab.click();
if (count === 0) {
await expect(page.getByText('Sin documentos no reconocidos.')).toBeVisible();
} else {
await expect(page.locator('table.plain:not(.card) tbody tr')).toHaveCount(count);
}
expect(problems).toEqual([]);
});
test('cacu and cama indicators: the four tabs over domains without data', async ({ page }) => {
const problems = watch(page);
expect(await (await page.request.get('/api/domains')).json()).toEqual(['cacu', 'cama', 'tea']);
for (const [domain, title] of [
['cacu', 'Cáncer cervicouterino'],
['cama', 'Cáncer de mama'],
]) {
await page.goto(`/indicadores/${domain}`);
await expect(page.getByRole('heading', { name: title, level: 1 })).toBeVisible();
await expect(page.getByRole('tab')).toHaveText([
'Indicadores',
'Trazabilidad',
'Análisis de riesgos',
'Datos y definiciones',
]);
await expect(page.getByText('Sin datos en el periodo.').first()).toBeVisible();
}
expect(problems).toEqual([]);
});
test('cacu gobernanza: the shared sections only, none of the TEA ones', async ({ page }) => {
const problems = watch(page);
await page.goto('/gobernanza/cacu');
await expect(page.locator('app-gobernanza').getByRole('heading', { level: 2 })).toHaveText([
'Ejecución',
'Modelos',
'Entrenamiento',
'Bundles',
]);
await expect(page.locator('app-eeg-studies')).toHaveCount(0);
await expect(page.locator('app-eeg-preview')).toHaveCount(0);
const nav = page.getByRole('navigation', { name: 'Dominios' });
await expect(nav.getByRole('link', { name: 'Cáncer de mama' })).toBeVisible();
await expect(nav.getByRole('link', { name: 'Trastorno del espectro autista' })).toBeVisible();
expect(problems.filter((p) => !p.startsWith('console: Failed to load'))).toEqual([]);
});
+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;
}
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "node_modules/ng-openapi-gen/ng-openapi-gen-schema.json",
"input": "openapi.json",
"output": "src/app/api",
"ignoreUnusedModels": false
}
+9 -33
View File
@@ -1,35 +1,11 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
# Files travel inside the import requests (multipart or base64 JSON):
# keep this above WebApi's WEBAPI_MAX_UPLOAD_MB (200 MB default) plus
# the ~33% base64 overhead.
client_max_body_size 270m;
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
gzip_min_length 1024;
location ~ ^/(api|imports|data|cacu|cama|tea|governance|reportes|health)(/|$) {
proxy_pass http://webapi:5000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# OCR over a stack of scanned pages takes a while.
proxy_read_timeout 600s;
}
# Bundles carry a content hash in their name; index.html doesn't, so it
# must be revalidated or browsers keep running the previous release.
location ~* \.(js|css)$ {
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri =404;
}
location / {
add_header Cache-Control "no-cache";
try_files $uri $uri/ /index.html;
}
listen 80;
root /usr/share/nginx/html;
location /api/ {
proxy_pass http://api:8000/;
proxy_read_timeout 120s;
}
location / {
try_files $uri $uri/ /index.html;
}
}
+7854
View File
File diff suppressed because it is too large Load Diff
+4326 -2805
View File
File diff suppressed because it is too large Load Diff
+37 -25
View File
@@ -1,41 +1,53 @@
{
"name": "web-app",
"name": "webapp",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"start": "ng serve --proxy-config proxy.conf.json",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
"test": "ng test",
"api": "ng-openapi-gen -c ng-openapi-gen.json"
},
"private": true,
"packageManager": "npm@11.17.0",
"packageManager": "npm@11.20.0",
"dependencies": {
"@angular/cdk": "^22.1.7",
"@angular/common": "^22.1.0",
"@angular/compiler": "^22.1.0",
"@angular/core": "^22.1.0",
"@angular/forms": "^22.1.0",
"@angular/material": "^22.1.7",
"@angular/platform-browser": "^22.1.0",
"@angular/router": "^22.1.0",
"@fontsource/rajdhani": "^5.3.0",
"@fontsource/roboto": "^5.3.0",
"@fontsource/roboto-mono": "^5.3.0",
"material-icons": "^1.13.14",
"pdfmake": "0.3.14",
"plotly.js-cartesian-dist-min": "4.1.2",
"@angular/cdk": "^22.3.0",
"@angular/common": "^22.3.0",
"@angular/compiler": "^22.3.0",
"@angular/core": "^22.3.0",
"@angular/forms": "^22.3.0",
"@angular/material": "^22.3.0",
"@angular/platform-browser": "^22.3.0",
"@angular/router": "^22.3.0",
"@fontsource/rajdhani": "5.3.0",
"@fontsource/roboto": "5.3.0",
"@ngx-formly/core": "11.2.0",
"@ngx-formly/material": "11.2.0",
"d3-drag": "3.0.0",
"d3-selection": "3.0.0",
"d3-zoom": "3.0.0",
"material-symbols": "0.48.3",
"ngx-vflow": "2.7.0",
"pdfmake": "0.3.15",
"plotly.js": "4.1.2",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"write-excel-file": "4.1.1"
},
"devDependencies": {
"@angular/build": "^22.1.8",
"@angular/cli": "^22.1.8",
"@angular/compiler-cli": "^22.1.0",
"jsdom": "^28.0.0",
"@angular/build": "^22.3.0",
"@angular/cli": "^22.3.0",
"@angular/compiler-cli": "^22.3.0",
"@playwright/test": "1.64.1",
"@types/d3-drag": "3.0.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",
"prettier": "^3.8.1",
"typescript": "~6.0.2",
"vitest": "^4.0.8"
"vitest": "^5.0.0"
}
}
+21
View File
@@ -0,0 +1,21 @@
import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: 'e2e',
timeout: 15 * 60_000,
expect: { timeout: 60_000 },
workers: 1,
reporter: 'list',
use: {
baseURL: 'http://127.0.0.1:4310',
viewport: { width: 1440, height: 1000 },
actionTimeout: 60_000,
},
webServer: {
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',
timeout: 180_000,
reuseExistingServer: false,
},
});
+1 -11
View File
@@ -1,11 +1 @@
{
"/api": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
"/imports": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
"/data": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
"/health": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
"/cacu": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
"/cama": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
"/tea": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
"/governance": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
"/reportes": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true }
}
{ "/api": { "target": "http://127.0.0.1:5711", "pathRewrite": { "^/api": "" } } }
+1
View File
@@ -0,0 +1 @@
export default { '/api': { target: process.env.API_URL, pathRewrite: { '^/api': '' } } };
-38
View File
@@ -1,38 +0,0 @@
# Modo simulado (solo nuestra copia local, rama `ulises/tea-seguimiento`)
Para ver y modificar la página de seguimiento de TEA sin la plataforma completa ni su preproceso.
Todo es **inventado**. No forma parte de la WebApp que se entrega.
| Archivo | Qué es |
|---|---|
| `datos_tea.json` | 120 niños inventados: lista, ficha y la relación con el ADOS-2 (modelo de OR de E27). Se genera; no se versiona |
| `servidor.py` | Servidor de prueba (Python, sin instalar nada) en `localhost:5051` |
| `proxy.simulado.json` | Las rutas de la API, al servidor de prueba |
| `../src/app/app.config.simulado.ts` | Igual que `app.config.ts`, pero el seguimiento de TEA lee el contrato JSON (`/tea/seguimiento`) |
## Cómo se usa
1. Generar los datos (una vez, o cuando cambie el modelo), desde `biomarcadores-tea/`:
```
python experimentos/E27_modelo_or/simulado_plataforma.py
```
2. Levantar el servidor de prueba, desde `webapp-tea/`:
```
python simulado/servidor.py
```
3. En otra terminal, la página, desde `webapp-tea/`:
```
npx ng serve --configuration simulado --port 4300
```
4. Abrir `http://localhost:4300/indicadores/tea`, entrar a **Seguimiento** y abrir un paciente.
## El panel nuevo: «Relación con el ADOS-2»
En la ficha del paciente (`tea-paciente-resumen.*`) muestra, por cada asociación clara de la cohorte (q < 0.05):
- la zona del EEG y el z del paciente, marcada si está alterada (|z| ≥ 2);
- el aspecto del ADOS-2 (reactivo o dominio);
- el OR de la cohorte con su intervalo y su q;
- la probabilidad que el modelo da a este paciente (con su edad y módulo) frente a la de un niño con z = 0;
- lo que muestra su ADOS-2.
El campo `relacion_ados2` es opcional: sin él (la plataforma real hoy), el panel no aparece.
-47
View File
@@ -1,47 +0,0 @@
{
"/api": {
"target": "http://localhost:5051",
"secure": false,
"changeOrigin": true
},
"/imports": {
"target": "http://localhost:5051",
"secure": false,
"changeOrigin": true
},
"/data": {
"target": "http://localhost:5051",
"secure": false,
"changeOrigin": true
},
"/health": {
"target": "http://localhost:5051",
"secure": false,
"changeOrigin": true
},
"/cacu": {
"target": "http://localhost:5051",
"secure": false,
"changeOrigin": true
},
"/cama": {
"target": "http://localhost:5051",
"secure": false,
"changeOrigin": true
},
"/tea": {
"target": "http://localhost:5051",
"secure": false,
"changeOrigin": true
},
"/governance": {
"target": "http://localhost:5051",
"secure": false,
"changeOrigin": true
},
"/reportes": {
"target": "http://localhost:5051",
"secure": false,
"changeOrigin": true
}
}
-110
View File
@@ -1,110 +0,0 @@
"""
servidor.py — Servidor de prueba con datos SIMULADOS para ver la página de TEA sin la plataforma completa.
Solo para nuestra copia local (rama ulises/tea-seguimiento): no forma parte de la WebApp que se entrega.
Responde lo que pide la sección de seguimiento de TEA en su contrato JSON:
- `/tea/seguimiento`: la lista, con filtros y páginas;
- `/tea/seguimiento/<id>`: la ficha, incluido el campo nuevo `relacion_ados2`.
A lo demás de `/tea/...` contesta vacío, para que la página cargue.
Los datos los escribe `biomarcadores-tea/experimentos/E27_modelo_or/simulado_plataforma.py` en `datos_tea.json`.
python simulado/servidor.py # http://localhost:5051
npx ng serve --configuration simulado --port 4300
"""
from __future__ import annotations
import json
import math
import sys
from datetime import date, timedelta
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
from urllib.parse import parse_qs, unquote, urlparse
PUERTO = 5051
DATOS = json.loads((Path(__file__).with_name("datos_tea.json")).read_text(encoding="utf-8"))
VACIO_FHIR = {"resourceType": "Bundle", "type": "searchset", "total": 0, "entry": []}
def _num(q, k):
v = q.get(k, [None])[0]
try:
return float(v) if v is not None else None
except ValueError:
return None
def lista(q: dict) -> dict:
meses = int(q.get("meses", ["12"])[0]) if q.get("meses", ["12"])[0] in ("1", "3", "6", "12") else 12
corte = q.get("corte", [date.today().isoformat()])[0]
page = max(1, int(q.get("page", ["1"])[0]))
size = min(200, max(1, int(q.get("page_size", ["25"])[0])))
filtro = q.get("alteraciones_eeg", [None])[0]
ps = DATOS["pacientes"]
if filtro in ("normal", "anormal"):
ps = [p for p in ps if p["alteraciones_eeg"] == filtro]
elif filtro == "sin_eeg_valido":
ps = [p for p in ps if p["ultimo_eeg"] is None]
if q.get("grupo_edad"):
ps = [p for p in ps if p["grupo_edad"].startswith(q["grupo_edad"][0].replace("_", "-"))]
for campo, lo, hi in (("mchat", "mchat_min", "mchat_max"), ("css_ados2", "css_min", "css_max")):
a, b = _num(q, lo), _num(q, hi)
if a is not None:
ps = [p for p in ps if p[campo] is not None and a <= p[campo] <= (b if b is not None else 99)]
if q.get("estado_caso"):
ps = [p for p in ps if p["estado_caso"] == q["estado_caso"][0]]
if q.get("alteracion"):
ps = [p for p in ps if q["alteracion"][0] in p["alteraciones"]]
total = len(ps)
por_alt = [{"codigo": t["codigo"], "etiqueta": t["etiqueta"], "n": sum(t["codigo"] in p["alteraciones"] for p in ps)}
for t in DATOS["tipos_alteracion"]]
hasta = date.fromisoformat(corte)
return {
"simulado": True, "corte": corte,
"ventana": {"meses": meses, "desde": (hasta - timedelta(days=30 * meses)).isoformat(), "hasta": corte},
"filtros": {"alteraciones_eeg": filtro},
"paginacion": {"page": page, "page_size": size, "total_items": total, "total_pages": max(1, math.ceil(total / size))},
"items": ps[(page - 1) * size: page * size],
"tipos_alteracion": DATOS["tipos_alteracion"],
"resumen_eeg": {"validadas": True, "con_eeg_valido": total,
"normales": sum(p["alteraciones_eeg"] == "normal" for p in ps),
"anormales": sum(p["alteraciones_eeg"] == "anormal" for p in ps), "sin_eeg": 0,
"por_alteracion": por_alt},
}
class Manejador(BaseHTTPRequestHandler):
def _json(self, cuerpo, codigo=200):
datos = json.dumps(cuerpo, ensure_ascii=False).encode("utf-8")
self.send_response(codigo)
self.send_header("Content-Type", "application/json; charset=utf-8")
self.send_header("Content-Length", str(len(datos)))
self.end_headers()
self.wfile.write(datos)
def do_GET(self): # noqa: N802
u = urlparse(self.path)
ruta, q = u.path.rstrip("/"), parse_qs(u.query)
if ruta == "/tea/seguimiento":
return self._json(lista(q))
if ruta.startswith("/tea/seguimiento/"):
d = DATOS["detalles"].get(unquote(ruta.rsplit("/", 1)[1]))
return self._json(d) if d else self._json({"error": "no encontrado"}, 404)
if "/fhir/" in ruta:
return self._json(VACIO_FHIR)
if ruta.endswith("/indicadores"):
return self._json([])
if ruta == "/health":
return self._json({"status": "ok", "simulado": True})
return self._json({"error": "sin datos simulados para esta ruta"}, 404)
def log_message(self, fmt, *args):
sys.stderr.write(" " + fmt % args + "\n")
if __name__ == "__main__":
print(f"Servidor simulado en http://localhost:{PUERTO} ({len(DATOS['pacientes'])} niños inventados)")
ThreadingHTTPServer(("127.0.0.1", PUERTO), Manejador).serve_forever()
+24 -28
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, neutral: #5c5f66
$_palettes: (
primary: (
0: #000000,
@@ -62,31 +58,31 @@ $_palettes: (
),
neutral: (
0: #000000,
10: #181c22,
20: #2d3037,
25: #383b42,
30: #44474d,
35: #4f5259,
40: #5b5e65,
50: #74777e,
60: #8e9198,
70: #a9abb3,
80: #c4c6ce,
90: #e0e2ea,
95: #eff0f9,
98: #f9f9ff,
99: #fdfcff,
10: #1b1c14,
20: #303128,
25: #3b3c32,
30: #46483d,
35: #525348,
40: #5e5f54,
50: #77786c,
60: #919285,
70: #acac9f,
80: #c7c7b9,
90: #e4e3d5,
95: #f2f2e3,
98: #fbfaeb,
99: #fdfdf5,
100: #ffffff,
4: #0b0e14,
6: #101419,
12: #1c2026,
17: #272a30,
22: #32353b,
24: #363940,
87: #d8dae2,
92: #e6e8f0,
94: #ecedf6,
96: #f1f3fc,
4: #0d0f07,
6: #13140c,
12: #1f2017,
17: #292b21,
22: #34362c,
24: #393a30,
87: #dbdbcd,
92: #e9e9da,
94: #efefe0,
96: #f5f4e6,
),
neutral-variant: (
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}`);
}
+21
View File
@@ -0,0 +1,21 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Injectable } from '@angular/core';
export function provideApiConfiguration(rootUrl: string) {
var config = new ApiConfiguration();
config.rootUrl = rootUrl;
return {
provide: ApiConfiguration,
useValue: config
};
}
@Injectable({
providedIn: 'root',
})
export class ApiConfiguration {
rootUrl: string = '';
}
+48
View File
@@ -0,0 +1,48 @@
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */
import { Injectable } from '@angular/core';
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
import { Observable, firstValueFrom } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { ApiConfiguration } from './api-configuration';
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>>;
@Injectable({ providedIn: 'root' })
export class Api {
constructor(
private config: ApiConfiguration,
private http: HttpClient
) {
}
private _rootUrl?: string;
get rootUrl(): string {
return this._rootUrl || this.config.rootUrl;
}
set rootUrl(rootUrl: string) {
this._rootUrl = rootUrl;
}
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> {
const resp = this.invoke$Response(fn, params, context);
return (await resp).body;
}
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>> {
const obs = fn(this.http, this.rootUrl, params, context)
.pipe(
filter(r => r instanceof HttpResponse),
map(r => r as StrictHttpResponse<R>));
return firstValueFrom(obs);
}
}
+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 { Login } from '../../models/login';
export interface AuthCookieLogin$Params {
body: Login
}
export function authCookieLogin(http: HttpClient, rootUrl: string, params: AuthCookieLogin$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
const rb = new RequestBuilder(rootUrl, authCookieLogin.PATH, 'post');
if (params) {
rb.body(params.body, 'application/x-www-form-urlencoded');
}
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<any>;
})
);
}
authCookieLogin.PATH = '/auth/login';
+29
View File
@@ -0,0 +1,29 @@
/* 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 AuthCookieLogout$Params {
}
export function authCookieLogout(http: HttpClient, rootUrl: string, params?: AuthCookieLogout$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
const rb = new RequestBuilder(rootUrl, authCookieLogout.PATH, 'post');
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<any>;
})
);
}
authCookieLogout.PATH = '/auth/logout';
+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 { AnalyzeRequest } from '../../models/analyze-request';
export interface AnalyzeEegs$Params {
body: AnalyzeRequest
}
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.body(params.body, 'application/json');
}
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;
}>;
})
);
}
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';
+30
View File
@@ -0,0 +1,30 @@
/* 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 { Study } from '../../models/study';
export interface Studies$Params {
}
export function studies(http: HttpClient, rootUrl: string, params?: Studies$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<Study>>> {
const rb = new RequestBuilder(rootUrl, studies.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<Array<Study>>;
})
);
}
studies.PATH = '/tea/eegs';
+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 { Analysis } from '../../models/analysis';
export interface Study$Params {
eeg_id: string;
}
export function study(http: HttpClient, rootUrl: string, params: Study$Params, context?: HttpContext): Observable<StrictHttpResponse<Analysis>> {
const rb = new RequestBuilder(rootUrl, study.PATH, 'get');
if (params) {
rb.path('eeg_id', params.eeg_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<Analysis>;
})
);
}
study.PATH = '/tea/eegs/{eeg_id}';
@@ -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';
@@ -0,0 +1,30 @@
/* 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 { Options } from '../../models/options';
export interface ExecutionOptions$Params {
}
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) {
}
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<Options>;
})
);
}
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';
+34
View File
@@ -0,0 +1,34 @@
/* 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 Metadata$Params {
domain: Domain;
}
export function metadata(http: HttpClient, rootUrl: string, params: Metadata$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, metadata.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
}
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<{
}>;
})
);
}
metadata.PATH = '/{domain}/fhir/metadata';
+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 { Domain } from '../../models/domain';
export interface PostBundle$Params {
domain: Domain;
sender: string;
body: {
[key: string]: any;
}
}
export function postBundle(http: HttpClient, rootUrl: string, params: PostBundle$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, postBundle.PATH, 'post');
if (params) {
rb.path('domain', params.domain, {});
rb.query('sender', params.sender, {});
rb.body(params.body, 'application/json');
}
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<{
}>;
})
);
}
postBundle.PATH = '/{domain}/fhir';
+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 ReadMeasure$Params {
domain: Domain;
id: string;
}
export function readMeasure(http: HttpClient, rootUrl: string, params: ReadMeasure$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, readMeasure.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('id', params.id, {});
}
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<{
}>;
})
);
}
readMeasure.PATH = '/{domain}/fhir/Measure/{id}';
+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 ReadPatient$Params {
domain: Domain;
id: string;
}
export function readPatient(http: HttpClient, rootUrl: string, params: ReadPatient$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, readPatient.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('id', params.id, {});
}
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<{
}>;
})
);
}
readPatient.PATH = '/{domain}/fhir/Patient/{id}';
+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 { Domain } from '../../models/domain';
export interface SearchCondition$Params {
domain: Domain;
subject?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
}
export function searchCondition(http: HttpClient, rootUrl: string, params: SearchCondition$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, searchCondition.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.query('subject', params.subject, {});
rb.query('_count', params['_count'], {});
rb.query('_offset', params['_offset'], {});
}
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<{
}>;
})
);
}
searchCondition.PATH = '/{domain}/fhir/Condition';
@@ -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 { Domain } from '../../models/domain';
export interface SearchDiagnosticReport$Params {
domain: Domain;
subject?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
}
export function searchDiagnosticReport(http: HttpClient, rootUrl: string, params: SearchDiagnosticReport$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, searchDiagnosticReport.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.query('subject', params.subject, {});
rb.query('_count', params['_count'], {});
rb.query('_offset', params['_offset'], {});
}
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<{
}>;
})
);
}
searchDiagnosticReport.PATH = '/{domain}/fhir/DiagnosticReport';
+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 { Domain } from '../../models/domain';
export interface SearchEncounter$Params {
domain: Domain;
subject?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
}
export function searchEncounter(http: HttpClient, rootUrl: string, params: SearchEncounter$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, searchEncounter.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.query('subject', params.subject, {});
rb.query('_count', params['_count'], {});
rb.query('_offset', params['_offset'], {});
}
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<{
}>;
})
);
}
searchEncounter.PATH = '/{domain}/fhir/Encounter';
@@ -0,0 +1,50 @@
/* 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 SearchMeasureReport$Params {
domain: Domain;
measure: string;
'reporting-period': string;
'as-of'?: (string | null);
'event-cutoff'?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
}
export function searchMeasureReport(http: HttpClient, rootUrl: string, params: SearchMeasureReport$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, searchMeasureReport.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.query('measure', params.measure, {});
rb.query('reporting-period', params['reporting-period'], {});
rb.query('as-of', params['as-of'], {});
rb.query('event-cutoff', params['event-cutoff'], {});
rb.query('_count', params['_count'], {});
rb.query('_offset', params['_offset'], {});
}
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<{
}>;
})
);
}
searchMeasureReport.PATH = '/{domain}/fhir/MeasureReport';
+38
View File
@@ -0,0 +1,38 @@
/* 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 SearchMeasure$Params {
domain: Domain;
'_count'?: (number | null);
'_offset'?: number;
}
export function searchMeasure(http: HttpClient, rootUrl: string, params: SearchMeasure$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, searchMeasure.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.query('_count', params['_count'], {});
rb.query('_offset', params['_offset'], {});
}
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<{
}>;
})
);
}
searchMeasure.PATH = '/{domain}/fhir/Measure';
+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 { Domain } from '../../models/domain';
export interface SearchObservation$Params {
domain: Domain;
subject?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
}
export function searchObservation(http: HttpClient, rootUrl: string, params: SearchObservation$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, searchObservation.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.query('subject', params.subject, {});
rb.query('_count', params['_count'], {});
rb.query('_offset', params['_offset'], {});
}
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<{
}>;
})
);
}
searchObservation.PATH = '/{domain}/fhir/Observation';
+69
View File
@@ -0,0 +1,69 @@
/* 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 SearchPatient$Params {
domain: Domain;
'_id'?: (string | null);
'follow-up-window'?: (number | null);
'follow-up-start'?: (string | null);
'follow-up-cutoff'?: (string | null);
'follow-up-status'?: (string | null);
name?: (string | null);
identifier?: (string | null);
'_sort'?: string;
'risk-horizon'?: (number | null);
'_revinclude'?: Array<string>;
'_include:iterate'?: Array<string>;
'_count'?: (number | null);
'_offset'?: number;
}
export function searchPatient(http: HttpClient, rootUrl: string, params: SearchPatient$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, searchPatient.PATH, 'get');
if (params) {
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('_sort', params['_sort'], {});
rb.query('risk-horizon', params['risk-horizon'], {});
rb.query('_revinclude', params['_revinclude'], {});
rb.query('_include:iterate', params['_include:iterate'], {});
rb.query('_count', params['_count'], {});
rb.query('_offset', params['_offset'], {});
}
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<{
}>;
})
);
}
searchPatient.PATH = '/{domain}/fhir/Patient';
+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 { Domain } from '../../models/domain';
export interface SearchProcedure$Params {
domain: Domain;
subject?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
}
export function searchProcedure(http: HttpClient, rootUrl: string, params: SearchProcedure$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, searchProcedure.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.query('subject', params.subject, {});
rb.query('_count', params['_count'], {});
rb.query('_offset', params['_offset'], {});
}
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<{
}>;
})
);
}
searchProcedure.PATH = '/{domain}/fhir/Procedure';
@@ -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 { Domain } from '../../models/domain';
export interface SearchRiskAssessment$Params {
domain: Domain;
subject?: (string | null);
'_count'?: (number | null);
'_offset'?: number;
}
export function searchRiskAssessment(http: HttpClient, rootUrl: string, params: SearchRiskAssessment$Params, context?: HttpContext): Observable<StrictHttpResponse<{
}>> {
const rb = new RequestBuilder(rootUrl, searchRiskAssessment.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.query('subject', params.subject, {});
rb.query('_count', params['_count'], {});
rb.query('_offset', params['_offset'], {});
}
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<{
}>;
})
);
}
searchRiskAssessment.PATH = '/{domain}/fhir/RiskAssessment';
+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 { Browsed } from '../../models/browsed';
export interface Browse$Params {
path?: (string | null);
}
export function browse(http: HttpClient, rootUrl: string, params?: Browse$Params, context?: HttpContext): Observable<StrictHttpResponse<Browsed>> {
const rb = new RequestBuilder(rootUrl, browse.PATH, 'get');
if (params) {
rb.query('path', params.path, {});
}
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<Browsed>;
})
);
}
browse.PATH = '/ingest/sources/browse';
+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 ConceptMaps$Params {
}
export function conceptMaps(http: HttpClient, rootUrl: string, params?: ConceptMaps$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
[key: string]: any;
}>>> {
const rb = new RequestBuilder(rootUrl, conceptMaps.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<Array<{
[key: string]: any;
}>>;
})
);
}
conceptMaps.PATH = '/ingest/concept-maps';
+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';
export interface GetConceptMap$Params {
map_id: string;
}
export function getConceptMap(http: HttpClient, rootUrl: string, params: GetConceptMap$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: any;
}>> {
const rb = new RequestBuilder(rootUrl, getConceptMap.PATH, 'get');
if (params) {
rb.path('map_id', params.map_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<{
[key: string]: any;
}>;
})
);
}
getConceptMap.PATH = '/ingest/concept-maps/{map_id}';
+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';
export interface NodeRows$Params {
pipeline_id: string;
node_id: string;
limit?: number;
}
export function nodeRows(http: HttpClient, rootUrl: string, params: NodeRows$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
[key: string]: any;
}>>> {
const rb = new RequestBuilder(rootUrl, nodeRows.PATH, 'get');
if (params) {
rb.path('pipeline_id', params.pipeline_id, {});
rb.path('node_id', params.node_id, {});
rb.query('limit', params.limit, {});
}
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;
}>>;
})
);
}
nodeRows.PATH = '/ingest/pipelines/{pipeline_id}/nodes/{node_id}/rows';
+34
View File
@@ -0,0 +1,34 @@
/* 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 { SignIn } from '../../models/sign-in';
export interface OauthStart$Params {
provider: string;
origin: string;
}
export function oauthStart(http: HttpClient, rootUrl: string, params: OauthStart$Params, context?: HttpContext): Observable<StrictHttpResponse<SignIn>> {
const rb = new RequestBuilder(rootUrl, oauthStart.PATH, 'get');
if (params) {
rb.path('provider', params.provider, {});
rb.query('origin', params.origin, {});
}
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<SignIn>;
})
);
}
oauthStart.PATH = '/ingest/sources/oauth/{provider}/start';
+34
View File
@@ -0,0 +1,34 @@
/* 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 { SavedPipeline } from '../../models/saved-pipeline';
export interface Pipeline$Params {
pipeline_id: string;
version?: (number | null);
}
export function pipeline(http: HttpClient, rootUrl: string, params: Pipeline$Params, context?: HttpContext): Observable<StrictHttpResponse<SavedPipeline>> {
const rb = new RequestBuilder(rootUrl, pipeline.PATH, 'get');
if (params) {
rb.path('pipeline_id', params.pipeline_id, {});
rb.query('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<SavedPipeline>;
})
);
}
pipeline.PATH = '/ingest/pipelines/{pipeline_id}';
+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 Pipelines$Params {
}
export function pipelines(http: HttpClient, rootUrl: string, params?: Pipelines$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
[key: string]: any;
}>>> {
const rb = new RequestBuilder(rootUrl, pipelines.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<Array<{
[key: string]: any;
}>>;
})
);
}
pipelines.PATH = '/ingest/pipelines';
+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';
export interface SaveConceptMap$Params {
map_id: string;
body: {
[key: string]: any;
}
}
export function saveConceptMap(http: HttpClient, rootUrl: string, params: SaveConceptMap$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: number;
}>> {
const rb = new RequestBuilder(rootUrl, saveConceptMap.PATH, 'put');
if (params) {
rb.path('map_id', params.map_id, {});
rb.body(params.body, 'application/json');
}
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;
}>;
})
);
}
saveConceptMap.PATH = '/ingest/concept-maps/{map_id}';
+38
View File
@@ -0,0 +1,38 @@
/* 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 { Pipeline } from '../../models/pipeline';
export interface SavePipeline$Params {
pipeline_id: string;
body: Pipeline
}
export function savePipeline(http: HttpClient, rootUrl: string, params: SavePipeline$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: number;
}>> {
const rb = new RequestBuilder(rootUrl, savePipeline.PATH, 'put');
if (params) {
rb.path('pipeline_id', params.pipeline_id, {});
rb.body(params.body, 'application/json');
}
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;
}>;
})
);
}
savePipeline.PATH = '/ingest/pipelines/{pipeline_id}';
+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 Schema$Params {
}
export function schema(http: HttpClient, rootUrl: string, params?: Schema$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: any;
}>> {
const rb = new RequestBuilder(rootUrl, schema.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]: any;
}>;
})
);
}
schema.PATH = '/ingest/schema';
+38
View File
@@ -0,0 +1,38 @@
/* 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 { Source } from '../../models/source';
export interface SourcePreview$Params {
limit?: number;
body: Source
}
export function sourcePreview(http: HttpClient, rootUrl: string, params: SourcePreview$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
[key: string]: any;
}>>> {
const rb = new RequestBuilder(rootUrl, sourcePreview.PATH, 'post');
if (params) {
rb.query('limit', params.limit, {});
rb.body(params.body, 'application/json');
}
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;
}>>;
})
);
}
sourcePreview.PATH = '/ingest/sources/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 { SourceRef } from '../../models/source-ref';
export interface SourceResources$Params {
body: SourceRef
}
export function sourceResources(http: HttpClient, rootUrl: string, params: SourceResources$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<string>>> {
const rb = new RequestBuilder(rootUrl, sourceResources.PATH, 'post');
if (params) {
rb.body(params.body, 'application/json');
}
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<string>>;
})
);
}
sourceResources.PATH = '/ingest/sources/resources';
+30
View File
@@ -0,0 +1,30 @@
/* 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 { Catalog } from '../../models/catalog';
export interface SourceTypes$Params {
}
export function sourceTypes(http: HttpClient, rootUrl: string, params?: SourceTypes$Params, context?: HttpContext): Observable<StrictHttpResponse<Catalog>> {
const rb = new RequestBuilder(rootUrl, sourceTypes.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<Catalog>;
})
);
}
sourceTypes.PATH = '/ingest/sources/types';
+38
View File
@@ -0,0 +1,38 @@
/* 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 { RunRequest } from '../../models/run-request';
export interface StartRun$Params {
pipeline_id: string;
body: RunRequest
}
export function startRun(http: HttpClient, rootUrl: string, params: StartRun$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, startRun.PATH, 'post');
if (params) {
rb.path('pipeline_id', params.pipeline_id, {});
rb.body(params.body, 'application/json');
}
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;
}>;
})
);
}
startRun.PATH = '/ingest/pipelines/{pipeline_id}/runs';
+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 { Answers } from '../../models/answers';
import { Tested } from '../../models/tested';
export interface TestSource$Params {
limit?: number;
body: Answers
}
export function testSource(http: HttpClient, rootUrl: string, params: TestSource$Params, context?: HttpContext): Observable<StrictHttpResponse<Tested>> {
const rb = new RequestBuilder(rootUrl, testSource.PATH, 'post');
if (params) {
rb.query('limit', params.limit, {});
rb.body(params.body, 'application/json');
}
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<Tested>;
})
);
}
testSource.PATH = '/ingest/sources/test';
+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';
import { BodyUpload } from '../../models/body-upload';
import { Uploaded } from '../../models/uploaded';
export interface Upload$Params {
body: BodyUpload
}
export function upload(http: HttpClient, rootUrl: string, params: Upload$Params, context?: HttpContext): Observable<StrictHttpResponse<Uploaded>> {
const rb = new RequestBuilder(rootUrl, upload.PATH, 'post');
if (params) {
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<Uploaded>;
})
);
}
upload.PATH = '/ingest/uploads';
@@ -0,0 +1,43 @@
/* 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 { BodyAddClinicalValidation } from '../../models/body-add-clinical-validation';
import { Domain } from '../../models/domain';
export interface AddClinicalValidation$Params {
domain: Domain;
name: string;
version: number;
body: BodyAddClinicalValidation
}
export function addClinicalValidation(http: HttpClient, rootUrl: string, params: AddClinicalValidation$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: any;
}>> {
const rb = new RequestBuilder(rootUrl, addClinicalValidation.PATH, 'post');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('version', params.version, {});
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]: any;
}>;
})
);
}
addClinicalValidation.PATH = '/models/{domain}/{name}/versions/{version}/reports/clinical_validation';
+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 { 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<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, analyze.PATH, 'post');
if (params) {
rb.path('domain', params.domain, {});
rb.body(params.body, 'application/json');
}
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;
}>;
})
);
}
analyze.PATH = '/models/{domain}/analyze';
+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';
+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';
import { Domain } from '../../models/domain';
import { Model } from '../../models/model';
export interface Models$Params {
domain: Domain;
}
export function models(http: HttpClient, rootUrl: string, params: Models$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<Model>>> {
const rb = new RequestBuilder(rootUrl, models.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
}
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<Model>>;
})
);
}
models.PATH = '/models/{domain}';
+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 Promote$Params {
domain: Domain;
name: string;
version: number;
}
export function promote(http: HttpClient, rootUrl: string, params: Promote$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: any;
}>> {
const rb = new RequestBuilder(rootUrl, promote.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]: any;
}>;
})
);
}
promote.PATH = '/models/{domain}/{name}/versions/{version}/promote';
+38
View File
@@ -0,0 +1,38 @@
/* 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 ReadReport$Any$Params {
domain: Domain;
name: string;
version: number;
report: string;
}
export function readReport$Any(http: HttpClient, rootUrl: string, params: ReadReport$Any$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
const rb = new RequestBuilder(rootUrl, readReport$Any.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('version', params.version, {});
rb.path('report', params.report, {});
}
return http.request(
rb.build({ responseType: 'blob', accept: 'application/octet-stream', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<any>;
})
);
}
readReport$Any.PATH = '/models/{domain}/{name}/versions/{version}/reports/{report}';
+38
View File
@@ -0,0 +1,38 @@
/* 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 ReadReport$Json$Params {
domain: Domain;
name: string;
version: number;
report: string;
}
export function readReport$Json(http: HttpClient, rootUrl: string, params: ReadReport$Json$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
const rb = new RequestBuilder(rootUrl, readReport$Json.PATH, 'get');
if (params) {
rb.path('domain', params.domain, {});
rb.path('name', params.name, {});
rb.path('version', params.version, {});
rb.path('report', params.report, {});
}
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<any>;
})
);
}
readReport$Json.PATH = '/models/{domain}/{name}/versions/{version}/reports/{report}';
+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';
+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 Score$Params {
domain: Domain;
}
export function score(http: HttpClient, rootUrl: string, params: Score$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, score.PATH, 'post');
if (params) {
rb.path('domain', params.domain, {});
}
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;
}>;
})
);
}
score.PATH = '/models/{domain}/score';
+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 { Training } from '../../models/training';
export interface Train$Params {
domain: Domain;
body: Training
}
export function train(http: HttpClient, rootUrl: string, params: Train$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, train.PATH, 'post');
if (params) {
rb.path('domain', params.domain, {});
rb.body(params.body, 'application/json');
}
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;
}>;
})
);
}
train.PATH = '/models/{domain}/train';
+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';
+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 { Version } from '../../models/version';
export interface Versions$Params {
domain: Domain;
name: string;
}
export function versions(http: HttpClient, rootUrl: string, params: Versions$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<Version>>> {
const rb = new RequestBuilder(rootUrl, versions.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<Array<Version>>;
})
);
}
versions.PATH = '/models/{domain}/{name}/versions';
+30
View File
@@ -0,0 +1,30 @@
/* 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 Domains$Params {
}
export function domains(http: HttpClient, rootUrl: string, params?: Domains$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<Domain>>> {
const rb = new RequestBuilder(rootUrl, domains.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<Array<Domain>>;
})
);
}
domains.PATH = '/domains';
+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 Health$Params {
}
export function health(http: HttpClient, rootUrl: string, params?: Health$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, health.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]: string;
}>;
})
);
}
health.PATH = '/health';
+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}';
+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 { BodyStartPreview } from '../../models/body-start-preview';
export interface StartPreview$Params {
body: BodyStartPreview
}
export function startPreview(http: HttpClient, rootUrl: string, params: StartPreview$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, startPreview.PATH, 'post');
if (params) {
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;
}>;
})
);
}
startPreview.PATH = '/tea/preview';
+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';
export interface Conflicts$Params {
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
}
export function conflicts(http: HttpClient, rootUrl: string, params: Conflicts$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
[key: string]: any;
}>>> {
const rb = new RequestBuilder(rootUrl, conflicts.PATH, 'get');
if (params) {
rb.query('entity', params.entity, {});
}
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;
}>>;
})
);
}
conflicts.PATH = '/review/conflicts';
+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 { Correction } from '../../models/correction';
export interface Correct$Params {
body: Correction
}
export function correct(http: HttpClient, rootUrl: string, params: Correct$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, correct.PATH, 'post');
if (params) {
rb.body(params.body, 'application/json');
}
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;
}>;
})
);
}
correct.PATH = '/review/corrections';
+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 { PersonDecision } from '../../models/person-decision';
export interface DecidePersons$Params {
body: PersonDecision
}
export function decidePersons(http: HttpClient, rootUrl: string, params: DecidePersons$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, decidePersons.PATH, 'post');
if (params) {
rb.body(params.body, 'application/json');
}
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;
}>;
})
);
}
decidePersons.PATH = '/review/persons';
+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';
export interface Held$Params {
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
}
export function held(http: HttpClient, rootUrl: string, params: Held$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
[key: string]: any;
}>>> {
const rb = new RequestBuilder(rootUrl, held.PATH, 'get');
if (params) {
rb.query('entity', params.entity, {});
}
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;
}>>;
})
);
}
held.PATH = '/review/held';
+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';
export interface Persons$Params {
pipeline: string;
node: string;
}
export function persons(http: HttpClient, rootUrl: string, params: Persons$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: Array<{
[key: string]: any;
}>;
}>> {
const rb = new RequestBuilder(rootUrl, persons.PATH, 'get');
if (params) {
rb.query('pipeline', params.pipeline, {});
rb.query('node', params.node, {});
}
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]: Array<{
[key: string]: any;
}>;
}>;
})
);
}
persons.PATH = '/review/persons';
+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 { Rejection } from '../../models/rejection';
export interface Reject$Params {
body: Rejection
}
export function reject(http: HttpClient, rootUrl: string, params: Reject$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, reject.PATH, 'post');
if (params) {
rb.body(params.body, 'application/json');
}
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;
}>;
})
);
}
reject.PATH = '/review/rejections';
+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';
export interface Unrecognised$Params {
pipeline: string;
}
export function unrecognised(http: HttpClient, rootUrl: string, params: Unrecognised$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
[key: string]: any;
}>>> {
const rb = new RequestBuilder(rootUrl, unrecognised.PATH, 'get');
if (params) {
rb.query('pipeline', params.pipeline, {});
}
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;
}>>;
})
);
}
unrecognised.PATH = '/review/unrecognised';
+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';
+34
View File
@@ -0,0 +1,34 @@
/* 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 { 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<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(
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<Run>;
})
);
}
runStatus.PATH = '/runs/{run_id}';
+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';
import { UserCreate } from '../../models/user-create';
import { UserRead } from '../../models/user-read';
export interface RegisterRegister$Params {
body: UserCreate
}
export function registerRegister(http: HttpClient, rootUrl: string, params: RegisterRegister$Params, context?: HttpContext): Observable<StrictHttpResponse<UserRead>> {
const rb = new RequestBuilder(rootUrl, registerRegister.PATH, 'post');
if (params) {
rb.body(params.body, 'application/json');
}
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<UserRead>;
})
);
}
registerRegister.PATH = '/users/register';
@@ -0,0 +1,30 @@
/* 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 { UserRead } from '../../models/user-read';
export interface UsersCurrentUser$Params {
}
export function usersCurrentUser(http: HttpClient, rootUrl: string, params?: UsersCurrentUser$Params, context?: HttpContext): Observable<StrictHttpResponse<UserRead>> {
const rb = new RequestBuilder(rootUrl, usersCurrentUser.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<UserRead>;
})
);
}
usersCurrentUser.PATH = '/users/me';
+31
View File
@@ -0,0 +1,31 @@
/* 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 UsersDeleteUser$Params {
id: string;
}
export function usersDeleteUser(http: HttpClient, rootUrl: string, params: UsersDeleteUser$Params, context?: HttpContext): Observable<StrictHttpResponse<void>> {
const rb = new RequestBuilder(rootUrl, usersDeleteUser.PATH, 'delete');
if (params) {
rb.path('id', params.id, {});
}
return http.request(
rb.build({ responseType: 'text', accept: '*/*', context })
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return (r as HttpResponse<any>).clone({ body: undefined }) as StrictHttpResponse<void>;
})
);
}
usersDeleteUser.PATH = '/users/{id}';

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