Compare commits
300 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bfcba8ad1f | |||
| f04c40b1e1 | |||
| bd3f63b20a | |||
| 860c66ba5c | |||
| 5c8e2866ef | |||
| 29d021b347 | |||
| 98e9b60e83 | |||
| 5061350dd8 | |||
| eb887be447 | |||
| 0b22b3c309 | |||
| 6ade415f63 | |||
| 5791928976 | |||
| f4d1829cd3 | |||
| 069cc459a4 | |||
| 881c613744 | |||
| be46429627 | |||
| 25f584c864 | |||
| 561a5dde36 | |||
| bf89099ce8 | |||
| ff1f6758ba | |||
| f38a2c6bb4 | |||
| 40c19a6a1f | |||
| 329c0891ae | |||
| 34c6f2af3a | |||
| 7ab2567dc9 | |||
| 14d6875d9b | |||
| f82ce8cc38 | |||
| 61867ff973 | |||
| 8bca0fbcdf | |||
| ec8542de9f | |||
| 29c9e6853b | |||
| b1ff6cadb2 | |||
| 26285a87fa | |||
| f058f1f476 | |||
| 7f1e43bdc5 | |||
| 5bf6af8ecf | |||
| 253290ed6a | |||
| ec5b8fde6b | |||
| 2a36397fac | |||
| eada50d2ff | |||
| 396902541d | |||
| 68b5e927e7 | |||
| 990cab0e37 | |||
| 39e1e3e094 | |||
| 4e08bb8c4b | |||
| 686580af81 | |||
| 60c71bfc3d | |||
| ad4edbe2a1 | |||
| 1af0c21291 | |||
| dd356efb6b | |||
| 01271621b7 | |||
| 4c181af291 | |||
| b8bf57e235 | |||
| 17cef51d90 | |||
| 7692952ec9 | |||
| feaed5ff0e | |||
| 999bc4ecf5 | |||
| 6ed87ff3d8 | |||
| ff4ad2c964 | |||
| b5f8e5bfc2 | |||
| f04478e600 | |||
| 6a0c3c9e92 | |||
| e3c9849e29 | |||
| 10773edcc1 | |||
| 8b80e1d26c | |||
| 2a48c28245 | |||
| e1a8127c22 | |||
| 6de193f44e | |||
| 0059427179 | |||
| 8192f92be9 | |||
| 1fef7812b4 | |||
| 6465165e34 | |||
| a26df55214 | |||
| 72e5f9bf93 | |||
| 08f1d812ac | |||
| ce207a72a5 | |||
| 5094880622 | |||
| 093ceffa36 | |||
| 6a7c1d0cbd | |||
| fb5a4ed5cc | |||
| e8ce7a487b | |||
| a3a552ad0e | |||
| fb54cfb188 | |||
| 7adceb86bf | |||
| 4e9b25bd8f | |||
| a7b5f4c50b | |||
| 4d159ae0d0 | |||
| 4fba4fa861 | |||
| db4d743413 | |||
| d6c52c8536 | |||
| 1969ffdb5f | |||
| 699d4b13e1 | |||
| c5cbaaab13 | |||
| cc802cbb57 | |||
| e7a6398168 | |||
| 62027f2216 | |||
| 88dc7537c2 | |||
| 0cb9395cd6 | |||
| e74e3d8fd4 | |||
| 0fc80bd29a | |||
| dae8bc517e | |||
| 68e2930e65 | |||
| bb957ec6a4 | |||
| 02e28e624b | |||
| 08161db1c4 | |||
| fa029d69b8 | |||
| 67ae7f482f | |||
| 304c563845 | |||
| efe4404c4e | |||
| 7d180417d8 | |||
| 00f773dd75 | |||
| 3bb1c8dd84 | |||
| ef4f606648 | |||
| 54b3e50ca5 | |||
| 680cc0adc6 | |||
| b53322ed72 | |||
| c32d2b6012 | |||
| 7aa3d2c6e6 | |||
| c2c6d9ef47 | |||
| d4d3ea3837 | |||
| 3385df4ba3 | |||
| 96b1cabb5a | |||
| 366591f247 | |||
| 241631b884 | |||
| 6c063344a3 | |||
| 2f5b1ce1f2 | |||
| 56b3ac6b0c | |||
| f6603ae76e | |||
| 21ae95b5ed | |||
| ce2e86c045 | |||
| 0f8eb0ec94 | |||
| 2f6d419453 | |||
| f34f9e1607 | |||
| c7dd134fce | |||
| 03cc9c9800 | |||
| 04795a09cc | |||
| de3d247d0d | |||
| ee87bcb8d0 | |||
| aaeea7a7b0 | |||
| 7f17681409 | |||
| d72c18756f | |||
| baf5edca42 | |||
| fefa28ae7a | |||
| a217ddae38 | |||
| 97fcb37761 | |||
| 58ff3870be | |||
| 439a039ff4 | |||
| 049a9ca43c | |||
| f128f2e13a | |||
| 20b8c80aaf | |||
| 8e85c91f15 | |||
| 1ac8d5c258 | |||
| 23cd89e882 | |||
| 47a0ab5f1b | |||
| dc37c54938 | |||
| 2834fac85c | |||
| be77c50b45 | |||
| 40d8c8655e | |||
| 7580319fc8 | |||
| 7a2f0f42a9 | |||
| 4ffd3797b6 | |||
| b42428b068 | |||
| 01d6e71f07 | |||
| 3b246b4f1f | |||
| caf5f954b7 | |||
| edb868f372 | |||
| d9009a2e1e | |||
| 2e0938628c | |||
| 3783505dbd | |||
| 0acee49de2 | |||
| 18e9260705 | |||
| 3f4cf2217f | |||
| bb2f49be37 | |||
| b68af3a48a | |||
| 7eb144e8fe | |||
| 7971a49dcd | |||
| c06cce20df | |||
| 2b0f6dfbed | |||
| c509cb7f87 | |||
| 5807f218b1 | |||
| 1d43ebff3b | |||
| eb92b99a1d | |||
| 4d67b019a6 | |||
| 934a793da3 | |||
| e6abf44bef | |||
| ee75e7a2a0 | |||
| b84d428814 | |||
| 17a91d3924 | |||
| cda3563184 | |||
| 7a6f87d141 | |||
| 78313adb4a | |||
| 7dc420773f | |||
| 552e2c194f | |||
| 8f01f8693d | |||
| ad8444a788 | |||
| f78db1ae37 | |||
| 0914b8db23 | |||
| 8aa66c6277 | |||
| 1e1999f264 | |||
| e95c175f9b | |||
| ff03a88ea0 | |||
| d761a6fb1a | |||
| 2982d482bf | |||
| 0ee53fd286 | |||
| 5e16f5454b | |||
| ce3ed34fbf | |||
| d159067efd | |||
| 7b8fd9e01d | |||
| 8a3f68df6b | |||
| bc75c058e1 | |||
| 62cdb252ca | |||
| 8f2906fe6f | |||
| e8628508d8 | |||
| 53edec8692 | |||
| a1ea31039e | |||
| ef631e2c0b | |||
| 27dc7a0166 | |||
| e6353f9f4c | |||
| 3bb9c2121d | |||
| 737c6f9f14 | |||
| 8e543cbcc6 | |||
| ea7aad5067 | |||
| 09b52e6b0a | |||
| 078db53ae4 | |||
| 957f4cd024 | |||
| 1ce8d98663 | |||
| 1771cb7ec6 | |||
| b74f188b15 | |||
| 5196f20e47 | |||
| 5d4cd6f654 | |||
| a05717f92d | |||
| 123232592f | |||
| 2cbb994667 | |||
| f4d2a3e85f | |||
| 8c63ed83ac | |||
| e6e6fb7210 | |||
| 82efba35cb | |||
| 26fe1ccbb3 | |||
| 94c63c460c | |||
| 05a9967906 | |||
| 1c0bdf6184 | |||
| 51517ddf61 | |||
| 70aa739f97 | |||
| 394f2c626b | |||
| 644803cf21 | |||
| 8e9a40dec4 | |||
| 1bdec1b838 | |||
| 220d5b9d26 | |||
| fbfd97ec31 | |||
| 18692acc88 | |||
| 6c84dab730 | |||
| 12ce93f58c | |||
| dcaf1a8832 | |||
| 04d529392e | |||
| 6f3e7e22f9 | |||
| 12a0398903 | |||
| 03e51c07cc | |||
| e6be341ad9 | |||
| 85ec11ab0f | |||
| db9ab0d1a7 | |||
| af70d6f378 | |||
| 1940f4fa47 | |||
| ec406d5d2d | |||
| 7b82427713 | |||
| ec642df834 | |||
| 540506bde0 | |||
| d9245fe9b7 | |||
| 14fd765122 | |||
| 9639423a32 | |||
| 1fe88dfb45 | |||
| a30dbbb102 | |||
| 9cc67c0ef2 | |||
| 1eda9eea29 | |||
| 2cf3a5a40d | |||
| 30946823c4 | |||
| d946228319 | |||
| 8cb3c97b80 | |||
| 1fc23bd0bd | |||
| 11337679dc | |||
| 4685a91a7c | |||
| 69afcc7fdb | |||
| 9fcc65d84f | |||
| c4faa7d9f6 | |||
| 98d0614d80 | |||
| 35e1bc33d3 | |||
| f96fe97ed6 | |||
| fe9442237b | |||
| 61cdf5b72e | |||
| 37c4eacf84 | |||
| 41be0c343f | |||
| ecf2778f1a | |||
| 9c012e9bb4 | |||
| 91832cc6ff | |||
| ea91b31b17 | |||
| ae5e4c5db5 | |||
| b1c4b78f32 | |||
| a66205b725 | |||
| b0608fdc70 | |||
| 473a269bed | |||
| 3605d23fc0 |
+4
-3
@@ -1,3 +1,4 @@
|
|||||||
node_modules
|
node_modules/
|
||||||
dist
|
dist/
|
||||||
.angular
|
.angular/
|
||||||
|
.git/
|
||||||
|
|||||||
@@ -42,7 +42,3 @@ __screenshots__/
|
|||||||
# System files
|
# System files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
# Playwright
|
|
||||||
/test-results/
|
|
||||||
/playwright-report/
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
src/app/api/
|
|
||||||
Vendored
+4
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
|
||||||
|
"recommendations": ["angular.ng-template"]
|
||||||
|
}
|
||||||
Vendored
+20
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
// 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+42
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
// 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)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
+6
-4
@@ -1,10 +1,12 @@
|
|||||||
FROM node:24-alpine AS build
|
# Production image: the Angular build served by nginx, which proxies the API paths to `webapi`.
|
||||||
|
FROM node:22-slim AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npx ng build
|
RUN npx ng build --configuration production
|
||||||
|
|
||||||
FROM nginx:1.29-alpine
|
FROM nginx:1.27-alpine
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --from=build /app/dist/webapp/browser /usr/share/nginx/html
|
COPY --from=build /app/dist/WebApp/browser /usr/share/nginx/html
|
||||||
|
EXPOSE 80
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# 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`.
|
||||||
|
|
||||||
|
## CaCu en Windows con la instalación del puerto 5210
|
||||||
|
|
||||||
|
En `feature/cacu-update`, desde la carpeta de WebApp:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
npm ci
|
||||||
|
npm run start:cacu
|
||||||
|
```
|
||||||
|
|
||||||
|
Abre [Indicadores CaCu](http://127.0.0.1:4300/indicadores/cacu) e inicia sesión
|
||||||
|
con la cuenta de CaCu de la aplicación. La sesión se valida en el navegador.
|
||||||
|
Detén Angular con `Ctrl+C` en la misma terminal.
|
||||||
|
|
||||||
|
El lockfile de Angular admite Node.js `^22.22.3`, `^24.15.0` o `>=26.0.0`.
|
||||||
|
`package.json` declara npm `11.17.0`. El arranque se probó con Node.js
|
||||||
|
`26.13.0` y npm `11.20.0`.
|
||||||
|
|
||||||
|
`start:cacu` escucha en `127.0.0.1:4300`. El proxy de Angular reenvía
|
||||||
|
solicitudes GET de CaCu a `http://10.0.10.41:5210`, incluida la lista
|
||||||
|
`/cacu/seguimiento` y los recursos FHIR `Measure`, `MeasureReport` y
|
||||||
|
`RiskAssessment`. La ruta `/indicadores/cacu` la sirve Angular.
|
||||||
+38
-21
@@ -2,11 +2,12 @@
|
|||||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"cli": {
|
"cli": {
|
||||||
"packageManager": "npm"
|
"packageManager": "npm",
|
||||||
|
"analytics": false
|
||||||
},
|
},
|
||||||
"newProjectRoot": "projects",
|
"newProjectRoot": "projects",
|
||||||
"projects": {
|
"projects": {
|
||||||
"webapp": {
|
"WebApp": {
|
||||||
"projectType": "application",
|
"projectType": "application",
|
||||||
"schematics": {
|
"schematics": {
|
||||||
"@schematics/angular:component": {
|
"@schematics/angular:component": {
|
||||||
@@ -30,20 +31,15 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"@fontsource/roboto/300.css",
|
"node_modules/@fontsource/roboto/300.css",
|
||||||
"@fontsource/roboto/400.css",
|
"node_modules/@fontsource/roboto/400.css",
|
||||||
"@fontsource/roboto/500.css",
|
"node_modules/@fontsource/roboto/500.css",
|
||||||
"@fontsource/roboto/700.css",
|
"node_modules/@fontsource/rajdhani/600.css",
|
||||||
"@fontsource/rajdhani/500.css",
|
"node_modules/@fontsource/rajdhani/700.css",
|
||||||
"@fontsource/rajdhani/600.css",
|
"node_modules/@fontsource/roboto-mono/400.css",
|
||||||
"material-symbols/outlined.css",
|
"node_modules/@fontsource/roboto-mono/600.css",
|
||||||
|
"node_modules/material-icons/iconfont/filled.css",
|
||||||
"src/styles.scss"
|
"src/styles.scss"
|
||||||
],
|
|
||||||
"define": {
|
|
||||||
"global": "globalThis"
|
|
||||||
},
|
|
||||||
"allowedCommonJsDependencies": [
|
|
||||||
"plotly.js-cartesian-dist-min"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
@@ -51,13 +47,13 @@
|
|||||||
"budgets": [
|
"budgets": [
|
||||||
{
|
{
|
||||||
"type": "initial",
|
"type": "initial",
|
||||||
"maximumWarning": "600kB",
|
"maximumWarning": "500kB",
|
||||||
"maximumError": "1MB"
|
"maximumError": "1MB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "anyComponentStyle",
|
"type": "anyComponentStyle",
|
||||||
"maximumWarning": "4kB",
|
"maximumWarning": "6kB",
|
||||||
"maximumError": "8kB"
|
"maximumError": "10kB"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputHashing": "all"
|
"outputHashing": "all"
|
||||||
@@ -66,24 +62,45 @@
|
|||||||
"optimization": false,
|
"optimization": false,
|
||||||
"extractLicenses": false,
|
"extractLicenses": false,
|
||||||
"sourceMap": true
|
"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"
|
"defaultConfiguration": "production"
|
||||||
},
|
},
|
||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular/build:dev-server",
|
"builder": "@angular/build:dev-server",
|
||||||
|
"options": {
|
||||||
|
"proxyConfig": "proxy.conf.json"
|
||||||
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
"buildTarget": "webapp:build:production"
|
"buildTarget": "WebApp:build:production"
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"buildTarget": "webapp:build:development"
|
"buildTarget": "WebApp:build:development"
|
||||||
|
},
|
||||||
|
"simulado": {
|
||||||
|
"buildTarget": "WebApp:build:simulado",
|
||||||
|
"proxyConfig": "simulado/proxy.simulado.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "development"
|
"defaultConfiguration": "development"
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"builder": "@angular/build:unit-test"
|
"builder": "@angular/build:unit-test",
|
||||||
|
"options": {
|
||||||
|
"isolate": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,138 +0,0 @@
|
|||||||
import { statSync } from 'node:fs';
|
|
||||||
import { expect, Locator, Page, test } from '@playwright/test';
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
test.beforeEach(async ({ page }) => {
|
|
||||||
const signed = await page.request.post('/api/auth/login', {
|
|
||||||
form: { username: 'admin@isssteleon.mx', password: 'solo-para-pruebas' },
|
|
||||||
});
|
|
||||||
expect(signed.status()).toBe(204);
|
|
||||||
});
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
|
||||||
await expect(page.getByRole('tab', { name: 'Resumen' })).toBeVisible();
|
|
||||||
await expect(page.locator('app-tab-indicadores [data-measure]').first()).toBeVisible();
|
|
||||||
|
|
||||||
await page.getByRole('tab', { name: 'Trazabilidad' }).click();
|
|
||||||
await expect(page.getByText('Progresión del proceso diagnóstico')).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 table tbody tr');
|
|
||||||
await expect(rows.first().locator('td').first()).toHaveText(/^N-?\d{4}$/);
|
|
||||||
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();
|
|
||||||
await expect(page.locator('app-tab-riesgos app-tea-list')).toBeVisible();
|
|
||||||
await expect(page.getByText('Cargando pacientes…')).toHaveCount(0);
|
|
||||||
|
|
||||||
await page.getByRole('tab', { name: 'Datos y definiciones' }).click();
|
|
||||||
await expect(page.locator('app-tab-definiciones details')).toHaveCount(measures);
|
|
||||||
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 table tbody tr').first();
|
|
||||||
await expect(first.locator('td').first()).toHaveText(/^N-?\d{4}$/);
|
|
||||||
await first.getByRole('link', { name: 'Expediente' }).click();
|
|
||||||
|
|
||||||
await expect(page).toHaveURL(/\/indicadores\/tea\/pacientes\/[^/]+$/);
|
|
||||||
await expect(page.getByRole('heading', { level: 1 })).toBeVisible();
|
|
||||||
await expect(page.locator('app-tea-section').first()).toBeVisible();
|
|
||||||
const record = await downloaded(page, page.getByRole('button', { name: 'Exportar PDF' }), 'pdf');
|
|
||||||
expect(record).toMatch(/^tea-seguimiento-/);
|
|
||||||
|
|
||||||
await page.getByRole('link', { name: '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-/,
|
|
||||||
);
|
|
||||||
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 page.getByLabel('Modo').selectOption('sync');
|
|
||||||
await expect(page.getByRole('status').filter({ hasText: 'Disponible' })).toBeVisible();
|
|
||||||
|
|
||||||
await page.getByRole('button', { name: 'Entrenar modelos' }).click();
|
|
||||||
await expect(page.getByRole('heading', { name: 'Entrenar modelos', level: 3 })).toBeVisible();
|
|
||||||
await expect(page.locator('app-governance-training formly-form')).toBeVisible();
|
|
||||||
|
|
||||||
const monitor = page.locator('app-gobernanza > section > section 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('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 preview = page.locator('app-eeg-preview');
|
|
||||||
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.getByLabel('Versiones').selectOption('all');
|
|
||||||
await bundles.getByRole('button', { name: 'Exportar bundle' }).click();
|
|
||||||
await expect(bundles.getByRole('alert')).toContainText('nothing to export');
|
|
||||||
expect(problems.filter((p) => !p.includes('409'))).toEqual([]);
|
|
||||||
});
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "node_modules/ng-openapi-gen/ng-openapi-gen-schema.json",
|
|
||||||
"input": "openapi.json",
|
|
||||||
"output": "src/app/api",
|
|
||||||
"ignoreUnusedModels": false
|
|
||||||
}
|
|
||||||
+27
-3
@@ -1,11 +1,35 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
server_name _;
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
location /api/ {
|
|
||||||
proxy_pass http://api:8000/;
|
# Files travel inside the import requests (multipart or base64 JSON):
|
||||||
proxy_read_timeout 120s;
|
# 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 / {
|
location / {
|
||||||
|
add_header Cache-Control "no-cache";
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
-8418
File diff suppressed because it is too large
Load Diff
Generated
+2831
-4352
File diff suppressed because it is too large
Load Diff
+24
-37
@@ -1,55 +1,42 @@
|
|||||||
{
|
{
|
||||||
"name": "webapp",
|
"name": "web-app",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve --proxy-config proxy.conf.json",
|
"start": "ng serve",
|
||||||
|
"start:cacu": "ng serve --host 127.0.0.1 --port 4300 --proxy-config proxy.cacu-readonly.cjs",
|
||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
"watch": "ng build --watch --configuration development",
|
"watch": "ng build --watch --configuration development",
|
||||||
"test": "ng test",
|
"test": "ng test"
|
||||||
"api": "ng-openapi-gen -c ng-openapi-gen.json"
|
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "npm@11.20.0",
|
"packageManager": "npm@11.17.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/cdk": "^22.3.0",
|
"@angular/cdk": "^22.1.7",
|
||||||
"@angular/common": "^22.3.0",
|
"@angular/common": "^22.1.0",
|
||||||
"@angular/compiler": "^22.3.0",
|
"@angular/compiler": "^22.1.0",
|
||||||
"@angular/core": "^22.3.0",
|
"@angular/core": "^22.1.0",
|
||||||
"@angular/forms": "^22.3.0",
|
"@angular/forms": "^22.1.0",
|
||||||
"@angular/material": "^22.3.0",
|
"@angular/material": "^22.1.7",
|
||||||
"@angular/platform-browser": "^22.3.0",
|
"@angular/platform-browser": "^22.1.0",
|
||||||
"@angular/router": "^22.3.0",
|
"@angular/router": "^22.1.0",
|
||||||
"@fontsource/rajdhani": "5.3.0",
|
"@fontsource/rajdhani": "^5.3.0",
|
||||||
"@fontsource/roboto": "5.3.0",
|
"@fontsource/roboto": "^5.3.0",
|
||||||
"@ngx-formly/core": "11.2.0",
|
"@fontsource/roboto-mono": "^5.3.0",
|
||||||
"@ngx-formly/material": "11.2.0",
|
"material-icons": "^1.13.14",
|
||||||
"d3-drag": "3.0.0",
|
"pdfmake": "0.3.14",
|
||||||
"d3-selection": "3.0.0",
|
"plotly.js-cartesian-dist-min": "4.1.2",
|
||||||
"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",
|
"rxjs": "~7.8.0",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
"write-excel-file": "4.1.1"
|
"write-excel-file": "4.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/build": "^22.3.0",
|
"@angular/build": "^22.1.8",
|
||||||
"@angular/cli": "^22.3.0",
|
"@angular/cli": "^22.1.8",
|
||||||
"@angular/compiler-cli": "^22.3.0",
|
"@angular/compiler-cli": "^22.1.0",
|
||||||
"@playwright/test": "1.64.1",
|
"jsdom": "^28.0.0",
|
||||||
"@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",
|
"prettier": "^3.8.1",
|
||||||
"typescript": "~6.0.2",
|
"typescript": "~6.0.2",
|
||||||
"vitest": "^5.0.0"
|
"vitest": "^4.0.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
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,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
// Keep the installed API read-only for local CaCu development.
|
||||||
|
module.exports = {
|
||||||
|
'^/(?:health|cacu/(?:seguimiento|fhir/(?:Measure|MeasureReport|RiskAssessment|metadata)))(?:\\?|$)': {
|
||||||
|
target: 'http://10.0.10.41:5210',
|
||||||
|
changeOrigin: true,
|
||||||
|
bypass(request, response) {
|
||||||
|
if (request.method === 'GET') return;
|
||||||
|
if (!response) return false;
|
||||||
|
response.writeHead(405, { Allow: 'GET' });
|
||||||
|
response.end();
|
||||||
|
return request.url;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
+11
-1
@@ -1 +1,11 @@
|
|||||||
{ "/api": { "target": "http://127.0.0.1:5711", "pathRewrite": { "^/api": "" } } }
|
{
|
||||||
|
"/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 }
|
||||||
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
export default { '/api': { target: process.env.API_URL, pathRewrite: { '^/api': '' } } };
|
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# 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.
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"/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
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
"""
|
||||||
|
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()
|
||||||
+25
-25
@@ -4,7 +4,7 @@
|
|||||||
@use 'sass:map';
|
@use 'sass:map';
|
||||||
@use '@angular/material' as mat;
|
@use '@angular/material' as mat;
|
||||||
|
|
||||||
// Note: Color palettes are generated from primary: #a8c243, tertiary: #5f9ea0
|
// Note: Color palettes are generated from primary: #a8c243, tertiary: #5f9ea0, neutral: #5c5f66
|
||||||
$_palettes: (
|
$_palettes: (
|
||||||
primary: (
|
primary: (
|
||||||
0: #000000,
|
0: #000000,
|
||||||
@@ -62,31 +62,31 @@ $_palettes: (
|
|||||||
),
|
),
|
||||||
neutral: (
|
neutral: (
|
||||||
0: #000000,
|
0: #000000,
|
||||||
10: #1b1c14,
|
10: #181c22,
|
||||||
20: #303128,
|
20: #2d3037,
|
||||||
25: #3b3c32,
|
25: #383b42,
|
||||||
30: #46483d,
|
30: #44474d,
|
||||||
35: #525348,
|
35: #4f5259,
|
||||||
40: #5e5f54,
|
40: #5b5e65,
|
||||||
50: #77786c,
|
50: #74777e,
|
||||||
60: #919285,
|
60: #8e9198,
|
||||||
70: #acac9f,
|
70: #a9abb3,
|
||||||
80: #c7c7b9,
|
80: #c4c6ce,
|
||||||
90: #e4e3d5,
|
90: #e0e2ea,
|
||||||
95: #f2f2e3,
|
95: #eff0f9,
|
||||||
98: #fbfaeb,
|
98: #f9f9ff,
|
||||||
99: #fdfdf5,
|
99: #fdfcff,
|
||||||
100: #ffffff,
|
100: #ffffff,
|
||||||
4: #0d0f07,
|
4: #0b0e14,
|
||||||
6: #13140c,
|
6: #101419,
|
||||||
12: #1f2017,
|
12: #1c2026,
|
||||||
17: #292b21,
|
17: #272a30,
|
||||||
22: #34362c,
|
22: #32353b,
|
||||||
24: #393a30,
|
24: #363940,
|
||||||
87: #dbdbcd,
|
87: #d8dae2,
|
||||||
92: #e9e9da,
|
92: #e6e8f0,
|
||||||
94: #efefe0,
|
94: #ecedf6,
|
||||||
96: #f5f4e6,
|
96: #f1f3fc,
|
||||||
),
|
),
|
||||||
neutral-variant: (
|
neutral-variant: (
|
||||||
0: #000000,
|
0: #000000,
|
||||||
|
|||||||
@@ -1,100 +0,0 @@
|
|||||||
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();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
import type { Observation, ObservationComponent } from 'fhir/r4';
|
|
||||||
import { code, ext } from './fhir';
|
|
||||||
|
|
||||||
export 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',
|
|
||||||
];
|
|
||||||
|
|
||||||
export interface Ados2Item {
|
|
||||||
code: string;
|
|
||||||
title: string;
|
|
||||||
score?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Ados2Subdomain {
|
|
||||||
subdomain: string;
|
|
||||||
items: Ados2Item[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export 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}`);
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { Injectable } from '@angular/core';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Provides the ApiConfiguration configuration object with a given root URL.
|
|
||||||
*/
|
|
||||||
export function provideApiConfiguration(rootUrl: string) {
|
|
||||||
var config = new ApiConfiguration();
|
|
||||||
config.rootUrl = rootUrl;
|
|
||||||
return {
|
|
||||||
provide: ApiConfiguration,
|
|
||||||
useValue: config
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Global configuration
|
|
||||||
*/
|
|
||||||
@Injectable({
|
|
||||||
providedIn: 'root',
|
|
||||||
})
|
|
||||||
export class ApiConfiguration {
|
|
||||||
rootUrl: string = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
/* 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>>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Helper service to call API functions directly
|
|
||||||
*/
|
|
||||||
@Injectable({ providedIn: 'root' })
|
|
||||||
export class Api {
|
|
||||||
constructor(
|
|
||||||
private config: ApiConfiguration,
|
|
||||||
private http: HttpClient
|
|
||||||
) {
|
|
||||||
}
|
|
||||||
|
|
||||||
private _rootUrl?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the root url for API operations. If not set directly here,
|
|
||||||
* will fallback to `ApiConfiguration.rootUrl`.
|
|
||||||
*/
|
|
||||||
get rootUrl(): string {
|
|
||||||
return this._rootUrl || this.config.rootUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the root URL for API operations
|
|
||||||
*/
|
|
||||||
set rootUrl(rootUrl: string) {
|
|
||||||
this._rootUrl = rootUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Executes an API call, returning the response body only
|
|
||||||
*/
|
|
||||||
invoke<P, R>(fn: ApiFnRequired<P, R>, params: P, context?: HttpContext): Promise<R>;
|
|
||||||
invoke<P, R>(fn: ApiFnOptional<P, R>, params?: P, context?: HttpContext): Promise<R>;
|
|
||||||
async invoke<P, R>(fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>, params: P, context?: HttpContext): Promise<R> {
|
|
||||||
const resp = this.invoke$Response(fn, params, context);
|
|
||||||
return (await resp).body;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Executes an API call, returning the entire response
|
|
||||||
*/
|
|
||||||
invoke$Response<P, R>(fn: ApiFnRequired<P, R>, params: P, context?: HttpContext): Promise<StrictHttpResponse<R>>;
|
|
||||||
invoke$Response<P, R>(fn: ApiFnOptional<P, R>, params?: P, context?: HttpContext): Promise<StrictHttpResponse<R>>;
|
|
||||||
invoke$Response<P, R>(fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>, params: P, context?: HttpContext): Promise<StrictHttpResponse<R>> {
|
|
||||||
const obs = fn(this.http, this.rootUrl, params, context)
|
|
||||||
.pipe(
|
|
||||||
filter(r => r instanceof HttpResponse),
|
|
||||||
map(r => r as StrictHttpResponse<R>));
|
|
||||||
return firstValueFrom(obs);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,32 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,29 +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 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';
|
|
||||||
@@ -1,36 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,33 +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 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';
|
|
||||||
@@ -1,30 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,32 +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';
|
|
||||||
|
|
||||||
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}';
|
|
||||||
@@ -1,36 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,30 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,54 +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';
|
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface EegSummary$Params {
|
|
||||||
domain: Domain;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* months: the domain's follow-up list over that window up to the cut-off
|
|
||||||
*/
|
|
||||||
'follow-up-window'?: (number | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* explicit window start that overrides follow-up-window
|
|
||||||
*/
|
|
||||||
'follow-up-start'?: (string | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* default: the last day with data
|
|
||||||
*/
|
|
||||||
'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';
|
|
||||||
@@ -1,34 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,44 +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';
|
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface PostBundle$Params {
|
|
||||||
domain: Domain;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* the sender's pipeline (its fhir nodes read this inbox)
|
|
||||||
*/
|
|
||||||
sender: string;
|
|
||||||
body: {
|
|
||||||
[key: string]: any;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,36 +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';
|
|
||||||
|
|
||||||
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}';
|
|
||||||
@@ -1,36 +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';
|
|
||||||
|
|
||||||
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}';
|
|
||||||
@@ -1,44 +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';
|
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface SearchCondition$Params {
|
|
||||||
domain: Domain;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Patient/<id>, comma-separated
|
|
||||||
*/
|
|
||||||
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';
|
|
||||||
@@ -1,44 +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';
|
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface SearchDiagnosticReport$Params {
|
|
||||||
domain: Domain;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Patient/<id>, comma-separated
|
|
||||||
*/
|
|
||||||
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';
|
|
||||||
@@ -1,44 +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';
|
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface SearchEncounter$Params {
|
|
||||||
domain: Domain;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Patient/<id>, comma-separated
|
|
||||||
*/
|
|
||||||
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';
|
|
||||||
@@ -1,62 +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';
|
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface SearchMeasureReport$Params {
|
|
||||||
domain: Domain;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* the Measure's id or canonical URL
|
|
||||||
*/
|
|
||||||
measure: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* semesters (2025-S1) or months (2025-03), comma-separated
|
|
||||||
*/
|
|
||||||
'reporting-period': string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* count only what was known by then
|
|
||||||
*/
|
|
||||||
'as-of'?: (string | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* durations count to this day
|
|
||||||
*/
|
|
||||||
'event-cutoff'?: (string | null);
|
|
||||||
'_count'?: (number | null);
|
|
||||||
'_offset'?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,38 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,44 +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';
|
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface SearchObservation$Params {
|
|
||||||
domain: Domain;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Patient/<id>, comma-separated
|
|
||||||
*/
|
|
||||||
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';
|
|
||||||
@@ -1,96 +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';
|
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface SearchPatient$Params {
|
|
||||||
domain: Domain;
|
|
||||||
'_id'?: (string | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* months: the domain's follow-up list over that window up to the cut-off
|
|
||||||
*/
|
|
||||||
'follow-up-window'?: (number | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* explicit window start that overrides follow-up-window
|
|
||||||
*/
|
|
||||||
'follow-up-start'?: (string | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* default: the last day with data
|
|
||||||
*/
|
|
||||||
'follow-up-cutoff'?: (string | null);
|
|
||||||
'follow-up-status'?: (string | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* each word starts a word of her name (case and accents ignored)
|
|
||||||
*/
|
|
||||||
name?: (string | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* [system|]value: a CURP or record number (case ignored)
|
|
||||||
*/
|
|
||||||
identifier?: (string | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* -recent or -risk-<outcome>
|
|
||||||
*/
|
|
||||||
'_sort'?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* years
|
|
||||||
*/
|
|
||||||
'risk-horizon'?: (number | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* any of ('DiagnosticReport:subject', 'RiskAssessment:subject', 'Observation:subject')
|
|
||||||
*/
|
|
||||||
'_revinclude'?: Array<string>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* DiagnosticReport:result
|
|
||||||
*/
|
|
||||||
'_include:iterate'?: Array<string>;
|
|
||||||
'_count'?: (number | null);
|
|
||||||
'_offset'?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,44 +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';
|
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface SearchProcedure$Params {
|
|
||||||
domain: Domain;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Patient/<id>, comma-separated
|
|
||||||
*/
|
|
||||||
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';
|
|
||||||
@@ -1,44 +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';
|
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface SearchRiskAssessment$Params {
|
|
||||||
domain: Domain;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Patient/<id>, comma-separated
|
|
||||||
*/
|
|
||||||
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';
|
|
||||||
@@ -1,32 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,33 +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 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';
|
|
||||||
@@ -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 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}';
|
|
||||||
@@ -1,39 +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 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';
|
|
||||||
@@ -1,34 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,34 +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';
|
|
||||||
|
|
||||||
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}';
|
|
||||||
@@ -1,33 +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 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';
|
|
||||||
@@ -1,39 +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 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}';
|
|
||||||
@@ -1,38 +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';
|
|
||||||
|
|
||||||
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}';
|
|
||||||
@@ -1,33 +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 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';
|
|
||||||
@@ -1,38 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,32 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,30 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,38 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,33 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,43 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,39 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,42 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,36 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,41 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,40 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,33 +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';
|
|
||||||
|
|
||||||
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}';
|
|
||||||
@@ -1,40 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,38 +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';
|
|
||||||
|
|
||||||
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}';
|
|
||||||
@@ -1,38 +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';
|
|
||||||
|
|
||||||
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}';
|
|
||||||
@@ -1,40 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,36 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,39 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,38 +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';
|
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface TrainingInputs$Params {
|
|
||||||
domain: Domain;
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function trainingInputs(http: HttpClient, rootUrl: string, params: TrainingInputs$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, trainingInputs.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<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
trainingInputs.PATH = '/models/{domain}/{name}/inputs';
|
|
||||||
@@ -1,43 +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';
|
|
||||||
|
|
||||||
import { BodyUploadTrainingInputs } from '../../models/body-upload-training-inputs';
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface UploadTrainingInputs$Params {
|
|
||||||
domain: Domain;
|
|
||||||
name: string;
|
|
||||||
set: string;
|
|
||||||
body: BodyUploadTrainingInputs
|
|
||||||
}
|
|
||||||
|
|
||||||
export function uploadTrainingInputs(http: HttpClient, rootUrl: string, params: UploadTrainingInputs$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, uploadTrainingInputs.PATH, 'post');
|
|
||||||
if (params) {
|
|
||||||
rb.path('domain', params.domain, {});
|
|
||||||
rb.path('name', params.name, {});
|
|
||||||
rb.path('set', params.set, {});
|
|
||||||
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;
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
uploadTrainingInputs.PATH = '/models/{domain}/{name}/inputs/{set}/files';
|
|
||||||
@@ -1,40 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,30 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,33 +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 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';
|
|
||||||
@@ -1,32 +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';
|
|
||||||
|
|
||||||
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}';
|
|
||||||
@@ -1,36 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -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 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';
|
|
||||||
@@ -1,36 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,36 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -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 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';
|
|
||||||
@@ -1,41 +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 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';
|
|
||||||
@@ -1,36 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -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 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';
|
|
||||||
@@ -1,32 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,39 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,34 +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';
|
|
||||||
|
|
||||||
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}';
|
|
||||||
@@ -1,33 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,30 +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';
|
|
||||||
|
|
||||||
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';
|
|
||||||
@@ -1,31 +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 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
Reference in New Issue
Block a user