diff --git a/openapi.json b/openapi.json index 4eda5c5..eb0749a 100644 --- a/openapi.json +++ b/openapi.json @@ -14,6 +14,14 @@ ], "title": "Age Months" }, + "checks": { + "items": { + "additionalProperties": true, + "type": "object" + }, + "title": "Checks", + "type": "array" + }, "id": { "title": "Id", "type": "string" @@ -36,12 +44,12 @@ "title": "Metrics", "type": "array" }, - "relation": { - "default": [], + "regions": { "items": { - "$ref": "#/components/schemas/Relation" + "additionalProperties": true, + "type": "object" }, - "title": "Relation", + "title": "Regions", "type": "array" }, "valid": { @@ -61,11 +69,52 @@ "valid", "level", "age_months", - "metrics" + "metrics", + "checks", + "regions" ], "title": "Analysis", "type": "object" }, + "Analyze": { + "properties": { + "execution": { + "anyOf": [ + { + "$ref": "#/components/schemas/Execution" + }, + { + "type": "null" + } + ] + } + }, + "title": "Analyze", + "type": "object" + }, + "AnalyzeRequest": { + "properties": { + "execution": { + "anyOf": [ + { + "$ref": "#/components/schemas/Execution" + }, + { + "type": "null" + } + ] + }, + "scope": { + "$ref": "#/components/schemas/Scope", + "default": { + "ids": [], + "mode": "pending" + } + } + }, + "title": "AnalyzeRequest", + "type": "object" + }, "Answers": { "properties": { "answers": { @@ -121,6 +170,63 @@ "title": "Body_add_clinical_validation", "type": "object" }, + "Body_import_models": { + "properties": { + "file": { + "contentMediaType": "application/octet-stream", + "title": "File", + "type": "string" + } + }, + "required": [ + "file" + ], + "title": "Body_import_models", + "type": "object" + }, + "Body_start_preview": { + "properties": { + "ados2": { + "anyOf": [ + { + "format": "binary", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Ados2" + }, + "birth_date": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Birth Date" + }, + "edf": { + "format": "binary", + "title": "Edf", + "type": "string" + }, + "pipeline": { + "default": "tea", + "title": "Pipeline", + "type": "string" + } + }, + "required": [ + "edf" + ], + "title": "Body_start_preview", + "type": "object" + }, "Body_upload": { "properties": { "files": { @@ -149,6 +255,24 @@ "title": "Body_upload", "type": "object" }, + "Body_upload_training_inputs": { + "properties": { + "files": { + "items": { + "format": "binary", + "type": "string" + }, + "minItems": 1, + "title": "Files", + "type": "array" + } + }, + "required": [ + "files" + ], + "title": "Body_upload_training_inputs", + "type": "object" + }, "Browsed": { "properties": { "entries": { @@ -189,6 +313,37 @@ "title": "Browsed", "type": "object" }, + "Cancel": { + "properties": { + "id": { + "title": "Id", + "type": "string" + }, + "state": { + "enum": [ + "queued", + "running", + "succeeded", + "failed", + "cancelling", + "cancelled" + ], + "title": "State", + "type": "string" + }, + "status": { + "title": "Status", + "type": "string" + } + }, + "required": [ + "id", + "status", + "state" + ], + "title": "Cancel", + "type": "object" + }, "Catalog": { "additionalProperties": false, "properties": { @@ -337,6 +492,60 @@ "title": "Domain", "type": "string" }, + "Edf": { + "additionalProperties": false, + "description": "EDF files (a column of file hashes) to the facts their header holds: patient code, sex,\nbirth date, recording date, record code, duration and channel count, as `edf_*` columns.\nAn unreadable file keeps its row with `edf_error` set.\n\nUse a filesystem source (`dlt.sources.filesystem:filesystem`) with the uploads folder as\n`bucket_url`, `file_glob: \"*.edf\"`, and `then: \"persistance.readers:read_bytes\"`. Read its\n`content` column with this node. Map `edf_patient_code`, `edf_birth_date`, and `edf_sex` to\nidentity's `record_number`, `birth_date`, and `sex`, using the site's formats and ConceptMap.\n\nThe patient code must match the hospital's record number including its prefix. Feed the\nidentity map into the pipeline's link node alongside the hospital identity source. Map\n`edf_study_date` to `study_date` (format `%Y-%m-%d`), `edf_record_code` to `lab_record_id`,\nand `content` to `edf`, then feed that map and the link into a target with entity `eeg`.", + "properties": { + "column": { + "title": "Column", + "type": "string" + }, + "id": { + "maxLength": 40, + "pattern": "^[a-z][a-z0-9_]*$", + "title": "Id", + "type": "string" + }, + "inputs": { + "default": [], + "items": { + "maxLength": 40, + "pattern": "^[a-z][a-z0-9_]*$", + "type": "string" + }, + "title": "Inputs", + "type": "array" + }, + "kind": { + "const": "edf", + "default": "edf", + "title": "Kind", + "type": "string" + }, + "label": { + "default": "", + "description": "C\u00f3mo se ve en el diagrama.", + "title": "Nombre", + "type": "string" + }, + "position": { + "anyOf": [ + { + "$ref": "#/components/schemas/Position" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id", + "column" + ], + "title": "Edf", + "type": "object" + }, "Entry": { "properties": { "kind": { @@ -398,6 +607,41 @@ "title": "ErrorModel", "type": "object" }, + "Execution": { + "additionalProperties": false, + "description": "What a request or a job config carries: None means the deployment's default.", + "properties": { + "mode": { + "anyOf": [ + { + "enum": [ + "sync", + "local", + "remote" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Modo" + }, + "scheduler": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Planificador Dask" + } + }, + "title": "Ejecuci\u00f3n", + "type": "object" + }, "Extract": { "additionalProperties": false, "description": "Platform fields read from text, each kept with the text it was read from.\n\n`auto` asks the LLM when one is configured and answering, else applies `patterns`;\nwith neither, the row is held. Patterns are regexes with one group, per field (the\nLLM can propose them from sample documents); their values go through the ConceptMap\nand `formats` as in `map`.", @@ -886,6 +1130,152 @@ "title": "HTTPValidationError", "type": "object" }, + "Health": { + "properties": { + "dashboard_ok": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Dashboard Ok" + }, + "dashboard_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Dashboard Url" + }, + "error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Error" + }, + "expected_workers": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Expected Workers" + }, + "latency_ms": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Latency Ms" + }, + "mode": { + "enum": [ + "sync", + "local", + "remote" + ], + "title": "Mode", + "type": "string" + }, + "reachable": { + "title": "Reachable", + "type": "boolean" + }, + "reference": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Reference" + }, + "scheduler": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Scheduler" + }, + "threads": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Threads" + }, + "version_error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Version Error" + }, + "versions_ok": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Versions Ok" + }, + "workers": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Workers" + } + }, + "required": [ + "mode", + "scheduler", + "reachable" + ], + "title": "Health", + "type": "object" + }, "Join": { "additionalProperties": false, "description": "Two inputs side by side where their columns match.", @@ -1195,25 +1585,6 @@ "title": "Code", "type": "string" }, - "electrodes": { - "default": [], - "items": { - "$ref": "#/components/schemas/Site" - }, - "title": "Electrodes", - "type": "array" - }, - "median": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Median" - }, "model": { "anyOf": [ { @@ -1236,28 +1607,6 @@ ], "title": "Outside" }, - "p5": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "P5" - }, - "p95": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "P95" - }, "value": { "title": "Value", "type": "number" @@ -1272,14 +1621,6 @@ } ], "title": "Z" - }, - "zones": { - "default": [], - "items": { - "$ref": "#/components/schemas/Site" - }, - "title": "Zones", - "type": "array" } }, "required": [ @@ -1328,6 +1669,32 @@ "title": "Option", "type": "object" }, + "Options": { + "properties": { + "default_mode": { + "enum": [ + "sync", + "local", + "remote" + ], + "title": "Default Mode", + "type": "string" + }, + "schedulers": { + "items": { + "type": "string" + }, + "title": "Schedulers", + "type": "array" + } + }, + "required": [ + "default_mode", + "schedulers" + ], + "title": "Options", + "type": "object" + }, "PersonDecision": { "properties": { "candidate": { @@ -1357,6 +1724,7 @@ "items": { "discriminator": { "mapping": { + "edf": "#/components/schemas/Edf", "extract": "#/components/schemas/Extract", "fhir": "#/components/schemas/Fhir", "join": "#/components/schemas/Join", @@ -1385,6 +1753,9 @@ { "$ref": "#/components/schemas/Extract" }, + { + "$ref": "#/components/schemas/Edf" + }, { "$ref": "#/components/schemas/Fhir" }, @@ -1427,6 +1798,458 @@ "title": "Position", "type": "object" }, + "PreviewAdos2": { + "properties": { + "classification": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Classification" + }, + "css": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Css" + }, + "evaluation_date": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Evaluation Date" + }, + "items": { + "additionalProperties": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "title": "Items", + "type": "object" + }, + "module": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Module" + }, + "read": { + "items": { + "type": "string" + }, + "title": "Read", + "type": "array" + }, + "titles": { + "additionalProperties": { + "type": "string" + }, + "title": "Titles", + "type": "object" + } + }, + "required": [ + "module", + "evaluation_date", + "items", + "titles", + "css", + "classification", + "read" + ], + "title": "PreviewAdos2", + "type": "object" + }, + "PreviewEeg": { + "properties": { + "age_months": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Age Months" + }, + "bad_channels": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Bad Channels" + }, + "channels": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Channels" + }, + "checks": { + "items": { + "additionalProperties": true, + "type": "object" + }, + "title": "Checks", + "type": "array" + }, + "clean_fraction": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Clean Fraction" + }, + "duration_min": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Duration Min" + }, + "error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Error" + }, + "level": { + "title": "Level", + "type": "string" + }, + "line_noise_db": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Line Noise Db" + }, + "metrics": { + "items": { + "$ref": "#/components/schemas/PreviewMetric" + }, + "title": "Metrics", + "type": "array" + }, + "recorded_on": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Recorded On" + }, + "sleep": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Sleep" + }, + "valid": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Valid" + } + }, + "required": [ + "valid", + "level", + "recorded_on", + "age_months", + "clean_fraction", + "bad_channels", + "channels", + "duration_min", + "line_noise_db", + "sleep", + "checks", + "metrics", + "error" + ], + "title": "PreviewEeg", + "type": "object" + }, + "PreviewMetric": { + "properties": { + "code": { + "title": "Code", + "type": "string" + }, + "electrodes": { + "additionalProperties": { + "$ref": "#/components/schemas/Site" + }, + "title": "Electrodes", + "type": "object" + }, + "model": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Model" + }, + "score": { + "anyOf": [ + { + "$ref": "#/components/schemas/Score" + }, + { + "type": "null" + } + ] + }, + "value": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Value" + }, + "zones": { + "additionalProperties": { + "$ref": "#/components/schemas/Site" + }, + "title": "Zones", + "type": "object" + } + }, + "required": [ + "code", + "value", + "score", + "model", + "electrodes", + "zones" + ], + "title": "PreviewMetric", + "type": "object" + }, + "PreviewResult": { + "properties": { + "ados2": { + "anyOf": [ + { + "$ref": "#/components/schemas/PreviewAdos2" + }, + { + "type": "null" + } + ] + }, + "eeg": { + "$ref": "#/components/schemas/PreviewEeg" + }, + "warnings": { + "items": { + "type": "string" + }, + "title": "Warnings", + "type": "array" + } + }, + "required": [ + "eeg", + "ados2", + "warnings" + ], + "title": "PreviewResult", + "type": "object" + }, + "PreviewStatus": { + "properties": { + "result": { + "anyOf": [ + { + "$ref": "#/components/schemas/PreviewResult" + }, + { + "type": "null" + } + ] + }, + "state": { + "enum": [ + "queued", + "running", + "succeeded", + "failed", + "cancelling", + "cancelled" + ], + "title": "State", + "type": "string" + } + }, + "required": [ + "state", + "result" + ], + "title": "PreviewStatus", + "type": "object" + }, + "Progress": { + "description": "The run tag's JSON; the API returns it as it is.", + "properties": { + "done": { + "title": "Done", + "type": "integer" + }, + "elapsed_s": { + "title": "Elapsed S", + "type": "number" + }, + "eta_s": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Eta S" + }, + "mode": { + "enum": [ + "sync", + "local", + "remote" + ], + "title": "Mode", + "type": "string" + }, + "phase": { + "title": "Phase", + "type": "string" + }, + "scheduler": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Scheduler" + }, + "tasks": { + "anyOf": [ + { + "$ref": "#/components/schemas/Tasks" + }, + { + "type": "null" + } + ] + }, + "total": { + "title": "Total", + "type": "integer" + }, + "updated_at": { + "title": "Updated At", + "type": "string" + }, + "workers": { + "default": [], + "items": { + "$ref": "#/components/schemas/Worker" + }, + "title": "Workers", + "type": "array" + } + }, + "required": [ + "phase", + "done", + "total", + "elapsed_s", + "eta_s", + "mode", + "scheduler", + "updated_at" + ], + "title": "Progress", + "type": "object" + }, "Provider": { "additionalProperties": false, "description": "A sign-in button's OAuth 2.0 provider (authorization code flow).", @@ -1525,6 +2348,31 @@ "title": "Read", "type": "object" }, + "Reference": { + "additionalProperties": false, + "properties": { + "line_hz": { + "default": 50, + "enum": [ + 50, + 60 + ], + "title": "Frecuencia de la red el\u00e9ctrica (Hz)", + "type": "integer" + }, + "name": { + "description": "Carpeta dentro de TEA_REFERENCE_ROOT con los EDF y edades.csv", + "pattern": "^[A-Za-z0-9._-]{1,64}$", + "title": "Cohorte de referencia", + "type": "string" + } + }, + "required": [ + "name" + ], + "title": "Reference", + "type": "object" + }, "Rejection": { "properties": { "entity": { @@ -1562,122 +2410,6 @@ "title": "Rejection", "type": "object" }, - "Relation": { - "description": "One pair of the champion EEG\u2013ADOS-2 association, for this EEG (models.tea.association).", - "properties": { - "biomarker": { - "title": "Biomarker", - "type": "string" - }, - "ci_high": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Ci High" - }, - "ci_low": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Ci Low" - }, - "event": { - "title": "Event", - "type": "string" - }, - "kind": { - "title": "Kind", - "type": "string" - }, - "metric": { - "title": "Metric", - "type": "string" - }, - "model": { - "title": "Model", - "type": "string" - }, - "n": { - "title": "N", - "type": "number" - }, - "observed": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Observed" - }, - "odds_ratio": { - "title": "Odds Ratio", - "type": "number" - }, - "outcome_code": { - "title": "Outcome Code", - "type": "string" - }, - "probability": { - "title": "Probability", - "type": "number" - }, - "q": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Q" - }, - "reference_probability": { - "title": "Reference Probability", - "type": "number" - }, - "z": { - "title": "Z", - "type": "number" - }, - "zone": { - "title": "Zone", - "type": "string" - } - }, - "required": [ - "biomarker", - "metric", - "zone", - "outcome_code", - "kind", - "event", - "z", - "probability", - "reference_probability", - "odds_ratio", - "ci_low", - "ci_high", - "q", - "n", - "model" - ], - "title": "Relation", - "type": "object" - }, "Route": { "additionalProperties": false, "description": "Only the rows where every condition holds (e.g. reports titled \"Citolog\u00eda\"). An\n`otherwise` route takes the rows of its input that none of the other routes on that\ninput take (documents nobody recognises, for a reviewer), then its own conditions.", @@ -1741,6 +2473,137 @@ "title": "Route", "type": "object" }, + "Run": { + "properties": { + "domain": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Domain" + }, + "ended": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Ended" + }, + "error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Error" + }, + "id": { + "title": "Id", + "type": "string" + }, + "info": { + "items": { + "type": "string" + }, + "title": "Info", + "type": "array" + }, + "job": { + "title": "Job", + "type": "string" + }, + "outputs": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Outputs" + }, + "progress": { + "anyOf": [ + { + "$ref": "#/components/schemas/Progress" + }, + { + "type": "null" + } + ] + }, + "started": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Started" + }, + "state": { + "enum": [ + "queued", + "running", + "succeeded", + "failed", + "cancelling", + "cancelled" + ], + "title": "State", + "type": "string" + }, + "status": { + "title": "Status", + "type": "string" + }, + "steps": { + "items": { + "$ref": "#/components/schemas/Step" + }, + "title": "Steps", + "type": "array" + }, + "warnings": { + "items": { + "type": "string" + }, + "title": "Warnings", + "type": "array" + } + }, + "required": [ + "id", + "job", + "domain", + "status", + "state", + "started", + "ended", + "progress", + "steps", + "info", + "warnings", + "error" + ], + "title": "Run", + "type": "object" + }, "RunRequest": { "properties": { "version": { @@ -1758,6 +2621,78 @@ "title": "RunRequest", "type": "object" }, + "RunSummary": { + "properties": { + "domain": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Domain" + }, + "ended": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Ended" + }, + "id": { + "title": "Id", + "type": "string" + }, + "job": { + "title": "Job", + "type": "string" + }, + "started": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Started" + }, + "state": { + "enum": [ + "queued", + "running", + "succeeded", + "failed", + "cancelling", + "cancelled" + ], + "title": "State", + "type": "string" + }, + "status": { + "title": "Status", + "type": "string" + } + }, + "required": [ + "id", + "job", + "domain", + "status", + "state", + "started", + "ended" + ], + "title": "RunSummary", + "type": "object" + }, "SavedPipeline": { "properties": { "pipeline": { @@ -1775,6 +2710,112 @@ "title": "SavedPipeline", "type": "object" }, + "Scope": { + "additionalProperties": false, + "description": "Which EEGs an analysis takes: the pending ones, the first `n` of them, or the named\nones (re-analysis), each named by the `id` that `/tea/eegs` shows.", + "properties": { + "ids": { + "default": [], + "items": { + "type": "string" + }, + "title": "Ids", + "type": "array" + }, + "mode": { + "default": "pending", + "enum": [ + "pending", + "first_n", + "ids" + ], + "title": "Mode", + "type": "string" + }, + "n": { + "anyOf": [ + { + "minimum": 1.0, + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "N" + } + }, + "title": "Scope", + "type": "object" + }, + "Score": { + "properties": { + "median": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Median" + }, + "outside": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Outside" + }, + "p5": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "P5" + }, + "p95": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "P95" + }, + "z": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Z" + } + }, + "required": [ + "z", + "outside", + "p5", + "median", + "p95" + ], + "title": "Score", + "type": "object" + }, "SignIn": { "properties": { "state": { @@ -1795,15 +2836,17 @@ }, "Site": { "properties": { - "site": { - "title": "Site", - "type": "string" + "score": { + "anyOf": [ + { + "$ref": "#/components/schemas/Score" + }, + { + "type": "null" + } + ] }, "value": { - "title": "Value", - "type": "number" - }, - "z": { "anyOf": [ { "type": "number" @@ -1812,13 +2855,12 @@ "type": "null" } ], - "title": "Z" + "title": "Value" } }, "required": [ - "site", "value", - "z" + "score" ], "title": "Site", "type": "object" @@ -2045,6 +3087,48 @@ "title": "SourceType", "type": "object" }, + "Step": { + "properties": { + "ended": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Ended" + }, + "key": { + "title": "Key", + "type": "string" + }, + "started": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Started" + }, + "status": { + "title": "Status", + "type": "string" + } + }, + "required": [ + "key", + "status", + "started", + "ended" + ], + "title": "Step", + "type": "object" + }, "Study": { "properties": { "analysed": { @@ -2234,6 +3318,37 @@ "title": "Target", "type": "object" }, + "Tasks": { + "properties": { + "erred": { + "default": 0, + "title": "Erred", + "type": "integer" + }, + "memory": { + "default": 0, + "title": "Memory", + "type": "integer" + }, + "processing": { + "default": 0, + "title": "Processing", + "type": "integer" + }, + "queued": { + "default": 0, + "title": "Queued", + "type": "integer" + }, + "waiting": { + "default": 0, + "title": "Waiting", + "type": "integer" + } + }, + "title": "Tasks", + "type": "object" + }, "Tested": { "properties": { "detail": { @@ -2292,7 +3407,18 @@ "type": "null" } ], - "title": "As Of" + "description": "Fecha de corte de los datos (por omisi\u00f3n, hoy)", + "title": "Datos hasta" + }, + "execution": { + "anyOf": [ + { + "$ref": "#/components/schemas/Execution" + }, + { + "type": "null" + } + ] }, "models": { "default": [], @@ -2301,11 +3427,51 @@ }, "title": "Models", "type": "array" + }, + "reference": { + "anyOf": [ + { + "$ref": "#/components/schemas/Reference" + }, + { + "type": "null" + } + ] } }, "title": "Training", "type": "object" }, + "TrainingConfig": { + "properties": { + "defaults": { + "additionalProperties": true, + "title": "Defaults", + "type": "object" + }, + "domain": { + "title": "Domain", + "type": "string" + }, + "json_schema": { + "additionalProperties": true, + "title": "Json Schema", + "type": "object" + }, + "name": { + "title": "Name", + "type": "string" + } + }, + "required": [ + "domain", + "name", + "json_schema", + "defaults" + ], + "title": "TrainingConfig", + "type": "object" + }, "Uploaded": { "properties": { "bucket_url": { @@ -2604,6 +3770,15 @@ "title": "Reports", "type": "array" }, + "status": { + "enum": [ + "champion", + "retired", + "candidate" + ], + "title": "Status", + "type": "string" + }, "version": { "title": "Version", "type": "integer" @@ -2615,11 +3790,57 @@ "aliases", "metrics", "params", - "reports" + "reports", + "status" ], "title": "Version", "type": "object" }, + "Worker": { + "properties": { + "cpu_pct": { + "title": "Cpu Pct", + "type": "number" + }, + "executing": { + "title": "Executing", + "type": "integer" + }, + "memory_bytes": { + "title": "Memory Bytes", + "type": "integer" + }, + "memory_limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Memory Limit" + }, + "name": { + "title": "Name", + "type": "string" + }, + "threads": { + "title": "Threads", + "type": "integer" + } + }, + "required": [ + "name", + "cpu_pct", + "memory_bytes", + "memory_limit", + "executing", + "threads" + ], + "title": "Worker", + "type": "object" + }, "login": { "properties": { "client_id": { @@ -2812,6 +4033,113 @@ "summary": "Domains" } }, + "/execution/health": { + "get": { + "operationId": "execution_health", + "parameters": [ + { + "in": "query", + "name": "mode", + "required": false, + "schema": { + "anyOf": [ + { + "enum": [ + "sync", + "local", + "remote" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Mode" + } + }, + { + "in": "query", + "name": "scheduler", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Scheduler" + } + }, + { + "in": "query", + "name": "reference", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Reference" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Health" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Execution Health", + "tags": [ + "execution" + ] + } + }, + "/execution/options": { + "get": { + "operationId": "execution_options", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Options" + } + } + }, + "description": "Successful Response" + } + }, + "summary": "Execution Options", + "tags": [ + "execution" + ] + } + }, "/health": { "get": { "operationId": "health", @@ -3598,7 +4926,6 @@ }, "/models/{domain}": { "get": { - "description": "The domain's registered models, with their names on screen.", "operationId": "models", "parameters": [ { @@ -3656,6 +4983,16 @@ } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Analyze", + "default": {} + } + } + } + }, "responses": { "200": { "content": { @@ -3688,6 +5025,142 @@ ] } }, + "/models/{domain}/export": { + "get": { + "operationId": "export_models", + "parameters": [ + { + "in": "path", + "name": "domain", + "required": true, + "schema": { + "$ref": "#/components/schemas/Domain" + } + }, + { + "in": "query", + "name": "names", + "required": false, + "schema": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Names" + } + }, + { + "in": "query", + "name": "versions", + "required": false, + "schema": { + "default": "champion", + "enum": [ + "champion", + "latest", + "all" + ], + "title": "Versions", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/zip": {} + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Export Models", + "tags": [ + "models" + ] + } + }, + "/models/{domain}/import": { + "post": { + "operationId": "import_models", + "parameters": [ + { + "in": "path", + "name": "domain", + "required": true, + "schema": { + "$ref": "#/components/schemas/Domain" + } + }, + { + "in": "query", + "name": "sha256", + "required": true, + "schema": { + "pattern": "^[0-9a-fA-F]{64}$", + "title": "Sha256", + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/Body_import_models" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": { + "type": "string" + }, + "title": "Response Import Models", + "type": "object" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Import Models", + "tags": [ + "models" + ] + } + }, "/models/{domain}/score": { "post": { "description": "Starts a risk batch from each model's champion; follow it at /runs.", @@ -3790,6 +5263,179 @@ ] } }, + "/models/{domain}/{name}/inputs": { + "get": { + "operationId": "training_inputs", + "parameters": [ + { + "in": "path", + "name": "domain", + "required": true, + "schema": { + "$ref": "#/components/schemas/Domain" + } + }, + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "title": "Name", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": true, + "title": "Response Training Inputs", + "type": "object" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Training Inputs", + "tags": [ + "models" + ] + } + }, + "/models/{domain}/{name}/inputs/{set}/files": { + "post": { + "operationId": "upload_training_inputs", + "parameters": [ + { + "in": "path", + "name": "domain", + "required": true, + "schema": { + "$ref": "#/components/schemas/Domain" + } + }, + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "title": "Name", + "type": "string" + } + }, + { + "in": "path", + "name": "set", + "required": true, + "schema": { + "title": "Set", + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/Body_upload_training_inputs" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": true, + "title": "Response Upload Training Inputs", + "type": "object" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Upload Training Inputs", + "tags": [ + "models" + ] + } + }, + "/models/{domain}/{name}/training-config": { + "get": { + "operationId": "training_config", + "parameters": [ + { + "in": "path", + "name": "domain", + "required": true, + "schema": { + "$ref": "#/components/schemas/Domain" + } + }, + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "title": "Name", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TrainingConfig" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Training Config", + "tags": [ + "models" + ] + } + }, "/models/{domain}/{name}/versions": { "get": { "operationId": "versions", @@ -3844,6 +5490,202 @@ ] } }, + "/models/{domain}/{name}/versions/{version}/checks": { + "get": { + "operationId": "version_checks", + "parameters": [ + { + "in": "path", + "name": "domain", + "required": true, + "schema": { + "$ref": "#/components/schemas/Domain" + } + }, + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "title": "Name", + "type": "string" + } + }, + { + "in": "path", + "name": "version", + "required": true, + "schema": { + "title": "Version", + "type": "integer" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": true, + "title": "Response Version Checks", + "type": "object" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Version Checks", + "tags": [ + "models" + ] + } + }, + "/models/{domain}/{name}/versions/{version}/curve": { + "get": { + "operationId": "curve", + "parameters": [ + { + "in": "path", + "name": "domain", + "required": true, + "schema": { + "$ref": "#/components/schemas/Domain" + } + }, + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "title": "Name", + "type": "string" + } + }, + { + "in": "path", + "name": "version", + "required": true, + "schema": { + "title": "Version", + "type": "integer" + } + }, + { + "in": "query", + "name": "feature", + "required": false, + "schema": { + "default": "value", + "title": "Feature", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "items": { + "additionalProperties": true, + "type": "object" + }, + "title": "Response Curve", + "type": "array" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Curve", + "tags": [ + "models" + ] + } + }, + "/models/{domain}/{name}/versions/{version}/lineage": { + "get": { + "operationId": "lineage", + "parameters": [ + { + "in": "path", + "name": "domain", + "required": true, + "schema": { + "$ref": "#/components/schemas/Domain" + } + }, + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "title": "Name", + "type": "string" + } + }, + { + "in": "path", + "name": "version", + "required": true, + "schema": { + "title": "Version", + "type": "integer" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": true, + "title": "Response Lineage", + "type": "object" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Lineage", + "tags": [ + "models" + ] + } + }, "/models/{domain}/{name}/versions/{version}/promote": { "post": { "description": "The version risk batches come from from now on; refused (409) without the reports\nthe site requires (PROMOTION_REPORTS; default: technical validation, interpretability\nand clinical validation).", @@ -4044,6 +5886,69 @@ ] } }, + "/models/{domain}/{name}/versions/{version}/retire": { + "post": { + "operationId": "retire", + "parameters": [ + { + "in": "path", + "name": "domain", + "required": true, + "schema": { + "$ref": "#/components/schemas/Domain" + } + }, + { + "in": "path", + "name": "name", + "required": true, + "schema": { + "title": "Name", + "type": "string" + } + }, + { + "in": "path", + "name": "version", + "required": true, + "schema": { + "title": "Version", + "type": "integer" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": { + "type": "string" + }, + "title": "Response Retire", + "type": "object" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Retire", + "tags": [ + "models" + ] + } + }, "/review/conflicts": { "get": { "description": "Rows of one person and date that disagree; reject the wrong ones.", @@ -4418,6 +6323,103 @@ ] } }, + "/runs": { + "get": { + "operationId": "run_history", + "parameters": [ + { + "in": "query", + "name": "job", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Job" + } + }, + { + "in": "query", + "name": "domain", + "required": false, + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/Domain" + }, + { + "type": "null" + } + ], + "title": "Domain" + } + }, + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "default": 50, + "maximum": 200, + "minimum": 1, + "title": "Limit", + "type": "integer" + } + }, + { + "in": "query", + "name": "before", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Before" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/RunSummary" + }, + "title": "Response Run History", + "type": "array" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Run History", + "tags": [ + "runs" + ] + } + }, "/runs/{run_id}": { "get": { "operationId": "run_status", @@ -4430,6 +6432,16 @@ "title": "Run Id", "type": "string" } + }, + { + "in": "query", + "name": "outputs", + "required": false, + "schema": { + "default": false, + "title": "Outputs", + "type": "boolean" + } } ], "responses": { @@ -4437,11 +6449,7 @@ "content": { "application/json": { "schema": { - "additionalProperties": { - "type": "string" - }, - "title": "Response Run Status", - "type": "object" + "$ref": "#/components/schemas/Run" } } }, @@ -4464,10 +6472,9 @@ ] } }, - "/runs/{run_id}/terminate": { + "/runs/{run_id}/cancel": { "post": { - "description": "Stop a run (one started by mistake): Dagster cancels it.", - "operationId": "terminate_run", + "operationId": "cancel_run", "parameters": [ { "in": "path", @@ -4484,11 +6491,7 @@ "content": { "application/json": { "schema": { - "additionalProperties": { - "type": "string" - }, - "title": "Response Terminate Run", - "type": "object" + "$ref": "#/components/schemas/Cancel" } } }, @@ -4505,7 +6508,7 @@ "description": "Validation Error" } }, - "summary": "Terminate Run", + "summary": "Cancel Run", "tags": [ "runs" ] @@ -4536,6 +6539,77 @@ ] } }, + "/tea/eegs/analyze": { + "post": { + "description": "Starts `tea_eeg`: analyse the EEGs in scope, score the curves, rebuild gold.", + "operationId": "analyze_eegs", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyzeRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": { + "type": "string" + }, + "title": "Response Analyze Eegs", + "type": "object" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Analyze Eegs", + "tags": [ + "eeg" + ] + } + }, + "/tea/eegs/summary": { + "get": { + "operationId": "eeg_studies_summary", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": { + "type": "integer" + }, + "title": "Response Eeg Studies Summary", + "type": "object" + } + } + }, + "description": "Successful Response" + } + }, + "summary": "Eeg Studies Summary", + "tags": [ + "eeg" + ] + } + }, "/tea/eegs/{eeg_id}": { "get": { "operationId": "study", @@ -4578,6 +6652,93 @@ ] } }, + "/tea/preview": { + "post": { + "operationId": "start_preview", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/Body_start_preview" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": { + "type": "string" + }, + "title": "Response Start Preview", + "type": "object" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Start Preview", + "tags": [ + "preview" + ] + } + }, + "/tea/preview/{run_id}": { + "get": { + "operationId": "preview_status", + "parameters": [ + { + "in": "path", + "name": "run_id", + "required": true, + "schema": { + "title": "Run Id", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PreviewStatus" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Preview Status", + "tags": [ + "preview" + ] + } + }, "/users/me": { "get": { "operationId": "users:current_user", @@ -5611,7 +7772,7 @@ }, "/{domain}/fhir/Patient": { "get": { - "description": "Patients; with `follow-up-window`, the domain's follow-up list at the cut-off,\nfiltered by status and in reading order, with what the list shows of each patient\nincluded.", + "description": "Patients, or the domain's follow-up list selected by window or start.\n\nFor TEA, a cutoff or a TEA filter also selects the follow-up list. Patients without\nfollow-up episodes appear only in the plain search.", "operationId": "search_patient", "parameters": [ { @@ -5656,6 +7817,25 @@ "title": "Follow-Up-Window" } }, + { + "description": "explicit window start that overrides follow-up-window", + "in": "query", + "name": "follow-up-start", + "required": false, + "schema": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "type": "null" + } + ], + "description": "explicit window start that overrides follow-up-window", + "title": "Follow-Up-Start" + } + }, { "description": "default: the last day with data", "in": "query", @@ -5842,6 +8022,120 @@ ] } }, + "/{domain}/fhir/Patient/$eeg-summary": { + "get": { + "description": "EEG counts for the follow-up list. Without a window or start, use the whole history.", + "operationId": "eeg_summary", + "parameters": [ + { + "in": "path", + "name": "domain", + "required": true, + "schema": { + "$ref": "#/components/schemas/Domain" + } + }, + { + "description": "months: the domain's follow-up list over that window up to the cut-off", + "in": "query", + "name": "follow-up-window", + "required": false, + "schema": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "months: the domain's follow-up list over that window up to the cut-off", + "title": "Follow-Up-Window" + } + }, + { + "description": "explicit window start that overrides follow-up-window", + "in": "query", + "name": "follow-up-start", + "required": false, + "schema": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "type": "null" + } + ], + "description": "explicit window start that overrides follow-up-window", + "title": "Follow-Up-Start" + } + }, + { + "description": "default: the last day with data", + "in": "query", + "name": "follow-up-cutoff", + "required": false, + "schema": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "type": "null" + } + ], + "description": "default: the last day with data", + "title": "Follow-Up-Cutoff" + } + }, + { + "in": "query", + "name": "follow-up-status", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Follow-Up-Status" + } + } + ], + "responses": { + "200": { + "content": { + "application/fhir+json": { + "schema": { + "type": "object" + } + } + }, + "description": "FHIR" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Eeg Summary", + "tags": [ + "fhir" + ] + } + }, "/{domain}/fhir/Patient/{id}": { "get": { "operationId": "read_patient", diff --git a/src/app/api/fn/runs/terminate-run.ts b/src/app/api/fn/runs/terminate-run.ts deleted file mode 100644 index c4c97b1..0000000 --- a/src/app/api/fn/runs/terminate-run.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* 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 TerminateRun$Params { - run_id: string; -} - -export function terminateRun(http: HttpClient, rootUrl: string, params: TerminateRun$Params, context?: HttpContext): Observable> { - const rb = new RequestBuilder(rootUrl, terminateRun.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 => r instanceof HttpResponse), - map((r: HttpResponse) => { - return r as StrictHttpResponse<{ - [key: string]: string; - }>; - }) - ); -} - -terminateRun.PATH = '/runs/{run_id}/terminate'; diff --git a/src/app/api/functions.ts b/src/app/api/functions.ts index 422bdb6..4d0ee3f 100644 --- a/src/app/api/functions.ts +++ b/src/app/api/functions.ts @@ -9,6 +9,10 @@ export type { Domains$Params as Domains$Params } from './fn/operations/domains'; export { domains as domains } from './fn/operations/domains'; export type { Health$Params as Health$Params } from './fn/operations/health'; export { health as health } from './fn/operations/health'; +export type { ExecutionHealth$Params as ExecutionHealth$Params } from './fn/execution/execution-health'; +export { executionHealth as executionHealth } from './fn/execution/execution-health'; +export type { ExecutionOptions$Params as ExecutionOptions$Params } from './fn/execution/execution-options'; +export { executionOptions as executionOptions } from './fn/execution/execution-options'; export type { ConceptMaps$Params as ConceptMaps$Params } from './fn/ingest/concept-maps'; export { conceptMaps as conceptMaps } from './fn/ingest/concept-maps'; export type { GetConceptMap$Params as GetConceptMap$Params } from './fn/ingest/get-concept-map'; @@ -45,12 +49,28 @@ export type { Models$Params as Models$Params } from './fn/models/models'; export { models as models } from './fn/models/models'; export type { Analyze$Params as Analyze$Params } from './fn/models/analyze'; export { analyze as analyze } from './fn/models/analyze'; +export type { ExportModels$Params as ExportModels$Params } from './fn/models/export-models'; +export { exportModels as exportModels } from './fn/models/export-models'; +export type { ImportModels$Params as ImportModels$Params } from './fn/models/import-models'; +export { importModels as importModels } from './fn/models/import-models'; export type { Score$Params as Score$Params } from './fn/models/score'; export { score as score } from './fn/models/score'; export type { Train$Params as Train$Params } from './fn/models/train'; export { train as train } from './fn/models/train'; +export type { TrainingInputs$Params as TrainingInputs$Params } from './fn/models/training-inputs'; +export { trainingInputs as trainingInputs } from './fn/models/training-inputs'; +export type { UploadTrainingInputs$Params as UploadTrainingInputs$Params } from './fn/models/upload-training-inputs'; +export { uploadTrainingInputs as uploadTrainingInputs } from './fn/models/upload-training-inputs'; +export type { TrainingConfig$Params as TrainingConfig$Params } from './fn/models/training-config'; +export { trainingConfig as trainingConfig } from './fn/models/training-config'; export type { Versions$Params as Versions$Params } from './fn/models/versions'; export { versions as versions } from './fn/models/versions'; +export type { VersionChecks$Params as VersionChecks$Params } from './fn/models/version-checks'; +export { versionChecks as versionChecks } from './fn/models/version-checks'; +export type { Curve$Params as Curve$Params } from './fn/models/curve'; +export { curve as curve } from './fn/models/curve'; +export type { Lineage$Params as Lineage$Params } from './fn/models/lineage'; +export { lineage as lineage } from './fn/models/lineage'; export type { Promote$Params as Promote$Params } from './fn/models/promote'; export { promote as promote } from './fn/models/promote'; export type { AddClinicalValidation$Params as AddClinicalValidation$Params } from './fn/models/add-clinical-validation'; @@ -59,6 +79,8 @@ export type { ReadReport$Json$Params as ReadReport$Json$Params } from './fn/mode export { readReport$Json as readReport$Json } from './fn/models/read-report-json'; export type { ReadReport$Any$Params as ReadReport$Any$Params } from './fn/models/read-report-any'; export { readReport$Any as readReport$Any } from './fn/models/read-report-any'; +export type { Retire$Params as Retire$Params } from './fn/models/retire'; +export { retire as retire } from './fn/models/retire'; export type { Conflicts$Params as Conflicts$Params } from './fn/review/conflicts'; export { conflicts as conflicts } from './fn/review/conflicts'; export type { Correct$Params as Correct$Params } from './fn/review/correct'; @@ -73,14 +95,24 @@ export type { Reject$Params as Reject$Params } from './fn/review/reject'; export { reject as reject } from './fn/review/reject'; export type { Unrecognised$Params as Unrecognised$Params } from './fn/review/unrecognised'; export { unrecognised as unrecognised } from './fn/review/unrecognised'; +export type { RunHistory$Params as RunHistory$Params } from './fn/runs/run-history'; +export { runHistory as runHistory } from './fn/runs/run-history'; export type { RunStatus$Params as RunStatus$Params } from './fn/runs/run-status'; export { runStatus as runStatus } from './fn/runs/run-status'; -export type { TerminateRun$Params as TerminateRun$Params } from './fn/runs/terminate-run'; -export { terminateRun as terminateRun } from './fn/runs/terminate-run'; +export type { CancelRun$Params as CancelRun$Params } from './fn/runs/cancel-run'; +export { cancelRun as cancelRun } from './fn/runs/cancel-run'; export type { Studies$Params as Studies$Params } from './fn/eeg/studies'; export { studies as studies } from './fn/eeg/studies'; +export type { AnalyzeEegs$Params as AnalyzeEegs$Params } from './fn/eeg/analyze-eegs'; +export { analyzeEegs as analyzeEegs } from './fn/eeg/analyze-eegs'; +export type { EegStudiesSummary$Params as EegStudiesSummary$Params } from './fn/eeg/eeg-studies-summary'; +export { eegStudiesSummary as eegStudiesSummary } from './fn/eeg/eeg-studies-summary'; export type { Study$Params as Study$Params } from './fn/eeg/study'; export { study as study } from './fn/eeg/study'; +export type { StartPreview$Params as StartPreview$Params } from './fn/preview/start-preview'; +export { startPreview as startPreview } from './fn/preview/start-preview'; +export type { PreviewStatus$Params as PreviewStatus$Params } from './fn/preview/preview-status'; +export { previewStatus as previewStatus } from './fn/preview/preview-status'; export type { UsersCurrentUser$Params as UsersCurrentUser$Params } from './fn/users/users-current-user'; export { usersCurrentUser as usersCurrentUser } from './fn/users/users-current-user'; export type { UsersPatchCurrentUser$Params as UsersPatchCurrentUser$Params } from './fn/users/users-patch-current-user'; @@ -111,6 +143,8 @@ export type { SearchObservation$Params as SearchObservation$Params } from './fn/ export { searchObservation as searchObservation } from './fn/fhir/search-observation'; export type { SearchPatient$Params as SearchPatient$Params } from './fn/fhir/search-patient'; export { searchPatient as searchPatient } from './fn/fhir/search-patient'; +export type { EegSummary$Params as EegSummary$Params } from './fn/fhir/eeg-summary'; +export { eegSummary as eegSummary } from './fn/fhir/eeg-summary'; export type { ReadPatient$Params as ReadPatient$Params } from './fn/fhir/read-patient'; export { readPatient as readPatient } from './fn/fhir/read-patient'; export type { SearchProcedure$Params as SearchProcedure$Params } from './fn/fhir/search-procedure'; diff --git a/src/app/api/models.ts b/src/app/api/models.ts index c0d0dac..e826919 100644 --- a/src/app/api/models.ts +++ b/src/app/api/models.ts @@ -2,21 +2,30 @@ /* Code generated by ng-openapi-gen DO NOT EDIT. */ export type { Analysis } from './models/analysis'; +export type { Analyze } from './models/analyze'; +export type { AnalyzeRequest } from './models/analyze-request'; export type { Answers } from './models/answers'; export type { BodyAddClinicalValidation } from './models/body-add-clinical-validation'; +export type { BodyImportModels } from './models/body-import-models'; +export type { BodyStartPreview } from './models/body-start-preview'; export type { BodyUpload } from './models/body-upload'; +export type { BodyUploadTrainingInputs } from './models/body-upload-training-inputs'; export type { Browsed } from './models/browsed'; +export type { Cancel } from './models/cancel'; export type { Catalog } from './models/catalog'; export type { Condition } from './models/condition'; export type { Correction } from './models/correction'; export type { Domain } from './models/domain'; +export type { Edf } from './models/edf'; export type { Entry } from './models/entry'; export type { ErrorModel } from './models/error-model'; +export type { Execution } from './models/execution'; export type { Extract } from './models/extract'; export type { Fhir } from './models/fhir'; export type { FieldSpec } from './models/field-spec'; export type { Group } from './models/group'; export type { Guided } from './models/guided'; +export type { Health } from './models/health'; export type { HttpValidationError } from './models/http-validation-error'; export type { Join } from './models/join'; export type { Link } from './models/link'; @@ -26,28 +35,43 @@ export type { Map } from './models/map'; export type { Metric } from './models/metric'; export type { Model } from './models/model'; export type { Option } from './models/option'; +export type { Options } from './models/options'; export type { PersonDecision } from './models/person-decision'; export type { Pipeline } from './models/pipeline'; export type { Position } from './models/position'; +export type { PreviewAdos2 } from './models/preview-ados-2'; +export type { PreviewEeg } from './models/preview-eeg'; +export type { PreviewMetric } from './models/preview-metric'; +export type { PreviewResult } from './models/preview-result'; +export type { PreviewStatus } from './models/preview-status'; +export type { Progress } from './models/progress'; export type { Provider } from './models/provider'; export type { Read } from './models/read'; +export type { Reference } from './models/reference'; export type { Rejection } from './models/rejection'; -export type { Relation } from './models/relation'; export type { Route } from './models/route'; +export type { Run } from './models/run'; export type { RunRequest } from './models/run-request'; +export type { RunSummary } from './models/run-summary'; export type { SavedPipeline } from './models/saved-pipeline'; +export type { Scope } from './models/scope'; +export type { Score } from './models/score'; export type { SignIn } from './models/sign-in'; export type { Site } from './models/site'; export type { Source } from './models/source'; export type { SourceRef } from './models/source-ref'; export type { SourceType } from './models/source-type'; +export type { Step } from './models/step'; export type { Study } from './models/study'; export type { Target } from './models/target'; +export type { Tasks } from './models/tasks'; export type { Tested } from './models/tested'; export type { Training } from './models/training'; +export type { TrainingConfig } from './models/training-config'; export type { Uploaded } from './models/uploaded'; export type { UserCreate } from './models/user-create'; export type { UserRead } from './models/user-read'; export type { UserUpdate } from './models/user-update'; export type { ValidationError } from './models/validation-error'; export type { Version } from './models/version'; +export type { Worker } from './models/worker'; diff --git a/src/app/api/models/analysis.ts b/src/app/api/models/analysis.ts index 4ae857d..eee29c9 100644 --- a/src/app/api/models/analysis.ts +++ b/src/app/api/models/analysis.ts @@ -2,12 +2,16 @@ /* Code generated by ng-openapi-gen DO NOT EDIT. */ import { Metric } from '../models/metric'; -import { Relation } from '../models/relation'; export interface Analysis { age_months: (number | null); + checks: Array<{ +[key: string]: any; +}>; id: string; level: (string | null); metrics: Array; - relation?: Array; + regions: Array<{ +[key: string]: any; +}>; valid: (boolean | null); } diff --git a/src/app/api/models/edf.ts b/src/app/api/models/edf.ts index ea3ec5a..e935a12 100644 --- a/src/app/api/models/edf.ts +++ b/src/app/api/models/edf.ts @@ -23,6 +23,10 @@ export interface Edf { id: string; inputs?: Array; kind?: 'edf'; + + /** + * Cómo se ve en el diagrama. + */ label?: string; position?: (Position | null); } diff --git a/src/app/api/models/metric.ts b/src/app/api/models/metric.ts index d210c52..476a4bc 100644 --- a/src/app/api/models/metric.ts +++ b/src/app/api/models/metric.ts @@ -1,16 +1,10 @@ /* eslint-disable */ /* Code generated by ng-openapi-gen DO NOT EDIT. */ -import { Site } from '../models/site'; export interface Metric { code: string; - electrodes?: Array; - median?: (number | null); model: (string | null); outside: (number | null); - p5?: (number | null); - p95?: (number | null); value: number; z: (number | null); - zones?: Array; } diff --git a/src/app/api/models/relation.ts b/src/app/api/models/relation.ts deleted file mode 100644 index a1b7505..0000000 --- a/src/app/api/models/relation.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* eslint-disable */ -/* Code generated by ng-openapi-gen DO NOT EDIT. */ - - -/** - * One pair of the champion EEG–ADOS-2 association, for this EEG (models.tea.association). - */ -export interface Relation { - biomarker: string; - ci_high: (number | null); - ci_low: (number | null); - event: string; - kind: string; - metric: string; - model: string; - n: number; - observed?: (number | null); - odds_ratio: number; - outcome_code: string; - probability: number; - q: (number | null); - reference_probability: number; - z: number; - zone: string; -} diff --git a/src/app/api/models/site.ts b/src/app/api/models/site.ts index 2cfc960..229df97 100644 --- a/src/app/api/models/site.ts +++ b/src/app/api/models/site.ts @@ -1,8 +1,8 @@ /* eslint-disable */ /* Code generated by ng-openapi-gen DO NOT EDIT. */ +import { Score } from '../models/score'; export interface Site { - site: string; - value: number; - z: (number | null); + score: (Score | null); + value: (number | null); }