Compare commits
173 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 56b3ac6b0c | |||
| f6603ae76e | |||
| 21ae95b5ed | |||
| ce2e86c045 | |||
| 0f8eb0ec94 | |||
| 2f6d419453 | |||
| f34f9e1607 | |||
| c7dd134fce | |||
| 03cc9c9800 | |||
| 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
|
||||
dist
|
||||
.angular
|
||||
node_modules/
|
||||
dist/
|
||||
.angular/
|
||||
.git/
|
||||
|
||||
@@ -42,7 +42,3 @@ __screenshots__/
|
||||
# System files
|
||||
.DS_Store
|
||||
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
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
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 --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,43 @@
|
||||
# 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`.
|
||||
|
||||
## Fuente de histopatología BI-RADS
|
||||
|
||||
La compilación estándar incorpora la fuente sintética de la tarjeta de
|
||||
histopatología en **CaMa → Resumen**. La dona y las barras usan el mismo
|
||||
fixture. El catálogo, los filtros generales y los demás indicadores siguen
|
||||
usando WebApi. Si el catálogo carga sin la medida de histopatología, Resumen
|
||||
incluye la tarjeta con su fuente local.
|
||||
|
||||
El archivo
|
||||
`src/app/features/indicadores/fixtures/cama_histopatologia_birads_demo_sintetica.json`
|
||||
contiene conteos inventados, sin validez clínica. Define los 12 subtipos en orden
|
||||
con sus identificadores y colores. Cada mes remite a un perfil de conteos por
|
||||
estrato BI-RADS que incluye resultados benignos, subtipos, casos sin biopsia
|
||||
reportada y casos sin dato. Abarca enero de 2025 a diciembre de 2026. Los semestres
|
||||
suman esos mismos meses. Un periodo fuera de cobertura queda sin resultados.
|
||||
|
||||
El anillo interior usa el total con resultado de biopsia. El exterior reparte
|
||||
el grupo «Riesgo a carcinoma» entre sus 12 subtipos. Las barras y el centro
|
||||
muestran el subconjunto elegido sobre el total con resultado, por BI-RADS y del
|
||||
periodo completo, respectivamente. La leyenda permite elegir subtipos incluso
|
||||
cuando el sector es demasiado pequeño.
|
||||
|
||||
Cuando se valide la matriz clínica de subtipos, el adaptador FHIR podrá construir
|
||||
el mismo modelo de presentación con los conteos, estratos, denominadores y
|
||||
reglas de supresión aprobados. Los componentes de visualización ya consumen
|
||||
ese modelo tanto para las tasas como para los anillos.
|
||||
+23
-18
@@ -2,11 +2,12 @@
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"version": 1,
|
||||
"cli": {
|
||||
"packageManager": "npm"
|
||||
"packageManager": "npm",
|
||||
"analytics": false
|
||||
},
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"webapp": {
|
||||
"WebApp": {
|
||||
"projectType": "application",
|
||||
"schematics": {
|
||||
"@schematics/angular:component": {
|
||||
@@ -30,17 +31,15 @@
|
||||
}
|
||||
],
|
||||
"styles": [
|
||||
"@fontsource/roboto/300.css",
|
||||
"@fontsource/roboto/400.css",
|
||||
"@fontsource/roboto/500.css",
|
||||
"@fontsource/roboto/700.css",
|
||||
"@fontsource/rajdhani/500.css",
|
||||
"@fontsource/rajdhani/600.css",
|
||||
"material-symbols/outlined.css",
|
||||
"node_modules/@fontsource/roboto/300.css",
|
||||
"node_modules/@fontsource/roboto/400.css",
|
||||
"node_modules/@fontsource/roboto/500.css",
|
||||
"node_modules/@fontsource/rajdhani/600.css",
|
||||
"node_modules/@fontsource/rajdhani/700.css",
|
||||
"node_modules/@fontsource/roboto-mono/400.css",
|
||||
"node_modules/@fontsource/roboto-mono/600.css",
|
||||
"node_modules/material-icons/iconfont/filled.css",
|
||||
"src/styles.scss"
|
||||
],
|
||||
"allowedCommonJsDependencies": [
|
||||
"plotly.js-cartesian-dist-min"
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
@@ -48,13 +47,13 @@
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "600kB",
|
||||
"maximumWarning": "500kB",
|
||||
"maximumError": "1MB"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "4kB",
|
||||
"maximumError": "8kB"
|
||||
"maximumWarning": "6kB",
|
||||
"maximumError": "10kB"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all"
|
||||
@@ -69,18 +68,24 @@
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular/build:dev-server",
|
||||
"options": {
|
||||
"proxyConfig": "proxy.conf.json"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"buildTarget": "webapp:build:production"
|
||||
"buildTarget": "WebApp:build:production"
|
||||
},
|
||||
"development": {
|
||||
"buildTarget": "webapp:build:development"
|
||||
"buildTarget": "WebApp:build:development"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "development"
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular/build:unit-test"
|
||||
"builder": "@angular/build:unit-test",
|
||||
"options": {
|
||||
"isolate": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,118 +0,0 @@
|
||||
import { expect, Page, test } from '@playwright/test';
|
||||
|
||||
/** Every page loads from the API with no failed request and no console error. */
|
||||
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("indicators: the KPIs are the API's MeasureReports, every tab and the patient view load", async ({
|
||||
page,
|
||||
}) => {
|
||||
const problems = watch(page);
|
||||
const report = page.waitForResponse(
|
||||
(r) =>
|
||||
r.url().includes('MeasureReport') &&
|
||||
r.url().includes('measure=cacu-eu7') &&
|
||||
!r.url().includes('%2C'),
|
||||
);
|
||||
await page.goto('/indicadores/cacu');
|
||||
const eu7 = await (await report).json();
|
||||
const count = eu7.entry[0].resource.group[0].population.find(
|
||||
(p: any) => p.code.coding[0].code === 'initial-population',
|
||||
).count;
|
||||
await expect(page.locator('[data-measure="CACU_EU7"] .kpi-value')).toHaveText(String(count));
|
||||
await expect(page.locator('app-tab-indicadores app-plot').first()).toBeVisible();
|
||||
|
||||
await page.getByRole('tab', { name: 'Trazabilidad' }).click();
|
||||
await expect(page.locator('app-tab-trazabilidad mat-card')).toHaveCount(14);
|
||||
|
||||
await page.getByRole('tab', { name: 'Datos y definiciones' }).click();
|
||||
await expect(page.locator('app-tab-definiciones tbody tr')).toHaveCount(14);
|
||||
|
||||
const list = page.waitForResponse((r) => r.url().includes('/fhir/Patient?'));
|
||||
await page.getByRole('tab', { name: 'Análisis de riesgos' }).click();
|
||||
const bundle = await (await list).json();
|
||||
const patient = bundle.entry.find((e: any) => e.search.mode === 'match').resource;
|
||||
const first = patient.name?.[0]?.text ?? patient.id.slice(0, 10);
|
||||
const rows = page.locator('table.worklist tbody tr');
|
||||
await expect(rows).toHaveCount(Math.min(20, bundle.total));
|
||||
await expect(rows.first().locator('a').first()).toHaveText(first);
|
||||
await page.getByRole('button', { name: 'Siguiente' }).click();
|
||||
await expect(page.getByText(`21–`)).toBeVisible();
|
||||
|
||||
await page.getByRole('button', { name: 'Anterior' }).click();
|
||||
await rows.first().locator('a').first().click();
|
||||
await expect(page.getByText('Historial médico')).toBeVisible();
|
||||
await expect(page.getByText('Pruebas y resultados')).toBeVisible();
|
||||
await expect(
|
||||
page.locator('app-paciente table').nth(1).locator('tbody tr').first(),
|
||||
).not.toContainText('Sin estudios');
|
||||
|
||||
await page.goto('/indicadores/cama');
|
||||
await expect(page.getByRole('tab', { name: 'Indicadores' })).toBeVisible();
|
||||
await page.getByRole('tab', { name: 'Seguimiento' }).click();
|
||||
await page.locator('mat-form-field', { hasText: 'Ventana' }).click();
|
||||
await page.getByRole('option', { name: '12 meses' }).click();
|
||||
const camaRows = page.locator('table.worklist tbody tr');
|
||||
await expect(camaRows.first()).toContainText('BI-RADS');
|
||||
await page.goto('/indicadores/tea');
|
||||
await expect(page.getByRole('tab', { name: 'Indicadores' })).toBeVisible();
|
||||
expect(problems).toEqual([]);
|
||||
});
|
||||
|
||||
test('conectar: open the hospital pipeline, preview a source, run it to success', async ({
|
||||
page,
|
||||
}) => {
|
||||
const problems = watch(page);
|
||||
await page.goto('/conectar');
|
||||
await page.getByText('cacu', { exact: true }).click();
|
||||
await expect(page.locator('vflow')).toBeVisible();
|
||||
await page.getByText('Fuente · Patients').click();
|
||||
await expect(page.locator('formly-form')).toBeVisible();
|
||||
await page.getByRole('button', { name: 'Vista previa' }).click();
|
||||
await expect(page.locator('.preview tr[mat-row]').first()).toBeVisible();
|
||||
// A map node shows the site's codes in platform terms (its ConceptMap), editable as rows.
|
||||
await page.getByText('Mapear · cytology', { exact: true }).click();
|
||||
await expect(page.getByText('Códigos del sitio')).toBeVisible();
|
||||
await expect
|
||||
.poll(() =>
|
||||
page
|
||||
.locator('app-concept-map-editor input')
|
||||
.evaluateAll((els) => els.map((e) => (e as HTMLInputElement).value)),
|
||||
)
|
||||
.toContain('LIEAG');
|
||||
await page.getByRole('button', { name: 'Ejecutar' }).click();
|
||||
await expect(page.getByText('SUCCESS')).toBeVisible({ timeout: 10 * 60_000 });
|
||||
expect(problems).toEqual([]);
|
||||
});
|
||||
|
||||
test('revision: what the messy site holds, and a decision through the page', async ({ page }) => {
|
||||
const problems = watch(page);
|
||||
await page.goto('/revision');
|
||||
await page.getByRole('tab', { name: 'Personas' }).click();
|
||||
await page.locator('mat-form-field', { hasText: 'Canalización' }).click();
|
||||
await page.getByRole('option', { name: 'site', exact: true }).click();
|
||||
await expect(page.getByText(/Posibles pacientes duplicadas \([1-9]/)).toBeVisible();
|
||||
await page.getByRole('button', { name: 'Distintas' }).first().click();
|
||||
await expect(page.getByText('Decisión registrada.')).toBeVisible();
|
||||
expect(problems).toEqual([]);
|
||||
});
|
||||
|
||||
test('gobernanza: a version with its reports, its curves, and promotion refused without validation', async ({
|
||||
page,
|
||||
}) => {
|
||||
const problems = watch(page);
|
||||
await page.goto('/gobernanza/cama');
|
||||
await expect(page.getByRole('heading', { name: 'survival' })).toBeVisible();
|
||||
const version = page.locator('tr', { hasText: 'v1' });
|
||||
await expect(version.getByRole('link', { name: 'Validación técnica' })).toBeVisible();
|
||||
await version.getByRole('button', { name: 'Ver gráficas' }).click();
|
||||
await expect(page.locator('app-plot .plot svg').first()).toBeVisible();
|
||||
await version.getByRole('button', { name: 'Promover' }).click();
|
||||
await expect(page.getByText('No se promovió')).toContainText('clinical_validation');
|
||||
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
|
||||
}
|
||||
+33
-9
@@ -1,11 +1,35 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
location /api/ {
|
||||
proxy_pass http://api:8000/;
|
||||
proxy_read_timeout 30s;
|
||||
}
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
listen 80;
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
# Files travel inside the import requests (multipart or base64 JSON):
|
||||
# keep this above WebApi's WEBAPI_MAX_UPLOAD_MB (200 MB default) plus
|
||||
# the ~33% base64 overhead.
|
||||
client_max_body_size 270m;
|
||||
|
||||
gzip on;
|
||||
gzip_types text/css application/javascript application/json image/svg+xml;
|
||||
gzip_min_length 1024;
|
||||
|
||||
location ~ ^/(api|imports|data|cacu|cama|tea|governance|reportes|health)(/|$) {
|
||||
proxy_pass http://webapi:5000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
# OCR over a stack of scanned pages takes a while.
|
||||
proxy_read_timeout 600s;
|
||||
}
|
||||
|
||||
# Bundles carry a content hash in their name; index.html doesn't, so it
|
||||
# must be revalidated or browsers keep running the previous release.
|
||||
location ~* \.(js|css)$ {
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
add_header Cache-Control "no-cache";
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
|
||||
-3940
File diff suppressed because it is too large
Load Diff
Generated
+2945
-2330
File diff suppressed because it is too large
Load Diff
+24
-35
@@ -1,52 +1,41 @@
|
||||
{
|
||||
"name": "webapp",
|
||||
"name": "web-app",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve --proxy-config proxy.conf.json",
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test",
|
||||
"api": "ng-openapi-gen -c ng-openapi-gen.json"
|
||||
"test": "ng test"
|
||||
},
|
||||
"private": true,
|
||||
"packageManager": "npm@11.20.0",
|
||||
"packageManager": "npm@11.17.0",
|
||||
"dependencies": {
|
||||
"@angular/cdk": "^22.3.0",
|
||||
"@angular/common": "^22.3.0",
|
||||
"@angular/compiler": "^22.3.0",
|
||||
"@angular/core": "^22.3.0",
|
||||
"@angular/forms": "^22.3.0",
|
||||
"@angular/material": "^22.3.0",
|
||||
"@angular/platform-browser": "^22.3.0",
|
||||
"@angular/router": "^22.3.0",
|
||||
"@fontsource/rajdhani": "5.3.0",
|
||||
"@fontsource/roboto": "5.3.0",
|
||||
"@ngx-formly/core": "11.2.0",
|
||||
"@ngx-formly/material": "11.2.0",
|
||||
"d3-drag": "3.0.0",
|
||||
"d3-selection": "3.0.0",
|
||||
"d3-zoom": "3.0.0",
|
||||
"material-symbols": "0.48.3",
|
||||
"ngx-vflow": "2.7.0",
|
||||
"@angular/cdk": "^22.1.7",
|
||||
"@angular/common": "^22.1.0",
|
||||
"@angular/compiler": "^22.1.0",
|
||||
"@angular/core": "^22.1.0",
|
||||
"@angular/forms": "^22.1.0",
|
||||
"@angular/material": "^22.1.7",
|
||||
"@angular/platform-browser": "^22.1.0",
|
||||
"@angular/router": "^22.1.0",
|
||||
"@fontsource/rajdhani": "^5.3.0",
|
||||
"@fontsource/roboto": "^5.3.0",
|
||||
"@fontsource/roboto-mono": "^5.3.0",
|
||||
"material-icons": "^1.13.14",
|
||||
"pdfmake": "0.3.14",
|
||||
"plotly.js-cartesian-dist-min": "4.1.2",
|
||||
"rxjs": "~7.8.0",
|
||||
"tslib": "^2.3.0"
|
||||
"tslib": "^2.3.0",
|
||||
"write-excel-file": "4.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular/build": "^22.3.0",
|
||||
"@angular/cli": "^22.3.0",
|
||||
"@angular/compiler-cli": "^22.3.0",
|
||||
"@playwright/test": "1.64.1",
|
||||
"@types/d3-drag": "3.0.7",
|
||||
"@types/d3-selection": "3.0.13",
|
||||
"@types/d3-zoom": "3.0.9",
|
||||
"@types/fhir": "0.0.44",
|
||||
"@types/plotly.js": "3.0.15",
|
||||
"jsdom": "^31.0.0",
|
||||
"ng-openapi-gen": "^1.1.0",
|
||||
"@angular/build": "^22.1.8",
|
||||
"@angular/cli": "^22.1.8",
|
||||
"@angular/compiler-cli": "^22.1.0",
|
||||
"jsdom": "^28.0.0",
|
||||
"prettier": "^3.8.1",
|
||||
"typescript": "~6.0.2",
|
||||
"vitest": "^5.0.0"
|
||||
"vitest": "^4.0.8"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
import { defineConfig } from '@playwright/test';
|
||||
|
||||
/** The pages against a running API (API_URL), served by the dev server with the same
|
||||
* proxy the app uses in production (`/api`). Run by WebApi/tests/test_webapp.py, which
|
||||
* starts the platform and loads the synthetic hospital first. */
|
||||
export default defineConfig({
|
||||
testDir: 'e2e',
|
||||
timeout: 15 * 60_000,
|
||||
expect: { timeout: 60_000 },
|
||||
workers: 1,
|
||||
reporter: 'list',
|
||||
use: {
|
||||
baseURL: 'http://127.0.0.1:4310',
|
||||
viewport: { width: 1440, height: 1000 },
|
||||
actionTimeout: 60_000, // a stuck step fails, not the whole run
|
||||
},
|
||||
webServer: {
|
||||
// IPv4 explicitly: `localhost` may resolve to ::1 only (CI containers), where the url below never answers.
|
||||
command: 'npx ng serve --host 127.0.0.1 --port 4310 --proxy-config proxy.e2e.mjs',
|
||||
env: { NG_CLI_ANALYTICS: 'false' },
|
||||
url: 'http://127.0.0.1:4310',
|
||||
timeout: 180_000,
|
||||
reuseExistingServer: false,
|
||||
},
|
||||
});
|
||||
+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,2 +0,0 @@
|
||||
// `/api` to the API the e2e run started (API_URL).
|
||||
export default { '/api': { target: process.env.API_URL, pathRewrite: { '^/api': '' } } };
|
||||
+25
-25
@@ -4,7 +4,7 @@
|
||||
@use 'sass:map';
|
||||
@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: (
|
||||
primary: (
|
||||
0: #000000,
|
||||
@@ -62,31 +62,31 @@ $_palettes: (
|
||||
),
|
||||
neutral: (
|
||||
0: #000000,
|
||||
10: #1b1c14,
|
||||
20: #303128,
|
||||
25: #3b3c32,
|
||||
30: #46483d,
|
||||
35: #525348,
|
||||
40: #5e5f54,
|
||||
50: #77786c,
|
||||
60: #919285,
|
||||
70: #acac9f,
|
||||
80: #c7c7b9,
|
||||
90: #e4e3d5,
|
||||
95: #f2f2e3,
|
||||
98: #fbfaeb,
|
||||
99: #fdfdf5,
|
||||
10: #181c22,
|
||||
20: #2d3037,
|
||||
25: #383b42,
|
||||
30: #44474d,
|
||||
35: #4f5259,
|
||||
40: #5b5e65,
|
||||
50: #74777e,
|
||||
60: #8e9198,
|
||||
70: #a9abb3,
|
||||
80: #c4c6ce,
|
||||
90: #e0e2ea,
|
||||
95: #eff0f9,
|
||||
98: #f9f9ff,
|
||||
99: #fdfcff,
|
||||
100: #ffffff,
|
||||
4: #0d0f07,
|
||||
6: #13140c,
|
||||
12: #1f2017,
|
||||
17: #292b21,
|
||||
22: #34362c,
|
||||
24: #393a30,
|
||||
87: #dbdbcd,
|
||||
92: #e9e9da,
|
||||
94: #efefe0,
|
||||
96: #f5f4e6,
|
||||
4: #0b0e14,
|
||||
6: #101419,
|
||||
12: #1c2026,
|
||||
17: #272a30,
|
||||
22: #32353b,
|
||||
24: #363940,
|
||||
87: #d8dae2,
|
||||
92: #e6e8f0,
|
||||
94: #ecedf6,
|
||||
96: #f1f3fc,
|
||||
),
|
||||
neutral-variant: (
|
||||
0: #000000,
|
||||
|
||||
@@ -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,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,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,78 +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);
|
||||
|
||||
/**
|
||||
* default: the last day with data
|
||||
*/
|
||||
'follow-up-cutoff'?: (string | null);
|
||||
'follow-up-status'?: (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-cutoff', params['follow-up-cutoff'], {});
|
||||
rb.query('follow-up-status', params['follow-up-status'], {});
|
||||
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,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 { 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,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,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 { BodyUpload } from '../../models/body-upload';
|
||||
|
||||
export interface Upload$Params {
|
||||
body: BodyUpload
|
||||
}
|
||||
|
||||
export function upload(http: HttpClient, rootUrl: string, params: Upload$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||
[key: string]: string;
|
||||
}>> {
|
||||
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<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
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,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 Analyze$Params {
|
||||
domain: Domain;
|
||||
}
|
||||
|
||||
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, {});
|
||||
}
|
||||
|
||||
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,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 { Domain } from '../../models/domain';
|
||||
|
||||
export interface Models$Params {
|
||||
domain: Domain;
|
||||
}
|
||||
|
||||
export function models(http: HttpClient, rootUrl: string, params: Models$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<string>>> {
|
||||
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<string>>;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
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,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 { 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,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' | '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' | '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 RunStatus$Params {
|
||||
run_id: string;
|
||||
}
|
||||
|
||||
export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||
[key: string]: string;
|
||||
}>> {
|
||||
const rb = new RequestBuilder(rootUrl, runStatus.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<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
runStatus.PATH = '/runs/{run_id}';
|
||||
@@ -1,93 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export type { Domains$Params as Domains$Params } from './fn/operations/domains';
|
||||
export { domains as domains } from './fn/operations/domains';
|
||||
export type { Health$Params as Health$Params } from './fn/operations/health';
|
||||
export { health as health } from './fn/operations/health';
|
||||
export type { ConceptMaps$Params as ConceptMaps$Params } from './fn/ingest/concept-maps';
|
||||
export { conceptMaps as conceptMaps } from './fn/ingest/concept-maps';
|
||||
export type { GetConceptMap$Params as GetConceptMap$Params } from './fn/ingest/get-concept-map';
|
||||
export { getConceptMap as getConceptMap } from './fn/ingest/get-concept-map';
|
||||
export type { SaveConceptMap$Params as SaveConceptMap$Params } from './fn/ingest/save-concept-map';
|
||||
export { saveConceptMap as saveConceptMap } from './fn/ingest/save-concept-map';
|
||||
export type { Pipelines$Params as Pipelines$Params } from './fn/ingest/pipelines';
|
||||
export { pipelines as pipelines } from './fn/ingest/pipelines';
|
||||
export type { Pipeline$Params as Pipeline$Params } from './fn/ingest/pipeline';
|
||||
export { pipeline as pipeline } from './fn/ingest/pipeline';
|
||||
export type { SavePipeline$Params as SavePipeline$Params } from './fn/ingest/save-pipeline';
|
||||
export { savePipeline as savePipeline } from './fn/ingest/save-pipeline';
|
||||
export type { NodeRows$Params as NodeRows$Params } from './fn/ingest/node-rows';
|
||||
export { nodeRows as nodeRows } from './fn/ingest/node-rows';
|
||||
export type { StartRun$Params as StartRun$Params } from './fn/ingest/start-run';
|
||||
export { startRun as startRun } from './fn/ingest/start-run';
|
||||
export type { Schema$Params as Schema$Params } from './fn/ingest/schema';
|
||||
export { schema as schema } from './fn/ingest/schema';
|
||||
export type { SourcePreview$Params as SourcePreview$Params } from './fn/ingest/source-preview';
|
||||
export { sourcePreview as sourcePreview } from './fn/ingest/source-preview';
|
||||
export type { SourceResources$Params as SourceResources$Params } from './fn/ingest/source-resources';
|
||||
export { sourceResources as sourceResources } from './fn/ingest/source-resources';
|
||||
export type { Upload$Params as Upload$Params } from './fn/ingest/upload';
|
||||
export { upload as upload } from './fn/ingest/upload';
|
||||
export type { Models$Params as Models$Params } from './fn/models/models';
|
||||
export { models as models } from './fn/models/models';
|
||||
export type { Analyze$Params as Analyze$Params } from './fn/models/analyze';
|
||||
export { analyze as analyze } from './fn/models/analyze';
|
||||
export type { Score$Params as Score$Params } from './fn/models/score';
|
||||
export { score as score } from './fn/models/score';
|
||||
export type { Train$Params as Train$Params } from './fn/models/train';
|
||||
export { train as train } from './fn/models/train';
|
||||
export type { Versions$Params as Versions$Params } from './fn/models/versions';
|
||||
export { versions as versions } from './fn/models/versions';
|
||||
export type { Promote$Params as Promote$Params } from './fn/models/promote';
|
||||
export { promote as promote } from './fn/models/promote';
|
||||
export type { AddClinicalValidation$Params as AddClinicalValidation$Params } from './fn/models/add-clinical-validation';
|
||||
export { addClinicalValidation as addClinicalValidation } from './fn/models/add-clinical-validation';
|
||||
export type { ReadReport$Json$Params as ReadReport$Json$Params } from './fn/models/read-report-json';
|
||||
export { readReport$Json as readReport$Json } from './fn/models/read-report-json';
|
||||
export type { ReadReport$Any$Params as ReadReport$Any$Params } from './fn/models/read-report-any';
|
||||
export { readReport$Any as readReport$Any } from './fn/models/read-report-any';
|
||||
export type { Conflicts$Params as Conflicts$Params } from './fn/review/conflicts';
|
||||
export { conflicts as conflicts } from './fn/review/conflicts';
|
||||
export type { Correct$Params as Correct$Params } from './fn/review/correct';
|
||||
export { correct as correct } from './fn/review/correct';
|
||||
export type { Held$Params as Held$Params } from './fn/review/held';
|
||||
export { held as held } from './fn/review/held';
|
||||
export type { Persons$Params as Persons$Params } from './fn/review/persons';
|
||||
export { persons as persons } from './fn/review/persons';
|
||||
export type { DecidePersons$Params as DecidePersons$Params } from './fn/review/decide-persons';
|
||||
export { decidePersons as decidePersons } from './fn/review/decide-persons';
|
||||
export type { Reject$Params as Reject$Params } from './fn/review/reject';
|
||||
export { reject as reject } from './fn/review/reject';
|
||||
export type { RunStatus$Params as RunStatus$Params } from './fn/runs/run-status';
|
||||
export { runStatus as runStatus } from './fn/runs/run-status';
|
||||
export type { Studies$Params as Studies$Params } from './fn/eeg/studies';
|
||||
export { studies as studies } from './fn/eeg/studies';
|
||||
export type { Study$Params as Study$Params } from './fn/eeg/study';
|
||||
export { study as study } from './fn/eeg/study';
|
||||
export type { PostBundle$Params as PostBundle$Params } from './fn/fhir/post-bundle';
|
||||
export { postBundle as postBundle } from './fn/fhir/post-bundle';
|
||||
export type { SearchCondition$Params as SearchCondition$Params } from './fn/fhir/search-condition';
|
||||
export { searchCondition as searchCondition } from './fn/fhir/search-condition';
|
||||
export type { SearchDiagnosticReport$Params as SearchDiagnosticReport$Params } from './fn/fhir/search-diagnostic-report';
|
||||
export { searchDiagnosticReport as searchDiagnosticReport } from './fn/fhir/search-diagnostic-report';
|
||||
export type { SearchEncounter$Params as SearchEncounter$Params } from './fn/fhir/search-encounter';
|
||||
export { searchEncounter as searchEncounter } from './fn/fhir/search-encounter';
|
||||
export type { SearchMeasure$Params as SearchMeasure$Params } from './fn/fhir/search-measure';
|
||||
export { searchMeasure as searchMeasure } from './fn/fhir/search-measure';
|
||||
export type { ReadMeasure$Params as ReadMeasure$Params } from './fn/fhir/read-measure';
|
||||
export { readMeasure as readMeasure } from './fn/fhir/read-measure';
|
||||
export type { SearchMeasureReport$Params as SearchMeasureReport$Params } from './fn/fhir/search-measure-report';
|
||||
export { searchMeasureReport as searchMeasureReport } from './fn/fhir/search-measure-report';
|
||||
export type { SearchObservation$Params as SearchObservation$Params } from './fn/fhir/search-observation';
|
||||
export { searchObservation as searchObservation } from './fn/fhir/search-observation';
|
||||
export type { SearchPatient$Params as SearchPatient$Params } from './fn/fhir/search-patient';
|
||||
export { searchPatient as searchPatient } from './fn/fhir/search-patient';
|
||||
export type { ReadPatient$Params as ReadPatient$Params } from './fn/fhir/read-patient';
|
||||
export { readPatient as readPatient } from './fn/fhir/read-patient';
|
||||
export type { SearchProcedure$Params as SearchProcedure$Params } from './fn/fhir/search-procedure';
|
||||
export { searchProcedure as searchProcedure } from './fn/fhir/search-procedure';
|
||||
export type { SearchRiskAssessment$Params as SearchRiskAssessment$Params } from './fn/fhir/search-risk-assessment';
|
||||
export { searchRiskAssessment as searchRiskAssessment } from './fn/fhir/search-risk-assessment';
|
||||
export type { Metadata$Params as Metadata$Params } from './fn/fhir/metadata';
|
||||
export { metadata as metadata } from './fn/fhir/metadata';
|
||||
@@ -1,31 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export type { Analysis } from './models/analysis';
|
||||
export type { BodyAddClinicalValidation } from './models/body-add-clinical-validation';
|
||||
export type { BodyUpload } from './models/body-upload';
|
||||
export type { Condition } from './models/condition';
|
||||
export type { Correction } from './models/correction';
|
||||
export type { Domain } from './models/domain';
|
||||
export type { Extract } from './models/extract';
|
||||
export type { Fhir } from './models/fhir';
|
||||
export type { HttpValidationError } from './models/http-validation-error';
|
||||
export type { Join } from './models/join';
|
||||
export type { Link } from './models/link';
|
||||
export type { Map } from './models/map';
|
||||
export type { Metric } from './models/metric';
|
||||
export type { PersonDecision } from './models/person-decision';
|
||||
export type { Pipeline } from './models/pipeline';
|
||||
export type { Position } from './models/position';
|
||||
export type { Read } from './models/read';
|
||||
export type { Rejection } from './models/rejection';
|
||||
export type { Route } from './models/route';
|
||||
export type { RunRequest } from './models/run-request';
|
||||
export type { SavedPipeline } from './models/saved-pipeline';
|
||||
export type { Source } from './models/source';
|
||||
export type { SourceRef } from './models/source-ref';
|
||||
export type { Study } from './models/study';
|
||||
export type { Target } from './models/target';
|
||||
export type { Training } from './models/training';
|
||||
export type { ValidationError } from './models/validation-error';
|
||||
export type { Version } from './models/version';
|
||||
@@ -1,11 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Metric } from '../models/metric';
|
||||
export interface Analysis {
|
||||
age_months: (number | null);
|
||||
id: string;
|
||||
level: (string | null);
|
||||
metrics: Array<Metric>;
|
||||
valid: (boolean | null);
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface BodyAddClinicalValidation {
|
||||
file: string;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface BodyUpload {
|
||||
file: string;
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Condition {
|
||||
column: string;
|
||||
op: 'equals' | 'contains' | 'matches' | 'present';
|
||||
value?: string;
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Correction {
|
||||
field: 'record_number' | 'full_name' | 'curp' | 'nss' | 'birth_date' | 'sex';
|
||||
record: string;
|
||||
value: string;
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Domain } from './domain';
|
||||
|
||||
/**
|
||||
* Each possible value of `Domain`
|
||||
*/
|
||||
export const DOMAIN: Domain[] = [
|
||||
'cacu',
|
||||
'cama',
|
||||
'tea'
|
||||
];
|
||||
@@ -1,5 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export type Domain = 'cacu' | 'cama' | 'tea';
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Position } from '../models/position';
|
||||
|
||||
/**
|
||||
* Platform fields read from text, each kept with the text it was read from.
|
||||
*
|
||||
* `auto` asks the LLM when one is configured and answering, else applies `patterns`;
|
||||
* with neither, the row is held. Patterns are regexes with one group, per field (the
|
||||
* LLM can propose them from sample documents); their values go through the ConceptMap
|
||||
* and `formats` as in `map`.
|
||||
*/
|
||||
export interface Extract {
|
||||
column: string;
|
||||
concept_map?: (string | null);
|
||||
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||
formats?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
hints?: string;
|
||||
id: string;
|
||||
inputs?: Array<string>;
|
||||
kind?: 'extract';
|
||||
label?: string;
|
||||
method?: 'auto' | 'llm' | 'patterns';
|
||||
patterns?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
position?: (Position | null);
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Position } from '../models/position';
|
||||
|
||||
/**
|
||||
* FHIR R4 Bundles a standard hospital sent (a column of their JSON) as rows of one
|
||||
* entity: identity, death or a study (core.fhir_in). The sender's own codes go through
|
||||
* its ConceptMap.
|
||||
*/
|
||||
export interface Fhir {
|
||||
column?: string;
|
||||
concept_map?: (string | null);
|
||||
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||
id: string;
|
||||
inputs?: Array<string>;
|
||||
kind?: 'fhir';
|
||||
label?: string;
|
||||
position?: (Position | null);
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { ValidationError } from '../models/validation-error';
|
||||
export interface HttpValidationError {
|
||||
detail?: Array<ValidationError>;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Position } from '../models/position';
|
||||
|
||||
/**
|
||||
* Two inputs side by side where their columns match.
|
||||
*/
|
||||
export interface Join {
|
||||
how?: 'inner' | 'left';
|
||||
id: string;
|
||||
inputs?: Array<string>;
|
||||
kind?: 'join';
|
||||
label?: string;
|
||||
on: Array<[string, string]>;
|
||||
position?: (Position | null);
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Position } from '../models/position';
|
||||
|
||||
/**
|
||||
* Identity rows from every input, grouped into persons (Splink).
|
||||
*
|
||||
* Two records are the same person when any rule holds (Splink's SQL rule syntax, `l.`
|
||||
* and `r.` for the two records); persons are the connected groups. A person whose
|
||||
* records disagree on birth date or sex is held for review as a whole. Pairs Splink
|
||||
* scores above `review` that ended up apart are queued as possible matches.
|
||||
*/
|
||||
export interface Link {
|
||||
fields?: Array<string>;
|
||||
id: string;
|
||||
inputs?: Array<string>;
|
||||
kind?: 'link';
|
||||
label?: string;
|
||||
position?: (Position | null);
|
||||
review?: number;
|
||||
rules?: Array<string>;
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Position } from '../models/position';
|
||||
|
||||
/**
|
||||
* Columns to platform fields, the site's codes translated by its ConceptMap
|
||||
* (core.concept_map), and its date formats.
|
||||
*/
|
||||
export interface Map {
|
||||
concept_map?: (string | null);
|
||||
fields: {
|
||||
[key: string]: string;
|
||||
};
|
||||
formats?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
id: string;
|
||||
inputs?: Array<string>;
|
||||
kind?: 'map';
|
||||
label?: string;
|
||||
position?: (Position | null);
|
||||
values?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Metric {
|
||||
code: string;
|
||||
model: (string | null);
|
||||
outside: (number | null);
|
||||
value: number;
|
||||
z: (number | null);
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface PersonDecision {
|
||||
candidate: string;
|
||||
person: string;
|
||||
same: boolean;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Extract } from '../models/extract';
|
||||
import { Fhir } from '../models/fhir';
|
||||
import { Join } from '../models/join';
|
||||
import { Link } from '../models/link';
|
||||
import { Map } from '../models/map';
|
||||
import { Read } from '../models/read';
|
||||
import { Route } from '../models/route';
|
||||
import { Source } from '../models/source';
|
||||
import { Target } from '../models/target';
|
||||
export interface Pipeline {
|
||||
nodes: Array<(Source | Read | Route | Map | Extract | Fhir | Join | Link | Target)>;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Position {
|
||||
x: number;
|
||||
y: number;
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Position } from '../models/position';
|
||||
|
||||
/**
|
||||
* Files in a column (PDF, Word, Excel, scans...) to text (MarkItDown, OCRmyPDF).
|
||||
*/
|
||||
export interface Read {
|
||||
column: string;
|
||||
id: string;
|
||||
inputs?: Array<string>;
|
||||
kind?: 'read';
|
||||
label?: string;
|
||||
position?: (Position | null);
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Rejection {
|
||||
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||
reason: string;
|
||||
record: string;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Condition } from '../models/condition';
|
||||
import { Position } from '../models/position';
|
||||
|
||||
/**
|
||||
* Only the rows where every condition holds (e.g. reports titled "Citología").
|
||||
*/
|
||||
export interface Route {
|
||||
id: string;
|
||||
inputs?: Array<string>;
|
||||
kind?: 'route';
|
||||
label?: string;
|
||||
position?: (Position | null);
|
||||
when: Array<Condition>;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface RunRequest {
|
||||
version?: (number | null);
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Pipeline } from '../models/pipeline';
|
||||
export interface SavedPipeline {
|
||||
pipeline: Pipeline;
|
||||
version: number;
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface SourceRef {
|
||||
args?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
source: string;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Position } from '../models/position';
|
||||
|
||||
/**
|
||||
* One table, file set or API resource, copied as it is (dlt). Merged on the source's
|
||||
* own primary key or `primary_key`; replaced whole when it has none.
|
||||
*/
|
||||
export interface Source {
|
||||
args?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
id: string;
|
||||
inputs?: Array<string>;
|
||||
kind?: 'source';
|
||||
label?: string;
|
||||
position?: (Position | null);
|
||||
primary_key?: Array<string>;
|
||||
resource?: (string | null);
|
||||
source: string;
|
||||
then?: (string | null);
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Study {
|
||||
analysed: boolean;
|
||||
id: string;
|
||||
lab_record_id: (string | null);
|
||||
level: (string | null);
|
||||
person_id: string;
|
||||
study_date: string;
|
||||
valid: (boolean | null);
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { Position } from '../models/position';
|
||||
|
||||
/**
|
||||
* Rows of platform fields into one platform entity, each row given its person by the
|
||||
* one `link` node among the inputs. Rule breaks are held for review.
|
||||
*/
|
||||
export interface Target {
|
||||
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||
id: string;
|
||||
inputs?: Array<string>;
|
||||
kind?: 'target';
|
||||
label?: string;
|
||||
position?: (Position | null);
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Training {
|
||||
as_of?: (string | null);
|
||||
models?: Array<string>;
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface ValidationError {
|
||||
ctx?: {
|
||||
};
|
||||
input?: any;
|
||||
loc: Array<(string | number)>;
|
||||
msg: string;
|
||||
type: string;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Version {
|
||||
aliases: Array<string>;
|
||||
created: number;
|
||||
metrics: {
|
||||
[key: string]: number;
|
||||
};
|
||||
params: {
|
||||
[key: string]: string;
|
||||
};
|
||||
reports: Array<string>;
|
||||
version: number;
|
||||
}
|
||||
@@ -1,369 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { HttpRequest, HttpParameterCodec, HttpParams, HttpHeaders, HttpContext } from '@angular/common/http';
|
||||
|
||||
/**
|
||||
* Custom parameter codec to correctly handle the plus sign in parameter
|
||||
* values. See https://github.com/angular/angular/issues/18261
|
||||
*/
|
||||
class ParameterCodec implements HttpParameterCodec {
|
||||
encodeKey(key: string): string {
|
||||
return encodeURIComponent(key);
|
||||
}
|
||||
|
||||
encodeValue(value: string): string {
|
||||
return encodeURIComponent(value);
|
||||
}
|
||||
|
||||
decodeKey(key: string): string {
|
||||
return decodeURIComponent(key);
|
||||
}
|
||||
|
||||
decodeValue(value: string): string {
|
||||
return decodeURIComponent(value);
|
||||
}
|
||||
}
|
||||
const ParameterCodecInstance = new ParameterCodec();
|
||||
|
||||
/**
|
||||
* Defines the options for appending a parameter
|
||||
*/
|
||||
interface ParameterOptions {
|
||||
style?: string;
|
||||
explode?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Base class for a parameter
|
||||
*/
|
||||
abstract class Parameter {
|
||||
constructor(public name: string, public value: any, public options: ParameterOptions, defaultStyle: string, defaultExplode: boolean) {
|
||||
this.options = options || {};
|
||||
if (this.options.style === null || this.options.style === undefined) {
|
||||
this.options.style = defaultStyle;
|
||||
}
|
||||
if (this.options.explode === null || this.options.explode === undefined) {
|
||||
this.options.explode = defaultExplode;
|
||||
}
|
||||
}
|
||||
|
||||
serializeValue(value: any, separator = ','): string {
|
||||
if (value === null || value === undefined) {
|
||||
return '';
|
||||
} else if (value instanceof Array) {
|
||||
return value.map(v => this.serializeValue(v).split(separator).join(encodeURIComponent(separator))).join(separator);
|
||||
} else if (typeof value === 'object') {
|
||||
const array: string[] = [];
|
||||
for (const key of Object.keys(value)) {
|
||||
let propVal = value[key];
|
||||
if (propVal !== null && propVal !== undefined) {
|
||||
propVal = this.serializeValue(propVal).split(separator).join(encodeURIComponent(separator));
|
||||
if (this.options.explode) {
|
||||
array.push(`${key}=${propVal}`);
|
||||
} else {
|
||||
array.push(key);
|
||||
array.push(propVal);
|
||||
}
|
||||
}
|
||||
}
|
||||
return array.join(separator);
|
||||
} else {
|
||||
return String(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A parameter in the operation path
|
||||
*/
|
||||
class PathParameter extends Parameter {
|
||||
constructor(name: string, value: any, options: ParameterOptions) {
|
||||
super(name, value, options, 'simple', false);
|
||||
}
|
||||
|
||||
append(path: string): string {
|
||||
let value = this.value;
|
||||
if (value === null || value === undefined) {
|
||||
value = '';
|
||||
}
|
||||
let prefix = this.options.style === 'label' ? '.' : '';
|
||||
let separator = this.options.explode ? prefix === '' ? ',' : prefix : ',';
|
||||
let alreadySerialized = false;
|
||||
if (this.options.style === 'matrix') {
|
||||
// The parameter name is just used as prefix, except in some cases...
|
||||
prefix = `;${this.name}=`;
|
||||
if (this.options.explode && typeof value === 'object') {
|
||||
prefix = ';';
|
||||
if (value instanceof Array) {
|
||||
// For arrays we have to repeat the name for each element
|
||||
value = value.map(v => `${this.name}=${this.serializeValue(v, ';')}`);
|
||||
value = value.join(';');
|
||||
alreadySerialized = true;
|
||||
} else {
|
||||
// For objects we have to put each the key / value pairs
|
||||
value = this.serializeValue(value, ';');
|
||||
alreadySerialized = true
|
||||
}
|
||||
}
|
||||
}
|
||||
value = prefix + (alreadySerialized ? value : this.serializeValue(value, separator));
|
||||
// Replace both the plain variable and the corresponding variant taking in the prefix and explode into account
|
||||
path = path.replace(`{${this.name}}`, value);
|
||||
path = path.replace(`{${prefix}${this.name}${this.options.explode ? '*' : ''}}`, value);
|
||||
return path;
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
serializeValue(value: any, separator = ','): string {
|
||||
var result = typeof value === 'string' ? encodeURIComponent(value) : super.serializeValue(value, separator);
|
||||
result = result.replace(/%3D/g, '=');
|
||||
result = result.replace(/%3B/g, ';');
|
||||
result = result.replace(/%2C/g, ',');
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A parameter in the query
|
||||
*/
|
||||
class QueryParameter extends Parameter {
|
||||
constructor(name: string, value: any, options: ParameterOptions) {
|
||||
super(name, value, options, 'form', true);
|
||||
}
|
||||
|
||||
append(params: HttpParams): HttpParams {
|
||||
if (this.value instanceof Array) {
|
||||
// Array serialization
|
||||
if (this.options.explode) {
|
||||
for (const v of this.value) {
|
||||
params = params.append(this.name, this.serializeValue(v));
|
||||
}
|
||||
} else {
|
||||
const separator = this.options.style === 'spaceDelimited'
|
||||
? ' ' : this.options.style === 'pipeDelimited'
|
||||
? '|' : ',';
|
||||
return params.append(this.name, this.serializeValue(this.value, separator));
|
||||
}
|
||||
} else if (this.value !== null && typeof this.value === 'object') {
|
||||
// Object serialization
|
||||
if (this.options.style === 'deepObject') {
|
||||
// Append a parameter for each key, in the form `name[key]`
|
||||
for (const key of Object.keys(this.value)) {
|
||||
const propVal = this.value[key];
|
||||
if (propVal !== null && propVal !== undefined) {
|
||||
params = params.append(`${this.name}[${key}]`, this.serializeValue(propVal));
|
||||
}
|
||||
}
|
||||
} else if (this.options.explode) {
|
||||
// Append a parameter for each key without using the parameter name
|
||||
for (const key of Object.keys(this.value)) {
|
||||
const propVal = this.value[key];
|
||||
if (propVal !== null && propVal !== undefined) {
|
||||
params = params.append(key, this.serializeValue(propVal));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Append a single parameter whose values are a comma-separated list of key,value,key,value...
|
||||
const array: any[] = [];
|
||||
for (const key of Object.keys(this.value)) {
|
||||
const propVal = this.value[key];
|
||||
if (propVal !== null && propVal !== undefined) {
|
||||
array.push(key);
|
||||
array.push(propVal);
|
||||
}
|
||||
}
|
||||
params = params.append(this.name, this.serializeValue(array));
|
||||
}
|
||||
} else if (this.value !== null && this.value !== undefined) {
|
||||
// Plain value
|
||||
params = params.append(this.name, this.serializeValue(this.value));
|
||||
}
|
||||
return params;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A parameter in the HTTP request header
|
||||
*/
|
||||
class HeaderParameter extends Parameter {
|
||||
constructor(name: string, value: any, options: ParameterOptions) {
|
||||
super(name, value, options, 'simple', false);
|
||||
}
|
||||
|
||||
append(headers: HttpHeaders): HttpHeaders {
|
||||
if (this.value !== null && this.value !== undefined) {
|
||||
if (this.value instanceof Array) {
|
||||
for (const v of this.value) {
|
||||
headers = headers.append(this.name, this.serializeValue(v));
|
||||
}
|
||||
} else {
|
||||
headers = headers.append(this.name, this.serializeValue(this.value));
|
||||
}
|
||||
}
|
||||
return headers;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper to build http requests from parameters
|
||||
*/
|
||||
export class RequestBuilder {
|
||||
|
||||
private _path = new Map<string, PathParameter>();
|
||||
private _query = new Map<string, QueryParameter>();
|
||||
private _header = new Map<string, HeaderParameter>();
|
||||
_bodyContent: any | null;
|
||||
_bodyContentType?: string;
|
||||
|
||||
constructor(
|
||||
public rootUrl: string,
|
||||
public operationPath: string,
|
||||
public method: string) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a path parameter
|
||||
*/
|
||||
path(name: string, value: any, options?: ParameterOptions): void {
|
||||
this._path.set(name, new PathParameter(name, value, options || {}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a query parameter
|
||||
*/
|
||||
query(name: string, value: any, options?: ParameterOptions): void {
|
||||
this._query.set(name, new QueryParameter(name, value, options || {}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a header parameter
|
||||
*/
|
||||
header(name: string, value: any, options?: ParameterOptions): void {
|
||||
this._header.set(name, new HeaderParameter(name, value, options || {}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the body content, along with the content type
|
||||
*/
|
||||
body(value: any, contentType = 'application/json'): void {
|
||||
if (value instanceof Blob) {
|
||||
this._bodyContentType = value.type;
|
||||
} else {
|
||||
this._bodyContentType = contentType;
|
||||
}
|
||||
if (this._bodyContentType === 'application/x-www-form-urlencoded' && value !== null && typeof value === 'object') {
|
||||
// Handle URL-encoded data
|
||||
const pairs: Array<[string, string]> = [];
|
||||
for (const key of Object.keys(value)) {
|
||||
let val = value[key];
|
||||
if (!(val instanceof Array)) {
|
||||
val = [val];
|
||||
}
|
||||
for (const v of val) {
|
||||
const formValue = this.formDataValue(v);
|
||||
if (formValue !== null) {
|
||||
pairs.push([key, formValue]);
|
||||
}
|
||||
}
|
||||
}
|
||||
this._bodyContent = pairs.map(p => `${encodeURIComponent(p[0])}=${encodeURIComponent(p[1])}`).join('&');
|
||||
} else if (this._bodyContentType === 'multipart/form-data') {
|
||||
// Handle multipart form data
|
||||
const formData = new FormData();
|
||||
if (value !== null && value !== undefined) {
|
||||
for (const key of Object.keys(value)) {
|
||||
const val = value[key];
|
||||
if (val instanceof Array) {
|
||||
for (const v of val) {
|
||||
const toAppend = this.formDataValue(v);
|
||||
if (toAppend !== null) {
|
||||
formData.append(key, toAppend);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
const toAppend = this.formDataValue(val);
|
||||
if (toAppend !== null) {
|
||||
formData.set(key, toAppend);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this._bodyContent = formData;
|
||||
} else {
|
||||
// The body is the plain content
|
||||
this._bodyContent = value;
|
||||
}
|
||||
}
|
||||
|
||||
private formDataValue(value: any): any {
|
||||
if (value === null || value === undefined) {
|
||||
return null;
|
||||
}
|
||||
if (value instanceof Blob) {
|
||||
return value;
|
||||
}
|
||||
if (typeof value === 'object') {
|
||||
return new Blob([JSON.stringify(value)], {type: 'application/json'})
|
||||
}
|
||||
return String(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the request with the current set parameters
|
||||
*/
|
||||
build<T = any>(options?: {
|
||||
/** Which content types to accept */
|
||||
accept?: string;
|
||||
|
||||
/** The expected response type */
|
||||
responseType?: 'json' | 'text' | 'blob' | 'arraybuffer';
|
||||
|
||||
/** Whether to report progress on uploads / downloads */
|
||||
reportProgress?: boolean;
|
||||
|
||||
/** Allow passing HttpContext for HttpClient */
|
||||
context?: HttpContext;
|
||||
}): HttpRequest<T> {
|
||||
|
||||
options = options || {};
|
||||
|
||||
// Path parameters
|
||||
let path = this.operationPath;
|
||||
for (const pathParam of this._path.values()) {
|
||||
path = pathParam.append(path);
|
||||
}
|
||||
const url = this.rootUrl + path;
|
||||
|
||||
// Query parameters
|
||||
let httpParams = new HttpParams({
|
||||
encoder: ParameterCodecInstance
|
||||
});
|
||||
for (const queryParam of this._query.values()) {
|
||||
httpParams = queryParam.append(httpParams);
|
||||
}
|
||||
|
||||
// Header parameters
|
||||
let httpHeaders = new HttpHeaders();
|
||||
if (options.accept) {
|
||||
httpHeaders = httpHeaders.append('Accept', options.accept);
|
||||
}
|
||||
for (const headerParam of this._header.values()) {
|
||||
httpHeaders = headerParam.append(httpHeaders);
|
||||
}
|
||||
|
||||
// Request content headers
|
||||
if (this._bodyContentType && !(this._bodyContent instanceof FormData)) {
|
||||
httpHeaders = httpHeaders.set('Content-Type', this._bodyContentType);
|
||||
}
|
||||
|
||||
// Perform the request
|
||||
return new HttpRequest<T>(this.method.toUpperCase(), url, this._bodyContent, {
|
||||
params: httpParams,
|
||||
headers: httpHeaders,
|
||||
responseType: options.responseType,
|
||||
reportProgress: options.reportProgress,
|
||||
context: options.context
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { HttpResponse } from '@angular/common/http';
|
||||
|
||||
/**
|
||||
* Constrains the http response to not have the body defined as `T | null`, but `T` only.
|
||||
*/
|
||||
export type StrictHttpResponse<T> = HttpResponse<T> & {
|
||||
readonly body: T;
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
// Covers the shell's header: on an indicators page it carries the platform title and the domain selector; on
|
||||
// the institutional routes it keeps the breadcrumb. The pages are stubs: only the header and the router matter.
|
||||
import { Component } from '@angular/core';
|
||||
import { Location } from '@angular/common';
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { provideRouter, Router } from '@angular/router';
|
||||
import { provideHttpClient } from '@angular/common/http';
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
||||
import { App } from './app';
|
||||
import { routes } from './app.routes';
|
||||
import { DOMINIOS } from './features/indicadores/indicadores.models';
|
||||
|
||||
@Component({ template: 'página', selector: 'app-stub' })
|
||||
class Stub {}
|
||||
|
||||
describe('Encabezado del marco', () => {
|
||||
const rutas = [
|
||||
{ path: '', component: Stub },
|
||||
{ path: 'conectar', component: Stub, data: { workspace: true, breadcrumb: 'Conectar datos' } },
|
||||
{ path: 'gobernanza', component: Stub, data: { workspace: true, breadcrumb: 'Gobernanza de modelos' } },
|
||||
...DOMINIOS.map(dominio => ({ path: `indicadores/${dominio}`, component: Stub, data: { workspace: true, breadcrumb: 'Indicadores', dominio } })),
|
||||
];
|
||||
let fixture: ReturnType<typeof TestBed.createComponent<App>>, router: Router;
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({ imports: [App], providers: [provideRouter(rutas), provideHttpClient(), provideHttpClientTesting()] }).compileComponents();
|
||||
fixture = TestBed.createComponent(App); router = TestBed.inject(Router);
|
||||
fixture.detectChanges();
|
||||
});
|
||||
afterEach(() => { fixture.destroy(); document.querySelectorAll('.cdk-overlay-container').forEach(e => e.replaceChildren()); });
|
||||
const root = () => fixture.nativeElement as HTMLElement;
|
||||
async function ir(url: string) { await router.navigateByUrl(url); await fixture.whenStable(); fixture.detectChanges(); }
|
||||
const selector = () => root().querySelector('.domain-selector') as HTMLButtonElement | null;
|
||||
async function abrirMenu() {
|
||||
selector()!.click(); fixture.detectChanges(); await fixture.whenStable(); fixture.detectChanges();
|
||||
return [...document.querySelectorAll('.mat-mdc-menu-panel a[mat-menu-item]')] as HTMLAnchorElement[];
|
||||
}
|
||||
|
||||
it('las rutas de los tres dominios existen en el enrutador de la aplicación', () => {
|
||||
// Fails if the selector would point at a route the application does not have.
|
||||
// The application's routes live under the guarded parent ('login' is its sibling).
|
||||
const paths = routes.flatMap((ruta) => [ruta.path, ...(ruta.children ?? []).map((hijo) => hijo.path)]);
|
||||
for (const dominio of DOMINIOS) expect(paths).toContain(`indicadores/${dominio}`);
|
||||
});
|
||||
it.each([['tea', 'TEA'], ['cacu', 'CaCu'], ['cama', 'Cáncer de mama']] as const)('en /indicadores/%s muestra el título de la plataforma y el selector con «%s»', async (dominio, etiqueta) => {
|
||||
await ir('/indicadores/' + dominio);
|
||||
expect(root().querySelector('.platform-title')?.textContent).toBe('Plataforma de Indicadores');
|
||||
expect(selector()?.textContent?.replace(/\s+/g, ' ').trim()).toBe(etiqueta + ' ▾');
|
||||
expect(root().querySelector('.brand img')?.getAttribute('alt')).toBe('ISSSTELEON');
|
||||
// The breadcrumb is replaced, not duplicated beside the selector.
|
||||
expect(root().querySelector('.site-header__nav')).toBeNull();
|
||||
expect(root().querySelector('.app-shell--indicadores')).not.toBeNull();
|
||||
});
|
||||
it('el selector tiene nombre accesible con el dominio actual y anuncia un menú', async () => {
|
||||
await ir('/indicadores/cama');
|
||||
expect(selector()!.getAttribute('aria-label')).toBe('Dominio actual: Cáncer de mama. Cambiar dominio');
|
||||
expect(selector()!.getAttribute('aria-haspopup')).toBe('menu');
|
||||
expect(selector()!.tagName).toBe('BUTTON');
|
||||
expect(selector()!.tabIndex).toBeGreaterThanOrEqual(0);
|
||||
});
|
||||
it('el menú ofrece los otros dos dominios con sus rutas institucionales', async () => {
|
||||
await ir('/indicadores/cama');
|
||||
const items = await abrirMenu();
|
||||
expect(items.map(a => a.textContent?.trim())).toEqual(['TEA', 'CaCu']);
|
||||
expect(items.map(a => a.getAttribute('href'))).toEqual(['/indicadores/tea', '/indicadores/cacu']);
|
||||
expect(selector()!.getAttribute('aria-expanded')).toBe('true');
|
||||
});
|
||||
it('elegir otro dominio navega por el enrutador, actualiza el selector y deja una entrada en el historial', async () => {
|
||||
await ir('/indicadores/cama');
|
||||
const items = await abrirMenu();
|
||||
items[1].click(); await fixture.whenStable(); fixture.detectChanges();
|
||||
expect(router.url).toBe('/indicadores/cacu');
|
||||
expect(selector()!.textContent).toContain('CaCu');
|
||||
// The choice is a router navigation (a history entry), not a page reload: going back lands on the previous domain.
|
||||
const ubicacion = TestBed.inject(Location);
|
||||
ubicacion.back(); await new Promise(r => setTimeout(r, 100));
|
||||
expect(ubicacion.path()).toBe('/indicadores/cama');
|
||||
});
|
||||
it.each(['/', '/conectar', '/gobernanza'])('en %s conserva el encabezado institucional sin selector', async url => {
|
||||
// Fails if the indicators header leaks into the institutional routes.
|
||||
await ir(url);
|
||||
expect(selector()).toBeNull();
|
||||
expect(root().querySelector('.platform-title')).toBeNull();
|
||||
expect(root().querySelector('.site-header__section')?.textContent).toBe('Análisis de información');
|
||||
expect(root().querySelector('.app-shell--indicadores')).toBeNull();
|
||||
if (url !== '/') expect(root().querySelector('.site-header__crumb')?.textContent).toContain(url === '/conectar' ? 'Conectar datos' : 'Gobernanza de modelos');
|
||||
});
|
||||
it('una ruta parecida que no es de indicadores no activa el selector', async () => {
|
||||
await router.navigateByUrl('/'); fixture.detectChanges();
|
||||
expect(selector()).toBeNull();
|
||||
});
|
||||
});
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user