Compare commits
45 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| df2dc7b95c | |||
| 44f3dce911 | |||
| bc621f34f9 | |||
| c5da898265 | |||
| ca887c29ab | |||
| bb506c3926 | |||
| b48c025400 | |||
| a93cd71126 | |||
| 979b7cf34d | |||
| cde9b1cfb1 | |||
| edc32af67e | |||
| 2216186d26 | |||
| 55c4e0b173 | |||
| 52cca0a84c | |||
| 7e50ff9b90 | |||
| ac1d8fc4fa | |||
| d09e8c59ed | |||
| 4a8e2e22bd | |||
| 1655d464e1 | |||
| e275782198 | |||
| 133092f8c8 | |||
| 6ea54d6e6d | |||
| cbec0d431e | |||
| fd19fdaefa | |||
| 20e26b847a | |||
| 37444a25a1 | |||
| cb0403affb | |||
| aeb2d4ec84 | |||
| 3e096dd03f | |||
| 9a15ac6fcb | |||
| 198aae59da | |||
| cc22840c3c | |||
| 672091d19a | |||
| 07212a2083 | |||
| 0e4d838d44 | |||
| d1f9dcbea8 | |||
| 471ed3a18c | |||
| 53a6393cb2 | |||
| 9b02641804 | |||
| 9fc0666d66 | |||
| cd7bbaf11a | |||
| 70b6d6c646 | |||
| 4f858fc686 | |||
| 0ee30d67f7 | |||
| 00d03656ef |
+48
-4
@@ -1,4 +1,48 @@
|
|||||||
__pycache__/
|
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
|
||||||
node_modules/
|
|
||||||
dist/
|
# Compiled output
|
||||||
.angular/
|
/dist
|
||||||
|
/tmp
|
||||||
|
/out-tsc
|
||||||
|
/bazel-out
|
||||||
|
|
||||||
|
# Node
|
||||||
|
/node_modules
|
||||||
|
npm-debug.log
|
||||||
|
yarn-error.log
|
||||||
|
|
||||||
|
# IDEs and editors
|
||||||
|
.idea/
|
||||||
|
.project
|
||||||
|
.classpath
|
||||||
|
.c9/
|
||||||
|
*.launch
|
||||||
|
.settings/
|
||||||
|
*.sublime-workspace
|
||||||
|
|
||||||
|
# Visual Studio Code
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
!.vscode/mcp.json
|
||||||
|
.history/*
|
||||||
|
|
||||||
|
# Miscellaneous
|
||||||
|
/.angular/cache
|
||||||
|
.sass-cache/
|
||||||
|
/connect.lock
|
||||||
|
/coverage
|
||||||
|
/libpeerconnection.log
|
||||||
|
testem.log
|
||||||
|
/typings
|
||||||
|
__screenshots__/
|
||||||
|
|
||||||
|
# System files
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Playwright
|
||||||
|
/test-results/
|
||||||
|
/playwright-report/
|
||||||
|
|||||||
+122
@@ -0,0 +1,122 @@
|
|||||||
|
import type { Page } from '@playwright/test';
|
||||||
|
|
||||||
|
/** What breaks a page's layout, measured in the browser: overlapping texts (also inside
|
||||||
|
* Plotly figures: legend against axis titles, tick labels), labels clipped at a figure's
|
||||||
|
* edge, labels that wrap where they should not (buttons, badges), a header taller than one
|
||||||
|
* row, text cut by its own box, and a page wider than the window. Empty: nothing found. */
|
||||||
|
export async function layoutProblems(page: Page): Promise<string[]> {
|
||||||
|
return page.evaluate(() => {
|
||||||
|
const found: string[] = [];
|
||||||
|
const box = (e: Element) => e.getBoundingClientRect();
|
||||||
|
const hit = (a: DOMRect, b: DOMRect) =>
|
||||||
|
a.width > 0 &&
|
||||||
|
b.width > 0 &&
|
||||||
|
a.left < b.right - 1 &&
|
||||||
|
b.left < a.right - 1 &&
|
||||||
|
a.top < b.bottom - 1 &&
|
||||||
|
b.top < a.bottom - 1;
|
||||||
|
const where = (el: Element) => {
|
||||||
|
const card = el.closest('mat-card, section, .card');
|
||||||
|
const h = card?.querySelector('h1,h2,h3,h4,mat-card-title');
|
||||||
|
return (h?.textContent ?? '').trim().slice(0, 60);
|
||||||
|
};
|
||||||
|
if (document.documentElement.scrollWidth > window.innerWidth + 1)
|
||||||
|
found.push(
|
||||||
|
`page overflows horizontally: ${document.documentElement.scrollWidth} > ${window.innerWidth}`,
|
||||||
|
);
|
||||||
|
for (const plot of document.querySelectorAll('.js-plotly-plot')) {
|
||||||
|
const texts = [
|
||||||
|
...plot.querySelectorAll(
|
||||||
|
'.legend, .g-xtitle text, .g-ytitle text, .xtitle, .ytitle, .gtitle',
|
||||||
|
),
|
||||||
|
];
|
||||||
|
for (let i = 0; i < texts.length; i++)
|
||||||
|
for (let j = i + 1; j < texts.length; j++)
|
||||||
|
if (
|
||||||
|
!texts[i].contains(texts[j]) &&
|
||||||
|
!texts[j].contains(texts[i]) &&
|
||||||
|
hit(box(texts[i]), box(texts[j]))
|
||||||
|
)
|
||||||
|
found.push(
|
||||||
|
`plot "${where(plot)}": ${texts[i].getAttribute('class')} overlaps ${texts[j].getAttribute('class')}`,
|
||||||
|
);
|
||||||
|
const host = box(plot);
|
||||||
|
for (const t of plot.querySelectorAll('.slicetext, .xtick text, .ytick text, .legendtext')) {
|
||||||
|
const b = box(t);
|
||||||
|
if (b.width && (b.left < host.left - 1 || b.right > host.right + 1))
|
||||||
|
found.push(`plot "${where(plot)}": text "${t.textContent}" clipped at the edge`);
|
||||||
|
}
|
||||||
|
const ticks = [...plot.querySelectorAll('.xtick text')].map(box);
|
||||||
|
for (let i = 1; i < ticks.length; i++)
|
||||||
|
if (hit(ticks[i - 1], ticks[i])) {
|
||||||
|
found.push(`plot "${where(plot)}": x tick labels overlap`);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Text elements overlapping each other (headings, labels, buttons, table cells).
|
||||||
|
const els = [
|
||||||
|
...document.querySelectorAll<HTMLElement>(
|
||||||
|
'h1,h2,h3,h4,p,label,button,a,dt,dd,th,td,mat-card-title,.mdc-tab__text-label,mat-label,li',
|
||||||
|
),
|
||||||
|
].filter(
|
||||||
|
(e: any) =>
|
||||||
|
e.offsetParent &&
|
||||||
|
box(e).width > 0 &&
|
||||||
|
box(e).height > 0 &&
|
||||||
|
!e.closest('.js-plotly-plot, .cdk-overlay-container') &&
|
||||||
|
!e.closest('details:not([open]) > :not(summary)'),
|
||||||
|
);
|
||||||
|
for (let i = 0; i < els.length; i++)
|
||||||
|
for (let j = i + 1; j < Math.min(els.length, i + 40); j++) {
|
||||||
|
const a = els[i],
|
||||||
|
b = els[j];
|
||||||
|
if (a.contains(b) || b.contains(a)) continue;
|
||||||
|
if (hit(box(a), box(b)))
|
||||||
|
found.push(
|
||||||
|
`"${(a.textContent ?? '').trim().slice(0, 30)}" overlaps "${(b.textContent ?? '').trim().slice(0, 30)}" (${where(a)})`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
// Text cut by its own box (ellipsis or overflow hidden).
|
||||||
|
for (const e of document.querySelectorAll<HTMLElement>(
|
||||||
|
'button, .mdc-tab__text-label, th, mat-label, .mat-mdc-select-value-text',
|
||||||
|
))
|
||||||
|
if (
|
||||||
|
e.offsetParent &&
|
||||||
|
e.scrollWidth > e.clientWidth + 2 &&
|
||||||
|
getComputedStyle(e).overflow !== 'visible'
|
||||||
|
)
|
||||||
|
found.push(`text cut: "${(e.textContent ?? '').trim().slice(0, 40)}"`);
|
||||||
|
const header = document.querySelector('.header');
|
||||||
|
if (header && header.getBoundingClientRect().height > 90 && window.innerWidth > 720)
|
||||||
|
found.push(
|
||||||
|
`header taller than one row: ${Math.round(header.getBoundingClientRect().height)}px`,
|
||||||
|
);
|
||||||
|
for (const b of document.querySelectorAll<HTMLElement>(
|
||||||
|
'button:not(.mat-button-toggle-button), a.mdc-button, .badge, .mat-mdc-chip',
|
||||||
|
)) {
|
||||||
|
const label = (b.querySelector('.mdc-button__label') as HTMLElement | null) ?? b;
|
||||||
|
const lines =
|
||||||
|
label.getClientRects().length &&
|
||||||
|
Math.round(
|
||||||
|
label.getBoundingClientRect().height /
|
||||||
|
parseFloat(getComputedStyle(label).lineHeight || '20'),
|
||||||
|
);
|
||||||
|
if (b.offsetParent && lines > 1 && (label.textContent ?? '').trim().length < 40)
|
||||||
|
found.push(`label wraps: "${(label.textContent ?? '').trim()}"`);
|
||||||
|
}
|
||||||
|
const icons = [
|
||||||
|
...document.querySelectorAll('header mat-icon, header a, header button, header .title'),
|
||||||
|
];
|
||||||
|
for (let i = 0; i < icons.length; i++)
|
||||||
|
for (let j = i + 1; j < icons.length; j++)
|
||||||
|
if (
|
||||||
|
!icons[i].contains(icons[j]) &&
|
||||||
|
!icons[j].contains(icons[i]) &&
|
||||||
|
hit(box(icons[i]), box(icons[j]))
|
||||||
|
)
|
||||||
|
found.push(
|
||||||
|
`header: "${(icons[i].textContent ?? '').trim().slice(0, 20)}" overlaps "${(icons[j].textContent ?? '').trim().slice(0, 20)}"`,
|
||||||
|
);
|
||||||
|
return [...new Set(found)];
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -0,0 +1,670 @@
|
|||||||
|
import { readFileSync } from 'node:fs';
|
||||||
|
import { expect, Page, test } from '@playwright/test';
|
||||||
|
import { layoutProblems } from './layout';
|
||||||
|
|
||||||
|
/** 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
// The pages show only to someone signed in (the API itself answers everyone).
|
||||||
|
test.beforeEach(async ({ page }) => {
|
||||||
|
const signed = await page.request.post('/api/auth/login', {
|
||||||
|
form: { username: 'admin@isssteleon.mx', password: 'solo-para-pruebas' },
|
||||||
|
});
|
||||||
|
expect(signed.status()).toBe(204);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('login: the pages wait for a sign-in, and a wrong password says so', async ({ browser }) => {
|
||||||
|
const page = await browser.newPage({ baseURL: 'http://127.0.0.1:4310' });
|
||||||
|
await page.goto('/conectar');
|
||||||
|
await expect(page).toHaveURL(/\/login\?next=%2Fconectar/);
|
||||||
|
await expect(page.getByRole('heading', { name: 'Inicio de sesión' })).toBeVisible();
|
||||||
|
await page.getByRole('textbox', { name: 'Usuario' }).fill('admin@isssteleon.mx');
|
||||||
|
await page.getByRole('textbox', { name: 'Contraseña' }).fill('otra');
|
||||||
|
await page.getByRole('button', { name: 'Ingresar' }).click();
|
||||||
|
await expect(page.getByText('Usuario o contraseña incorrectos.')).toBeVisible();
|
||||||
|
await page.getByRole('textbox', { name: 'Contraseña' }).fill('solo-para-pruebas');
|
||||||
|
await page.getByRole('button', { name: 'Ingresar' }).click();
|
||||||
|
await expect(page).toHaveURL(/\/conectar$/);
|
||||||
|
await page.getByRole('button', { name: 'Cuenta' }).click();
|
||||||
|
await page.getByRole('menuitem', { name: 'Salir' }).click();
|
||||||
|
await expect(page).toHaveURL(/\/login/);
|
||||||
|
await page.close();
|
||||||
|
});
|
||||||
|
|
||||||
|
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;
|
||||||
|
// the card says it as the old one did: "<n> pacientes"
|
||||||
|
await expect(page.locator('[data-measure="CACU_EU7"] .kpi-value')).toHaveText(
|
||||||
|
`${count.toLocaleString('es-MX')} pacientes`,
|
||||||
|
);
|
||||||
|
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(/Página 2 de \d+, \d+ registros/)).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: 'Análisis de riesgos' }).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: 'Resumen' })).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();
|
||||||
|
// a node's caption: its kind, then its name
|
||||||
|
await page.locator('.node-caption', { hasText: 'Pacientes' }).click();
|
||||||
|
// drawn from a fixture, read back as a guided SQLite source: the dialog edits it
|
||||||
|
await expect(page.getByRole('button', { name: 'Editar conexión' })).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;
|
||||||
|
await page
|
||||||
|
.locator('.node-caption', { hasText: 'Traducir códigos' })
|
||||||
|
.filter({ has: page.locator('.name', { hasText: /^Citología$/ }) })
|
||||||
|
.click();
|
||||||
|
await expect(page.getByRole('heading', { name: /^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 hospital source 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: 'Supervivencia' })).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('Validación clínica');
|
||||||
|
expect(problems.filter((p) => !p.includes('409'))).toEqual([]);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('conectar: someone who knows nothing of databases connects the SQL Server with the dialog', async ({
|
||||||
|
page,
|
||||||
|
}) => {
|
||||||
|
const site = new URL((process.env['SITE_URL'] ?? '').replace(/^mssql\+pymssql/, 'http'));
|
||||||
|
const problems = watch(page);
|
||||||
|
await page.goto('/conectar');
|
||||||
|
await page.getByLabel('Nueva canalización').fill('asistente');
|
||||||
|
await page.getByLabel('Nueva canalización').press('Enter');
|
||||||
|
await page.getByRole('button', { name: 'Fuente de datos' }).click();
|
||||||
|
await expect(page.getByText('¿Dónde están los datos?')).toBeVisible();
|
||||||
|
await page.locator('[data-type="sqlserver"]').click();
|
||||||
|
await page.locator('[data-field="host"]').fill(site.hostname);
|
||||||
|
await page.locator('[data-field="database"]').fill(site.pathname.slice(1));
|
||||||
|
await page.locator('[data-field="user"]').fill(decodeURIComponent(site.username));
|
||||||
|
await page.locator('[data-field="password"]').fill(decodeURIComponent(site.password));
|
||||||
|
await page.getByRole('button', { name: 'Probar conexión' }).click();
|
||||||
|
await expect(page.getByText('Conexión correcta: 1 tabla.')).toBeVisible();
|
||||||
|
await page.locator('mat-select[data-field="table"]').click();
|
||||||
|
await page.getByRole('option', { name: 'ResultadoSubrogado' }).click();
|
||||||
|
await expect(page.getByText(/(Las primeras \d+ filas|La primera fila):/)).toBeVisible();
|
||||||
|
await page.getByLabel('Nombre de esta fuente').fill('Resultados');
|
||||||
|
await page.getByRole('button', { name: 'Guardar', exact: true }).last().click();
|
||||||
|
await expect(page.locator('.node-caption', { hasText: 'Resultados' })).toBeVisible();
|
||||||
|
// A wrong password says so in words, not a stack trace.
|
||||||
|
await page.getByRole('button', { name: 'Editar conexión' }).click();
|
||||||
|
await page.locator('[data-field="password"]').fill('not-it');
|
||||||
|
await page.getByRole('button', { name: 'Probar conexión' }).click();
|
||||||
|
await expect(page.getByText(/usuario o la contraseña no son correctos/)).toBeVisible();
|
||||||
|
await page.getByRole('button', { name: 'Cancelar' }).click();
|
||||||
|
await expect(page.getByRole('dialog')).toHaveCount(0);
|
||||||
|
await page.getByRole('button', { name: 'Guardar', exact: true }).click();
|
||||||
|
await expect(page.getByText('Versión 1 guardada.')).toBeVisible();
|
||||||
|
expect(problems).toEqual([]);
|
||||||
|
});
|
||||||
|
|
||||||
|
/** The old app's Indicadores tab as captured (tools/capture_pages.py): its headings from the
|
||||||
|
* opportunity section on, in order, and the kind of each plot (its traces' types). */
|
||||||
|
function captured(domain: string) {
|
||||||
|
const path = `../tests/fixtures/reference/${domain}/ui/pages.json`;
|
||||||
|
const tabs = JSON.parse(readFileSync(path, 'utf8')).tabs;
|
||||||
|
const items = (tabs['Indicadores'] ?? tabs['Resumen']) as any[]; // TEA's first tab is its summary
|
||||||
|
const from = items.findIndex((i) => i.text === 'Indicadores de oportunidad');
|
||||||
|
const old = items
|
||||||
|
.slice(from)
|
||||||
|
.filter((i) => ['h2', 'h3', 'plot'].includes(i.kind))
|
||||||
|
.filter((i) => !/^(cacu|cama|tea), /.test(i.text ?? '')); // a figure's machine caption
|
||||||
|
return domain === 'cacu' ? rearranged(old) : old;
|
||||||
|
}
|
||||||
|
/** CaCu follows the 4312 candidate where it left the old page: the route's times sit in the
|
||||||
|
* opportunity section, under its cards, and the cytology distribution is a table in the joint
|
||||||
|
* results card (its nested donut is not drawn any more). Nothing else of the old page moves. */
|
||||||
|
function rearranged(old: any[]) {
|
||||||
|
const route = old.findIndex((i) => i.text === 'Tiempos de la ruta del tamizaje');
|
||||||
|
const moved = old.splice(route, 2); // its heading and its plot
|
||||||
|
old.splice(
|
||||||
|
old.findIndex((i) => i.text === 'Indicadores clínicos'),
|
||||||
|
0,
|
||||||
|
moved[0],
|
||||||
|
moved[1],
|
||||||
|
);
|
||||||
|
// the nested donut and the chart titled "TOTAL por escenario clínico" (now a figure of the
|
||||||
|
// cytology section, under another title) are not headings of this page any more
|
||||||
|
return old.filter(
|
||||||
|
(i) =>
|
||||||
|
!/^(Distribución de resultados, |TOTAL por escenario clínico|Por resultado de la citología, |Resultado de la biopsia, )/.test(
|
||||||
|
i.text ?? '',
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
/** Sections this platform adds to an old page, by domain, in the order they appear. The old
|
||||||
|
* headings still have to appear, in their order; nothing else may appear (a figure's own
|
||||||
|
* `h3.figure-title` inside a measure's card is the card's, not a section). */
|
||||||
|
const ADDED: Record<string, string[]> = {
|
||||||
|
cacu: [
|
||||||
|
'Resultados de citología, VPH y biopsia',
|
||||||
|
'Resultados de VPH por genotipo',
|
||||||
|
'Resultados de biopsia cervical',
|
||||||
|
'Pacientes evaluadas por resultado de VPH (última muestra con resultado)',
|
||||||
|
'VPP tras colposcopía registrada',
|
||||||
|
],
|
||||||
|
};
|
||||||
|
/** The page's headings against the old page's: the old ones in order, plus only what ADDED names. */
|
||||||
|
function oldThenAdded(actual: string[], old: string[], added: string[]) {
|
||||||
|
const extra: string[] = [];
|
||||||
|
let found = 0;
|
||||||
|
for (const heading of actual) {
|
||||||
|
if (found < old.length && heading === old[found]) found++;
|
||||||
|
else extra.push(heading);
|
||||||
|
}
|
||||||
|
return { allOldInOrder: found === old.length, extra, added };
|
||||||
|
}
|
||||||
|
const period = (text: string) => text.replace(/, \d{4}-(S[12]|\d{2})$/, ', <periodo>');
|
||||||
|
const kindOf = (types: string[]) => [...new Set(types)].sort().join('+');
|
||||||
|
|
||||||
|
for (const domain of ['cacu', 'cama', 'tea']) {
|
||||||
|
test(`indicadores ${domain}: the old page's headings, in order, and the same kinds of plots`, async ({
|
||||||
|
page,
|
||||||
|
}) => {
|
||||||
|
const old = captured(domain);
|
||||||
|
await page.goto(`/indicadores/${domain}`);
|
||||||
|
const tab = page.locator('app-tab-indicadores');
|
||||||
|
await expect(tab.getByRole('heading', { name: 'Indicadores clínicos' })).toBeVisible();
|
||||||
|
await expect(tab.locator('app-loading')).toHaveCount(0, { timeout: 5 * 60_000 });
|
||||||
|
// textContent: a heading inside a collapsed section (CaCu's original confirmation measure)
|
||||||
|
// is still a heading of the page, though the browser gives it no rendered text.
|
||||||
|
const headings = await tab
|
||||||
|
.locator('h2, h3:not(.figure-title)')
|
||||||
|
.evaluateAll((els) => els.map((e) => (e.textContent ?? '').replace(/\s+/g, ' ').trim()));
|
||||||
|
const from = headings.indexOf('Indicadores de oportunidad');
|
||||||
|
const seen = oldThenAdded(
|
||||||
|
headings.slice(from).map(period),
|
||||||
|
old.filter((i) => i.kind !== 'plot').map((i) => period(i.text)),
|
||||||
|
ADDED[domain] ?? [],
|
||||||
|
);
|
||||||
|
expect(seen.allOldInOrder).toBe(true);
|
||||||
|
expect(seen.extra).toEqual(seen.added);
|
||||||
|
// Each figure drawn is one of the old kinds (a figure with no data in the period is named).
|
||||||
|
const drawn = await tab
|
||||||
|
.locator('.js-plotly-plot')
|
||||||
|
.evaluateAll((els) =>
|
||||||
|
els.map((e: any) => (e.data ?? []).map((t: any) => t.type ?? 'scatter')),
|
||||||
|
);
|
||||||
|
const kinds = new Set(
|
||||||
|
old.filter((i) => i.kind === 'plot').map((i) => kindOf(i.traces.map((t: any) => t.type))),
|
||||||
|
);
|
||||||
|
for (const types of drawn) expect(kinds).toContain(kindOf(types));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const domain of ['cacu', 'cama', 'tea']) {
|
||||||
|
test(`trazabilidad ${domain}: the old tab's panels, in order, and the same kinds of plots`, async ({
|
||||||
|
page,
|
||||||
|
}) => {
|
||||||
|
const tabs = JSON.parse(
|
||||||
|
readFileSync(`../tests/fixtures/reference/${domain}/ui/pages.json`, 'utf8'),
|
||||||
|
).tabs;
|
||||||
|
const old = (tabs['Trazabilidad'] as any[]).filter((i) =>
|
||||||
|
['h2', 'h3', 'plot'].includes(i.kind),
|
||||||
|
);
|
||||||
|
await page.goto(`/indicadores/${domain}`);
|
||||||
|
await page.getByRole('tab', { name: 'Trazabilidad' }).click();
|
||||||
|
const tab = page.locator('app-tab-trazabilidad');
|
||||||
|
await expect(tab.getByRole('heading', { name: 'Filtros' })).toBeVisible();
|
||||||
|
await expect(tab.locator('app-loading')).toHaveCount(0, { timeout: 5 * 60_000 });
|
||||||
|
const headings = await tab
|
||||||
|
.locator('h2, h3')
|
||||||
|
.evaluateAll((els) => els.map((e) => (e as HTMLElement).innerText.trim()));
|
||||||
|
expect(headings).toEqual(old.filter((i) => i.kind !== 'plot').map((i) => i.text));
|
||||||
|
const drawn = await tab
|
||||||
|
.locator('.js-plotly-plot')
|
||||||
|
.evaluateAll((els) =>
|
||||||
|
els.map((e: any) => (e.data ?? []).map((t: any) => t.type ?? 'scatter')),
|
||||||
|
);
|
||||||
|
const kinds = new Set(
|
||||||
|
old.filter((i) => i.kind === 'plot').map((i) => kindOf(i.traces.map((t: any) => t.type))),
|
||||||
|
);
|
||||||
|
for (const types of drawn) expect(kinds).toContain(kindOf(types));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const domain of ['cacu', 'cama', 'tea']) {
|
||||||
|
test(`datos y definiciones ${domain}: the old tab's headings and an indicator that opens`, async ({
|
||||||
|
page,
|
||||||
|
}) => {
|
||||||
|
const tabs = JSON.parse(
|
||||||
|
readFileSync(`../tests/fixtures/reference/${domain}/ui/pages.json`, 'utf8'),
|
||||||
|
).tabs;
|
||||||
|
const old = (tabs['Datos y definiciones'] as any[])
|
||||||
|
.filter((i) => ['h2', 'h3'].includes(i.kind))
|
||||||
|
.map((i) => i.text);
|
||||||
|
await page.goto(`/indicadores/${domain}`);
|
||||||
|
await page.getByRole('tab', { name: 'Datos y definiciones' }).click();
|
||||||
|
const tab = page.locator('app-tab-definiciones');
|
||||||
|
await expect(tab.getByRole('heading', { name: 'Catálogo de indicadores' })).toBeVisible();
|
||||||
|
const headings = await tab
|
||||||
|
.locator('h2, h3')
|
||||||
|
.evaluateAll((els) => els.map((e) => (e as HTMLElement).innerText.trim()));
|
||||||
|
expect(headings).toEqual(old);
|
||||||
|
await tab.locator('summary').first().click();
|
||||||
|
await expect(
|
||||||
|
tab.getByRole('heading', { name: 'Tipos de periodo admitidos' }).first(),
|
||||||
|
).toBeVisible();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
test('indicadores cacu: the route in three readings, the new sections in theirs, and no as-of asked', async ({
|
||||||
|
page,
|
||||||
|
}) => {
|
||||||
|
const asked: string[] = [];
|
||||||
|
page.on('request', (r) => r.url().includes('as-of') && asked.push(r.url()));
|
||||||
|
await page.goto('/indicadores/cacu');
|
||||||
|
const tab = page.locator('app-tab-indicadores');
|
||||||
|
await expect(tab.getByRole('heading', { name: 'Indicadores clínicos' })).toBeVisible();
|
||||||
|
await expect(tab.locator('app-loading')).toHaveCount(0, { timeout: 5 * 60_000 });
|
||||||
|
|
||||||
|
// cumulative (the default), step by step with its warning and quartiles, and by ICD-10
|
||||||
|
// the route's times are in the opportunity section, after its cards and before the clinical ones
|
||||||
|
const opportunity = tab.locator('section.opportunity');
|
||||||
|
await expect(opportunity.locator('.route-card')).toBeVisible();
|
||||||
|
await expect(tab.locator('section.clinical-page .route-card')).toHaveCount(0);
|
||||||
|
expect(
|
||||||
|
await opportunity.evaluate((el) => {
|
||||||
|
const kpis = el.querySelector('.kpis')!;
|
||||||
|
const card = el.querySelector('.route-card')!;
|
||||||
|
return !!(kpis.compareDocumentPosition(card) & Node.DOCUMENT_POSITION_FOLLOWING);
|
||||||
|
}),
|
||||||
|
).toBe(true);
|
||||||
|
await expect(tab.getByRole('radio', { name: 'Acumulado desde la toma' })).toBeVisible();
|
||||||
|
await tab.getByRole('radio', { name: 'Por pasos' }).click();
|
||||||
|
// by steps: independent bars from zero in a table, every step kept, and the medians not added
|
||||||
|
const steps = tab.getByRole('table', { name: 'Tiempos por tramo de la ruta del tamizaje' });
|
||||||
|
await expect(steps).toBeVisible();
|
||||||
|
await expect(steps.locator('tbody tr')).toHaveCount(4);
|
||||||
|
await expect(tab.getByText('por lo que las medianas no se suman')).toBeVisible();
|
||||||
|
await expect(opportunity.locator('.js-plotly-plot')).toHaveCount(0);
|
||||||
|
await tab.getByRole('radio', { name: 'Desglose por CIE-10' }).click();
|
||||||
|
await expect(tab.getByText('no confirma un vínculo clínico')).toBeVisible();
|
||||||
|
await tab.getByRole('radio', { name: 'Acumulado desde la toma' }).click();
|
||||||
|
await expect(tab.getByText('Las marcas indican el primer y tercer cuartil')).toBeVisible();
|
||||||
|
await expect(tab.getByRole('table', { name: 'Tiempos de la ruta del tamizaje' })).toBeVisible();
|
||||||
|
|
||||||
|
// the sections of the new measures: each one in the place of its subject
|
||||||
|
for (const measure of [
|
||||||
|
'CACU_VPH_GENOTIPO',
|
||||||
|
'CACU_VPH',
|
||||||
|
'CACU_BIOPSIA_RESULTADOS',
|
||||||
|
'CACU_VPP_COLPOSCOPIA',
|
||||||
|
])
|
||||||
|
await expect(tab.locator(`[data-measure="${measure}"]`)).toBeVisible();
|
||||||
|
// a PPV says what it is and what it is not
|
||||||
|
await expect(
|
||||||
|
tab
|
||||||
|
.locator('[data-measure="CACU_VPP_COLPOSCOPIA"]')
|
||||||
|
.getByText('no un vínculo clínico confirmado'),
|
||||||
|
).toBeVisible();
|
||||||
|
// the joint card: cytology and HPV side by side, the biopsy below across the width, no nested donut
|
||||||
|
const joint = tab.locator('.results-card');
|
||||||
|
const [cyto, hpv, biopsy] = await Promise.all(
|
||||||
|
['CACU_EU7', 'CACU_VPH_GENOTIPO', 'CACU_BIOPSIA_RESULTADOS'].map((m) =>
|
||||||
|
joint.locator(`section[data-measure="${m}"]`).boundingBox(),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
expect(Math.abs(cyto!.y - hpv!.y)).toBeLessThan(2);
|
||||||
|
expect(cyto!.x).toBeLessThan(hpv!.x);
|
||||||
|
expect(biopsy!.y).toBeGreaterThan(cyto!.y + cyto!.height - 1);
|
||||||
|
expect(biopsy!.width).toBeGreaterThan(cyto!.width * 1.8);
|
||||||
|
await expect(
|
||||||
|
joint.getByRole('table', { name: 'Distribución de resultados citológicos' }),
|
||||||
|
).toBeVisible();
|
||||||
|
await expect(joint.getByText('Menor que LIEAG')).toBeVisible();
|
||||||
|
await expect(joint.getByText('LIEAG o más')).toBeVisible();
|
||||||
|
// three HPV categories are not listed, and the page says so only when it has such reports
|
||||||
|
const hpvRows = await joint
|
||||||
|
.locator('section[data-measure="CACU_VPH_GENOTIPO"] tbody th')
|
||||||
|
.allInnerTexts();
|
||||||
|
for (const hidden of ['genotipificación incompleta', 'Indeterminado', 'No clasificable'])
|
||||||
|
expect(hpvRows.join('|')).not.toContain(hidden);
|
||||||
|
// the cytology column reads one way at a time: the general table, or the clinical scenarios
|
||||||
|
const cytology = joint.locator('section[data-measure="CACU_EU7"]');
|
||||||
|
await expect(cytology.getByRole('radio', { name: 'Distribución general' })).toBeChecked();
|
||||||
|
await expect(cytology.locator('.js-plotly-plot')).toHaveCount(0);
|
||||||
|
await cytology.getByRole('radio', { name: 'Por escenario clínico' }).click();
|
||||||
|
await expect(cytology.locator('.js-plotly-plot')).toBeVisible();
|
||||||
|
await expect(cytology.getByRole('table')).toHaveCount(0);
|
||||||
|
await expect(
|
||||||
|
cytology.getByText('estatus de seguimiento de cada paciente al inicio del periodo'),
|
||||||
|
).toBeVisible();
|
||||||
|
await expect(cytology.locator('.legend li')).toHaveCount(6);
|
||||||
|
await cytology.getByRole('radio', { name: 'Distribución general' }).click();
|
||||||
|
await expect(
|
||||||
|
cytology.getByRole('table', { name: 'Distribución de resultados citológicos' }),
|
||||||
|
).toBeVisible();
|
||||||
|
await expect(
|
||||||
|
joint.locator('section[data-measure="CACU_VPH_GENOTIPO"] .js-plotly-plot'),
|
||||||
|
).toHaveCount(0);
|
||||||
|
await expect(tab.getByText('TOTAL por escenario clínico')).toHaveCount(0);
|
||||||
|
// the confirmation card: one perspective at a time, each with its own PPV and its readings
|
||||||
|
const confirmation = tab.locator('.confirmation-card');
|
||||||
|
await expect(
|
||||||
|
confirmation.getByRole('heading', { name: 'Tasa de confirmación histopatológica' }),
|
||||||
|
).toBeVisible();
|
||||||
|
await expect(confirmation.getByText('No son tasas de referencias emitidas')).toBeVisible();
|
||||||
|
await expect(confirmation.getByRole('radio', { name: 'Colposcopía', exact: true })).toBeChecked();
|
||||||
|
for (const [perspective, measure, title] of [
|
||||||
|
['Colposcopía', 'CACU_VPP_COLPOSCOPIA', 'VPP tras colposcopía registrada'],
|
||||||
|
['Biopsia', 'CACU_VPP_BIOPSIA', 'VPP tras biopsia registrada'],
|
||||||
|
]) {
|
||||||
|
await confirmation.getByRole('radio', { name: perspective, exact: true }).click();
|
||||||
|
await expect(confirmation.locator('app-ppv-card')).toHaveCount(1);
|
||||||
|
const ppv = confirmation.locator(`app-ppv-card[data-measure="${measure}"]`);
|
||||||
|
await expect(ppv.getByRole('heading', { name: title })).toBeVisible();
|
||||||
|
await expect(ppv.locator('.measure-score')).toContainText('IC 95 %');
|
||||||
|
await expect(ppv.getByText('no un vínculo clínico confirmado')).toBeVisible();
|
||||||
|
await expect(ppv.getByRole('radio', { name: 'Total' })).toBeChecked();
|
||||||
|
await expect(ppv.locator('.js-plotly-plot')).toHaveCount(1);
|
||||||
|
await expect(ppv.locator('.ppv-rows')).toHaveCount(0);
|
||||||
|
for (const mode of [
|
||||||
|
'Citología previa',
|
||||||
|
'VPH previo',
|
||||||
|
'Nivel de histología',
|
||||||
|
'Ronda de tamizaje',
|
||||||
|
]) {
|
||||||
|
await ppv.getByRole('radio', { name: mode, exact: true }).click();
|
||||||
|
await expect(ppv.getByRole('table', { name: mode })).toBeVisible();
|
||||||
|
await expect(ppv.locator('.js-plotly-plot')).toHaveCount(0);
|
||||||
|
await expect(ppv.locator('.ppv-row:not(.ppv-head)').first()).toContainText('/');
|
||||||
|
// the score line and the methodological note stay in view in every reading
|
||||||
|
await expect(ppv.locator('.measure-score')).toContainText('IC 95 %');
|
||||||
|
await expect(ppv.getByText('no un vínculo clínico confirmado')).toBeVisible();
|
||||||
|
}
|
||||||
|
await ppv.getByRole('radio', { name: 'Total' }).click();
|
||||||
|
await expect(ppv.locator('.js-plotly-plot')).toHaveCount(1);
|
||||||
|
}
|
||||||
|
// the biopsy requests are one more reading of the biopsy perspective, with their own heading
|
||||||
|
const biopsyPpv = confirmation.locator('app-ppv-card[data-measure="CACU_VPP_BIOPSIA"]');
|
||||||
|
await expect(
|
||||||
|
biopsyPpv.getByRole('radio', { name: 'Solicitudes de biopsia', exact: true }),
|
||||||
|
).toBeVisible();
|
||||||
|
await biopsyPpv.getByRole('radio', { name: 'Solicitudes de biopsia', exact: true }).click();
|
||||||
|
await expect(
|
||||||
|
biopsyPpv.getByRole('heading', { name: 'Confirmación por solicitudes de biopsia registradas' }),
|
||||||
|
).toBeVisible();
|
||||||
|
await expect(biopsyPpv.getByRole('heading', { name: 'VPP tras biopsia registrada' })).toHaveCount(
|
||||||
|
0,
|
||||||
|
);
|
||||||
|
await expect(biopsyPpv.locator('.measure-score')).toContainText(
|
||||||
|
'solicitudes registradas (no pacientes)',
|
||||||
|
);
|
||||||
|
await expect(
|
||||||
|
biopsyPpv.getByText('La tasa de referencias emitidas no está disponible'),
|
||||||
|
).toBeVisible();
|
||||||
|
await expect(biopsyPpv.getByText('no se pide un corte histórico (as-of)')).toBeVisible();
|
||||||
|
await expect(biopsyPpv.getByRole('table', { name: 'Solicitudes de biopsia' })).toBeVisible();
|
||||||
|
await expect(biopsyPpv.locator('.ppv-row:not(.ppv-head)').first()).toContainText('/');
|
||||||
|
await expect(biopsyPpv.getByText('Pendientes:')).toContainText('Registros fusionados ambiguos');
|
||||||
|
await expect(biopsyPpv.locator('.js-plotly-plot')).toHaveCount(0);
|
||||||
|
await biopsyPpv.getByRole('radio', { name: 'Total', exact: true }).click();
|
||||||
|
await expect(
|
||||||
|
biopsyPpv.getByRole('heading', { name: 'VPP tras biopsia registrada' }),
|
||||||
|
).toBeVisible();
|
||||||
|
// the original confirmation measure is not shown on this tab any more
|
||||||
|
await expect(confirmation.locator('details')).toHaveCount(0);
|
||||||
|
await expect(tab.getByText('medida original')).toHaveCount(0);
|
||||||
|
await expect(tab.getByText('Denominador: ')).toHaveCount(0);
|
||||||
|
// the tabs are short and the full explanation is in the tab's content
|
||||||
|
await confirmation.getByRole('radio', { name: 'Colposcopía', exact: true }).click();
|
||||||
|
const colposcopy = confirmation.locator('app-ppv-card');
|
||||||
|
await colposcopy.getByRole('radio', { name: 'Citología previa', exact: true }).click();
|
||||||
|
await expect(colposcopy.locator('.ppv-caption').first()).toContainText('asociada por fechas');
|
||||||
|
await expect(colposcopy.getByRole('radio')).toHaveCount(5);
|
||||||
|
const tops = await colposcopy
|
||||||
|
.locator('mat-button-toggle')
|
||||||
|
.evaluateAll((els) => new Set(els.map((x) => Math.round(x.getBoundingClientRect().top))).size);
|
||||||
|
expect(tops).toBe(1); // one line on desktop
|
||||||
|
// the patients by HPV result: the whole as a donut, then one breakdown at a time
|
||||||
|
const vph = tab.locator('app-ppv-card[data-measure="CACU_VPH"]');
|
||||||
|
await expect(vph.locator('.measure-score')).toContainText('pacientes');
|
||||||
|
await expect(vph.getByText('Es distinto de los reportes de VPH por genotipo')).toBeVisible();
|
||||||
|
await expect(vph.getByRole('radio', { name: 'Total' })).toBeChecked();
|
||||||
|
await expect(vph.locator('.js-plotly-plot')).toHaveCount(1);
|
||||||
|
for (const mode of [
|
||||||
|
'Por grupo de edad',
|
||||||
|
'Por estatus de seguimiento',
|
||||||
|
'Por genotipo',
|
||||||
|
'Por tamizaje inicial o subsecuente',
|
||||||
|
]) {
|
||||||
|
await vph.getByRole('radio', { name: mode, exact: true }).click();
|
||||||
|
await expect(vph.getByRole('table', { name: mode })).toBeVisible();
|
||||||
|
await expect(vph.locator('.js-plotly-plot')).toHaveCount(0);
|
||||||
|
await expect(vph.locator('.ppv-row:not(.ppv-head)').first()).toContainText('/');
|
||||||
|
await expect(vph.locator('.measure-score')).toContainText('pacientes');
|
||||||
|
}
|
||||||
|
await vph.getByRole('radio', { name: 'Total' }).click();
|
||||||
|
await expect(vph.locator('.js-plotly-plot')).toHaveCount(1);
|
||||||
|
// the two HPV measures are told apart: reports against patients
|
||||||
|
await expect(tab.locator('[data-measure="CACU_VPH"]')).toContainText(
|
||||||
|
'Pacientes evaluadas por resultado de VPH',
|
||||||
|
);
|
||||||
|
await expect(tab.locator('[data-measure="CACU_VPH_GENOTIPO"]')).toContainText(
|
||||||
|
'Cuenta reportes, no pacientes',
|
||||||
|
);
|
||||||
|
expect(asked).toEqual([]);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('riesgos cacu: age and stages on the list, its filters, its exports, and the record', async ({
|
||||||
|
page,
|
||||||
|
}) => {
|
||||||
|
const problems = watch(page);
|
||||||
|
await page.goto('/indicadores/cacu');
|
||||||
|
await page.getByRole('tab', { name: 'Análisis de riesgos' }).click();
|
||||||
|
const rows = page.locator('table.worklist tbody tr:not(.stage-panel)');
|
||||||
|
await expect(rows.first().locator('a')).toBeVisible();
|
||||||
|
const total = async () =>
|
||||||
|
Number(
|
||||||
|
/(\d+) registros/.exec((await page.locator('.pager .muted').innerText()) ?? '')?.[1] ?? 0,
|
||||||
|
);
|
||||||
|
|
||||||
|
// her age at the cut-off, and the stages: a compact line with a chevron that opens the panel
|
||||||
|
await expect(page.getByRole('columnheader', { name: 'Edad', exact: true })).toBeVisible();
|
||||||
|
await expect(rows.first().locator('app-stages .node')).toHaveCount(5);
|
||||||
|
await rows.first().getByRole('button', { name: 'Mostrar etapas' }).click();
|
||||||
|
const panel = page.locator('tr.stage-panel');
|
||||||
|
await expect(panel).toContainText('Toma de muestra');
|
||||||
|
await expect(panel).toContainText('Desde anterior');
|
||||||
|
await expect(panel.locator('.node')).toHaveCount(5);
|
||||||
|
await rows.first().getByRole('button', { name: 'Ocultar etapas' }).click();
|
||||||
|
await expect(panel).toHaveCount(0);
|
||||||
|
|
||||||
|
// the age filters apply before the page is cut; the name search of Rebuild is still there
|
||||||
|
const all = await total();
|
||||||
|
await page.getByLabel('Edad mínima').fill('200');
|
||||||
|
await expect(page.getByText('Indique edades enteras entre 0 y 150')).toBeVisible();
|
||||||
|
await page.getByLabel('Edad mínima').fill('45');
|
||||||
|
await expect(async () => expect(await total()).toBeLessThan(all)).toPass();
|
||||||
|
await expect(page.getByRole('searchbox', { name: 'Buscar paciente' })).toBeVisible();
|
||||||
|
await page.getByRole('button', { name: 'Limpiar edades' }).click();
|
||||||
|
await expect(async () => expect(await total()).toBe(all)).toPass();
|
||||||
|
|
||||||
|
// the whole query, as the two files
|
||||||
|
const [pdf] = await Promise.all([
|
||||||
|
page.waitForEvent('download'),
|
||||||
|
page.getByRole('button', { name: 'Exportar PDF' }).click(),
|
||||||
|
]);
|
||||||
|
expect(pdf.suggestedFilename()).toBe('cacu-reporte.pdf');
|
||||||
|
expect(
|
||||||
|
readFileSync((await pdf.path())!)
|
||||||
|
.subarray(0, 5)
|
||||||
|
.toString(),
|
||||||
|
).toBe('%PDF-');
|
||||||
|
const [xlsx] = await Promise.all([
|
||||||
|
page.waitForEvent('download'),
|
||||||
|
page.getByRole('button', { name: 'Exportar Excel (.xlsx)' }).click(),
|
||||||
|
]);
|
||||||
|
expect(xlsx.suggestedFilename()).toBe('cacu-seguimiento.xlsx');
|
||||||
|
expect(
|
||||||
|
readFileSync((await xlsx.path())!)
|
||||||
|
.subarray(0, 2)
|
||||||
|
.toString(),
|
||||||
|
).toBe('PK');
|
||||||
|
|
||||||
|
// her record: age, the detailed stages, the scales, and the file
|
||||||
|
await rows.first().locator('a').first().click();
|
||||||
|
await expect(page.getByRole('heading', { level: 1 })).toContainText('Edad:');
|
||||||
|
await expect(page.locator('app-paciente app-stages .node')).toHaveCount(5);
|
||||||
|
await expect(page.getByText('Desde toma:').first()).toBeVisible();
|
||||||
|
await expect(page.getByText('Riesgo inmediato')).toBeVisible();
|
||||||
|
await expect(page.getByText('Riesgo a 5 años')).toBeVisible();
|
||||||
|
const [ficha] = await Promise.all([
|
||||||
|
page.waitForEvent('download'),
|
||||||
|
page.getByRole('button', { name: 'Exportar ficha PDF' }).click(),
|
||||||
|
]);
|
||||||
|
expect(
|
||||||
|
readFileSync((await ficha.path())!)
|
||||||
|
.subarray(0, 5)
|
||||||
|
.toString(),
|
||||||
|
).toBe('%PDF-');
|
||||||
|
expect(problems).toEqual([]);
|
||||||
|
});
|
||||||
|
|
||||||
|
/** Waits for a page's data: no loading indicator left. */
|
||||||
|
async function loaded(page: Page): Promise<void> {
|
||||||
|
await expect(page.locator('app-loading, mat-progress-bar')).toHaveCount(0, {
|
||||||
|
timeout: 5 * 60_000,
|
||||||
|
});
|
||||||
|
await page.waitForTimeout(1000); // plots finish drawing
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const width of [1440, 820]) {
|
||||||
|
test(`layout at ${width} px: no page has overlapping, clipped or wrapped labels`, async ({
|
||||||
|
page,
|
||||||
|
}) => {
|
||||||
|
await page.setViewportSize({ width, height: 1000 });
|
||||||
|
const found: string[] = [];
|
||||||
|
const check = async (where: string) => {
|
||||||
|
await loaded(page);
|
||||||
|
for (const p of await layoutProblems(page)) found.push(`${where}: ${p}`);
|
||||||
|
};
|
||||||
|
for (const domain of ['cacu', 'cama', 'tea']) {
|
||||||
|
await page.goto(`/indicadores/${domain}`);
|
||||||
|
const tabs = page.locator('.mdc-tab');
|
||||||
|
for (let i = 0; i < (await tabs.count()); i++) {
|
||||||
|
await tabs.nth(i).click();
|
||||||
|
await check(`${domain} tab ${i + 1}`);
|
||||||
|
}
|
||||||
|
// the record of the risk list's first patient
|
||||||
|
await tabs.nth(2).click();
|
||||||
|
await loaded(page);
|
||||||
|
const first = page.locator('table a[href*="/pacientes/"]').first();
|
||||||
|
if (await first.count()) {
|
||||||
|
await first.click();
|
||||||
|
await check(`${domain} record`);
|
||||||
|
}
|
||||||
|
await page.goto(`/gobernanza/${domain}`);
|
||||||
|
await check(`${domain} gobernanza`);
|
||||||
|
}
|
||||||
|
await page.goto('/conectar');
|
||||||
|
await check('conectar');
|
||||||
|
// a pipeline open, a node chosen, in both of its panel's tabs
|
||||||
|
await page.locator('.pipelines [mat-list-item]').first().click();
|
||||||
|
await page.locator('.node-caption').first().dispatchEvent('click'); // the canvas may draw it off-screen
|
||||||
|
await check('conectar node');
|
||||||
|
await page.getByRole('tab', { name: 'Avanzado' }).click();
|
||||||
|
await check('conectar node, advanced');
|
||||||
|
await page.goto('/revision');
|
||||||
|
const tabs = page.locator('.mdc-tab');
|
||||||
|
for (let i = 0; i < (await tabs.count()); i++) {
|
||||||
|
await tabs.nth(i).click();
|
||||||
|
await check(`revision tab ${i + 1}`);
|
||||||
|
}
|
||||||
|
expect(found).toEqual([]);
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"$schema": "node_modules/ng-openapi-gen/ng-openapi-gen-schema.json",
|
||||||
|
"input": "openapi.json",
|
||||||
|
"output": "src/app/api",
|
||||||
|
"ignoreUnusedModels": false
|
||||||
|
}
|
||||||
+6318
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,25 @@
|
|||||||
|
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,
|
||||||
|
},
|
||||||
|
});
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ "/api": { "target": "http://127.0.0.1:5711", "pathRewrite": { "^/api": "" } } }
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// `/api` to the API the e2e run started (API_URL).
|
||||||
|
export default { '/api': { target: process.env.API_URL, pathRewrite: { '^/api': '' } } };
|
||||||
@@ -1,5 +1,10 @@
|
|||||||
|
// This file was generated by running 'ng generate @angular/material:theme-color'.
|
||||||
|
// Proceed with caution if making changes to this file.
|
||||||
|
|
||||||
@use 'sass:map';
|
@use 'sass:map';
|
||||||
@use '@angular/material' as mat;
|
@use '@angular/material' as mat;
|
||||||
|
|
||||||
|
// Note: Color palettes are generated from primary: #a8c243, tertiary: #5f9ea0
|
||||||
$_palettes: (
|
$_palettes: (
|
||||||
primary: (
|
primary: (
|
||||||
0: #000000,
|
0: #000000,
|
||||||
|
|||||||
@@ -1,15 +1,27 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provides the ApiConfiguration configuration object with a given root URL.
|
||||||
|
*/
|
||||||
export function provideApiConfiguration(rootUrl: string) {
|
export function provideApiConfiguration(rootUrl: string) {
|
||||||
var config = new ApiConfiguration();
|
var config = new ApiConfiguration();
|
||||||
config.rootUrl = rootUrl;
|
config.rootUrl = rootUrl;
|
||||||
return {
|
return {
|
||||||
provide: ApiConfiguration,
|
provide: ApiConfiguration,
|
||||||
useValue: config,
|
useValue: config
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Global configuration
|
||||||
|
*/
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class ApiConfiguration {
|
export class ApiConfiguration {
|
||||||
rootUrl: string = '';
|
rootUrl: string = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+39
-38
@@ -1,63 +1,64 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable, firstValueFrom } from 'rxjs';
|
import { Observable, firstValueFrom } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { ApiConfiguration } from './api-configuration';
|
import { ApiConfiguration } from './api-configuration';
|
||||||
import { StrictHttpResponse } from './strict-http-response';
|
import { StrictHttpResponse } from './strict-http-response';
|
||||||
export type ApiFnOptional<P, R> = (
|
|
||||||
http: HttpClient,
|
export type ApiFnOptional<P, R> = (http: HttpClient, rootUrl: string, params?: P, context?: HttpContext) => Observable<StrictHttpResponse<R>>;
|
||||||
rootUrl: string,
|
export type ApiFnRequired<P, R> = (http: HttpClient, rootUrl: string, params: P, context?: HttpContext) => Observable<StrictHttpResponse<R>>;
|
||||||
params?: P,
|
|
||||||
context?: HttpContext,
|
/**
|
||||||
) => Observable<StrictHttpResponse<R>>;
|
* Helper service to call API functions directly
|
||||||
export type ApiFnRequired<P, R> = (
|
*/
|
||||||
http: HttpClient,
|
|
||||||
rootUrl: string,
|
|
||||||
params: P,
|
|
||||||
context?: HttpContext,
|
|
||||||
) => Observable<StrictHttpResponse<R>>;
|
|
||||||
@Injectable({ providedIn: 'root' })
|
@Injectable({ providedIn: 'root' })
|
||||||
export class Api {
|
export class Api {
|
||||||
constructor(
|
constructor(
|
||||||
private config: ApiConfiguration,
|
private config: ApiConfiguration,
|
||||||
private http: HttpClient,
|
private http: HttpClient
|
||||||
) {}
|
) {
|
||||||
|
}
|
||||||
|
|
||||||
private _rootUrl?: string;
|
private _rootUrl?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the root url for API operations. If not set directly here,
|
||||||
|
* will fallback to `ApiConfiguration.rootUrl`.
|
||||||
|
*/
|
||||||
get rootUrl(): string {
|
get rootUrl(): string {
|
||||||
return this._rootUrl || this.config.rootUrl;
|
return this._rootUrl || this.config.rootUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the root URL for API operations
|
||||||
|
*/
|
||||||
set rootUrl(rootUrl: string) {
|
set rootUrl(rootUrl: string) {
|
||||||
this._rootUrl = rootUrl;
|
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: ApiFnRequired<P, R>, params: P, context?: HttpContext): Promise<R>;
|
||||||
invoke<P, R>(fn: ApiFnOptional<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>(
|
async invoke<P, R>(fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>, params: P, context?: HttpContext): Promise<R> {
|
||||||
fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>,
|
|
||||||
params: P,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Promise<R> {
|
|
||||||
const resp = this.invoke$Response(fn, params, context);
|
const resp = this.invoke$Response(fn, params, context);
|
||||||
return (await resp).body;
|
return (await resp).body;
|
||||||
}
|
}
|
||||||
invoke$Response<P, R>(
|
|
||||||
fn: ApiFnRequired<P, R>,
|
/**
|
||||||
params: P,
|
* Executes an API call, returning the entire response
|
||||||
context?: HttpContext,
|
*/
|
||||||
): Promise<StrictHttpResponse<R>>;
|
invoke$Response<P, R>(fn: ApiFnRequired<P, R>, params: P, context?: HttpContext): Promise<StrictHttpResponse<R>>;
|
||||||
invoke$Response<P, R>(
|
invoke$Response<P, R>(fn: ApiFnOptional<P, R>, params?: P, context?: HttpContext): Promise<StrictHttpResponse<R>>;
|
||||||
fn: ApiFnOptional<P, R>,
|
invoke$Response<P, R>(fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>, params: P, context?: HttpContext): Promise<StrictHttpResponse<R>> {
|
||||||
params?: P,
|
const obs = fn(this.http, this.rootUrl, params, context)
|
||||||
context?: HttpContext,
|
.pipe(
|
||||||
): Promise<StrictHttpResponse<R>>;
|
filter(r => r instanceof HttpResponse),
|
||||||
invoke$Response<P, R>(
|
map(r => r as StrictHttpResponse<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);
|
return firstValueFrom(obs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,27 +1,32 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Login } from '../../models/login';
|
import { Login } from '../../models/login';
|
||||||
|
|
||||||
export interface AuthCookieLogin$Params {
|
export interface AuthCookieLogin$Params {
|
||||||
body: Login;
|
body: Login
|
||||||
}
|
}
|
||||||
export function authCookieLogin(
|
|
||||||
http: HttpClient,
|
export function authCookieLogin(http: HttpClient, rootUrl: string, params: AuthCookieLogin$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
|
||||||
rootUrl: string,
|
|
||||||
params: AuthCookieLogin$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<any>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, authCookieLogin.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, authCookieLogin.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.body(params.body, 'application/x-www-form-urlencoded');
|
rb.body(params.body, 'application/x-www-form-urlencoded');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<any>;
|
return r as StrictHttpResponse<any>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
authCookieLogin.PATH = '/auth/login';
|
authCookieLogin.PATH = '/auth/login';
|
||||||
|
|||||||
@@ -1,23 +1,29 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
export interface AuthCookieLogout$Params {}
|
|
||||||
export function authCookieLogout(
|
|
||||||
http: HttpClient,
|
export interface AuthCookieLogout$Params {
|
||||||
rootUrl: string,
|
}
|
||||||
params?: AuthCookieLogout$Params,
|
|
||||||
context?: HttpContext,
|
export function authCookieLogout(http: HttpClient, rootUrl: string, params?: AuthCookieLogout$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
|
||||||
): Observable<StrictHttpResponse<any>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, authCookieLogout.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, authCookieLogout.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<any>;
|
return r as StrictHttpResponse<any>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
authCookieLogout.PATH = '/auth/logout';
|
authCookieLogout.PATH = '/auth/logout';
|
||||||
|
|||||||
@@ -1,24 +1,30 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Study } from '../../models/study';
|
import { Study } from '../../models/study';
|
||||||
export interface Studies$Params {}
|
|
||||||
export function studies(
|
export interface Studies$Params {
|
||||||
http: HttpClient,
|
}
|
||||||
rootUrl: string,
|
|
||||||
params?: Studies$Params,
|
export function studies(http: HttpClient, rootUrl: string, params?: Studies$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<Study>>> {
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<Array<Study>>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, studies.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, studies.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Array<Study>>;
|
return r as StrictHttpResponse<Array<Study>>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
studies.PATH = '/tea/eegs';
|
studies.PATH = '/tea/eegs';
|
||||||
|
|||||||
@@ -1,27 +1,32 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Analysis } from '../../models/analysis';
|
import { Analysis } from '../../models/analysis';
|
||||||
|
|
||||||
export interface Study$Params {
|
export interface Study$Params {
|
||||||
eeg_id: string;
|
eeg_id: string;
|
||||||
}
|
}
|
||||||
export function study(
|
|
||||||
http: HttpClient,
|
export function study(http: HttpClient, rootUrl: string, params: Study$Params, context?: HttpContext): Observable<StrictHttpResponse<Analysis>> {
|
||||||
rootUrl: string,
|
|
||||||
params: Study$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<Analysis>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, study.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, study.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('eeg_id', params.eeg_id, {});
|
rb.path('eeg_id', params.eeg_id, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Analysis>;
|
return r as StrictHttpResponse<Analysis>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
study.PATH = '/tea/eegs/{eeg_id}';
|
study.PATH = '/tea/eegs/{eeg_id}';
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
|
||||||
|
export interface Capabilities$Params {
|
||||||
|
}
|
||||||
|
|
||||||
|
export function capabilities(http: HttpClient, rootUrl: string, params?: Capabilities$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, capabilities.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<any>;
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
capabilities.PATH = '/cacu/exports/capabilities';
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { Document } from '../../models/document';
|
||||||
|
|
||||||
|
export interface Export$Params {
|
||||||
|
kind: string;
|
||||||
|
body: Document
|
||||||
|
}
|
||||||
|
|
||||||
|
export function export$(http: HttpClient, rootUrl: string, params: Export$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, export$.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.path('kind', params.kind, {});
|
||||||
|
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<any>;
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export$.PATH = '/cacu/exports/{kind}';
|
||||||
@@ -1,29 +1,34 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface Metadata$Params {
|
export interface Metadata$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
}
|
}
|
||||||
export function metadata(
|
|
||||||
http: HttpClient,
|
export function metadata(http: HttpClient, rootUrl: string, params: Metadata$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: Metadata$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, metadata.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, metadata.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata.PATH = '/{domain}/fhir/metadata';
|
metadata.PATH = '/{domain}/fhir/metadata';
|
||||||
|
|||||||
@@ -1,35 +1,44 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface PostBundle$Params {
|
export interface PostBundle$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the sender's pipeline (its fhir nodes read this inbox)
|
||||||
|
*/
|
||||||
sender: string;
|
sender: string;
|
||||||
body: {
|
body: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
|
||||||
}
|
}
|
||||||
export function postBundle(
|
}
|
||||||
http: HttpClient,
|
|
||||||
rootUrl: string,
|
export function postBundle(http: HttpClient, rootUrl: string, params: PostBundle$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
params: PostBundle$Params,
|
}>> {
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, postBundle.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, postBundle.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
rb.query('sender', params.sender, {});
|
rb.query('sender', params.sender, {});
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
postBundle.PATH = '/{domain}/fhir';
|
postBundle.PATH = '/{domain}/fhir';
|
||||||
|
|||||||
@@ -1,31 +1,36 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface ReadMeasure$Params {
|
export interface ReadMeasure$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
id: string;
|
id: string;
|
||||||
}
|
}
|
||||||
export function readMeasure(
|
|
||||||
http: HttpClient,
|
export function readMeasure(http: HttpClient, rootUrl: string, params: ReadMeasure$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: ReadMeasure$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, readMeasure.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, readMeasure.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
rb.path('id', params.id, {});
|
rb.path('id', params.id, {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
readMeasure.PATH = '/{domain}/fhir/Measure/{id}';
|
readMeasure.PATH = '/{domain}/fhir/Measure/{id}';
|
||||||
|
|||||||
@@ -1,31 +1,36 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface ReadPatient$Params {
|
export interface ReadPatient$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
id: string;
|
id: string;
|
||||||
}
|
}
|
||||||
export function readPatient(
|
|
||||||
http: HttpClient,
|
export function readPatient(http: HttpClient, rootUrl: string, params: ReadPatient$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: ReadPatient$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, readPatient.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, readPatient.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
rb.path('id', params.id, {});
|
rb.path('id', params.id, {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
readPatient.PATH = '/{domain}/fhir/Patient/{id}';
|
readPatient.PATH = '/{domain}/fhir/Patient/{id}';
|
||||||
|
|||||||
@@ -1,21 +1,27 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface SearchCondition$Params {
|
export interface SearchCondition$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
subject?: string | null;
|
|
||||||
_count?: number | null;
|
/**
|
||||||
_offset?: number;
|
* Patient/<id>, comma-separated
|
||||||
|
*/
|
||||||
|
subject?: (string | null);
|
||||||
|
'_count'?: (number | null);
|
||||||
|
'_offset'?: number;
|
||||||
}
|
}
|
||||||
export function searchCondition(
|
|
||||||
http: HttpClient,
|
export function searchCondition(http: HttpClient, rootUrl: string, params: SearchCondition$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: SearchCondition$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, searchCondition.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, searchCondition.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
@@ -23,13 +29,16 @@ export function searchCondition(
|
|||||||
rb.query('_count', params['_count'], {});
|
rb.query('_count', params['_count'], {});
|
||||||
rb.query('_offset', params['_offset'], {});
|
rb.query('_offset', params['_offset'], {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
searchCondition.PATH = '/{domain}/fhir/Condition';
|
searchCondition.PATH = '/{domain}/fhir/Condition';
|
||||||
|
|||||||
@@ -1,35 +1,46 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface SearchDiagnosticReport$Params {
|
export interface SearchDiagnosticReport$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
subject?: string | null;
|
|
||||||
_count?: number | null;
|
/**
|
||||||
_offset?: number;
|
* Patient/<id>, comma-separated
|
||||||
|
*/
|
||||||
|
subject?: (string | null);
|
||||||
|
'stage-cutoff'?: (string | null);
|
||||||
|
'_count'?: (number | null);
|
||||||
|
'_offset'?: number;
|
||||||
}
|
}
|
||||||
export function searchDiagnosticReport(
|
|
||||||
http: HttpClient,
|
export function searchDiagnosticReport(http: HttpClient, rootUrl: string, params: SearchDiagnosticReport$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: SearchDiagnosticReport$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, searchDiagnosticReport.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, searchDiagnosticReport.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
rb.query('subject', params.subject, {});
|
rb.query('subject', params.subject, {});
|
||||||
|
rb.query('stage-cutoff', params['stage-cutoff'], {});
|
||||||
rb.query('_count', params['_count'], {});
|
rb.query('_count', params['_count'], {});
|
||||||
rb.query('_offset', params['_offset'], {});
|
rb.query('_offset', params['_offset'], {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
searchDiagnosticReport.PATH = '/{domain}/fhir/DiagnosticReport';
|
searchDiagnosticReport.PATH = '/{domain}/fhir/DiagnosticReport';
|
||||||
|
|||||||
@@ -1,21 +1,27 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface SearchEncounter$Params {
|
export interface SearchEncounter$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
subject?: string | null;
|
|
||||||
_count?: number | null;
|
/**
|
||||||
_offset?: number;
|
* Patient/<id>, comma-separated
|
||||||
|
*/
|
||||||
|
subject?: (string | null);
|
||||||
|
'_count'?: (number | null);
|
||||||
|
'_offset'?: number;
|
||||||
}
|
}
|
||||||
export function searchEncounter(
|
|
||||||
http: HttpClient,
|
export function searchEncounter(http: HttpClient, rootUrl: string, params: SearchEncounter$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: SearchEncounter$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, searchEncounter.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, searchEncounter.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
@@ -23,13 +29,16 @@ export function searchEncounter(
|
|||||||
rb.query('_count', params['_count'], {});
|
rb.query('_count', params['_count'], {});
|
||||||
rb.query('_offset', params['_offset'], {});
|
rb.query('_offset', params['_offset'], {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
searchEncounter.PATH = '/{domain}/fhir/Encounter';
|
searchEncounter.PATH = '/{domain}/fhir/Encounter';
|
||||||
|
|||||||
@@ -1,24 +1,42 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface SearchMeasureReport$Params {
|
export interface SearchMeasureReport$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the Measure's id or canonical URL
|
||||||
|
*/
|
||||||
measure: string;
|
measure: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* semesters (2025-S1) or months (2025-03), comma-separated
|
||||||
|
*/
|
||||||
'reporting-period': string;
|
'reporting-period': string;
|
||||||
'as-of'?: string | null;
|
|
||||||
'event-cutoff'?: string | null;
|
/**
|
||||||
_count?: number | null;
|
* count only what was known by then
|
||||||
_offset?: number;
|
*/
|
||||||
|
'as-of'?: (string | null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* durations count to this day
|
||||||
|
*/
|
||||||
|
'event-cutoff'?: (string | null);
|
||||||
|
'_count'?: (number | null);
|
||||||
|
'_offset'?: number;
|
||||||
}
|
}
|
||||||
export function searchMeasureReport(
|
|
||||||
http: HttpClient,
|
export function searchMeasureReport(http: HttpClient, rootUrl: string, params: SearchMeasureReport$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: SearchMeasureReport$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, searchMeasureReport.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, searchMeasureReport.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
@@ -29,13 +47,16 @@ export function searchMeasureReport(
|
|||||||
rb.query('_count', params['_count'], {});
|
rb.query('_count', params['_count'], {});
|
||||||
rb.query('_offset', params['_offset'], {});
|
rb.query('_offset', params['_offset'], {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
searchMeasureReport.PATH = '/{domain}/fhir/MeasureReport';
|
searchMeasureReport.PATH = '/{domain}/fhir/MeasureReport';
|
||||||
|
|||||||
@@ -1,33 +1,38 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface SearchMeasure$Params {
|
export interface SearchMeasure$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
_count?: number | null;
|
'_count'?: (number | null);
|
||||||
_offset?: number;
|
'_offset'?: number;
|
||||||
}
|
}
|
||||||
export function searchMeasure(
|
|
||||||
http: HttpClient,
|
export function searchMeasure(http: HttpClient, rootUrl: string, params: SearchMeasure$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: SearchMeasure$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, searchMeasure.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, searchMeasure.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
rb.query('_count', params['_count'], {});
|
rb.query('_count', params['_count'], {});
|
||||||
rb.query('_offset', params['_offset'], {});
|
rb.query('_offset', params['_offset'], {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
searchMeasure.PATH = '/{domain}/fhir/Measure';
|
searchMeasure.PATH = '/{domain}/fhir/Measure';
|
||||||
|
|||||||
@@ -1,21 +1,27 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface SearchObservation$Params {
|
export interface SearchObservation$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
subject?: string | null;
|
|
||||||
_count?: number | null;
|
/**
|
||||||
_offset?: number;
|
* Patient/<id>, comma-separated
|
||||||
|
*/
|
||||||
|
subject?: (string | null);
|
||||||
|
'_count'?: (number | null);
|
||||||
|
'_offset'?: number;
|
||||||
}
|
}
|
||||||
export function searchObservation(
|
|
||||||
http: HttpClient,
|
export function searchObservation(http: HttpClient, rootUrl: string, params: SearchObservation$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: SearchObservation$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, searchObservation.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, searchObservation.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
@@ -23,13 +29,16 @@ export function searchObservation(
|
|||||||
rb.query('_count', params['_count'], {});
|
rb.query('_count', params['_count'], {});
|
||||||
rb.query('_offset', params['_offset'], {});
|
rb.query('_offset', params['_offset'], {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
searchObservation.PATH = '/{domain}/fhir/Observation';
|
searchObservation.PATH = '/{domain}/fhir/Observation';
|
||||||
|
|||||||
@@ -1,30 +1,74 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface SearchPatient$Params {
|
export interface SearchPatient$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
_id?: string | null;
|
'_id'?: (string | null);
|
||||||
'follow-up-window'?: number | null;
|
|
||||||
'follow-up-cutoff'?: string | null;
|
/**
|
||||||
'follow-up-status'?: string | null;
|
* months: the domain's follow-up list over that window up to the cut-off
|
||||||
name?: string | null;
|
*/
|
||||||
identifier?: string | null;
|
'follow-up-window'?: (number | null);
|
||||||
_sort?: string;
|
|
||||||
'risk-horizon'?: number | null;
|
/**
|
||||||
_revinclude?: Array<string>;
|
* default: the last day with data
|
||||||
|
*/
|
||||||
|
'follow-up-cutoff'?: (string | null);
|
||||||
|
'follow-up-status'?: (string | null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* each word starts a word of her name (case and accents ignored)
|
||||||
|
*/
|
||||||
|
name?: (string | null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [system|]value: a CURP or record number (case ignored)
|
||||||
|
*/
|
||||||
|
identifier?: (string | null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CaCu: completed years at the cut-off
|
||||||
|
*/
|
||||||
|
'follow-up-age-min'?: (number | null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CaCu: completed years at the cut-off
|
||||||
|
*/
|
||||||
|
'follow-up-age-max'?: (number | null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* -recent or -risk-<outcome>
|
||||||
|
*/
|
||||||
|
'_sort'?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* years
|
||||||
|
*/
|
||||||
|
'risk-horizon'?: (number | null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* any of ('DiagnosticReport:subject', 'RiskAssessment:subject', 'Observation:subject')
|
||||||
|
*/
|
||||||
|
'_revinclude'?: Array<string>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DiagnosticReport:result
|
||||||
|
*/
|
||||||
'_include:iterate'?: Array<string>;
|
'_include:iterate'?: Array<string>;
|
||||||
_count?: number | null;
|
'_count'?: (number | null);
|
||||||
_offset?: number;
|
'_offset'?: number;
|
||||||
}
|
}
|
||||||
export function searchPatient(
|
|
||||||
http: HttpClient,
|
export function searchPatient(http: HttpClient, rootUrl: string, params: SearchPatient$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: SearchPatient$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, searchPatient.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, searchPatient.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
@@ -34,6 +78,8 @@ export function searchPatient(
|
|||||||
rb.query('follow-up-status', params['follow-up-status'], {});
|
rb.query('follow-up-status', params['follow-up-status'], {});
|
||||||
rb.query('name', params.name, {});
|
rb.query('name', params.name, {});
|
||||||
rb.query('identifier', params.identifier, {});
|
rb.query('identifier', params.identifier, {});
|
||||||
|
rb.query('follow-up-age-min', params['follow-up-age-min'], {});
|
||||||
|
rb.query('follow-up-age-max', params['follow-up-age-max'], {});
|
||||||
rb.query('_sort', params['_sort'], {});
|
rb.query('_sort', params['_sort'], {});
|
||||||
rb.query('risk-horizon', params['risk-horizon'], {});
|
rb.query('risk-horizon', params['risk-horizon'], {});
|
||||||
rb.query('_revinclude', params['_revinclude'], {});
|
rb.query('_revinclude', params['_revinclude'], {});
|
||||||
@@ -41,13 +87,16 @@ export function searchPatient(
|
|||||||
rb.query('_count', params['_count'], {});
|
rb.query('_count', params['_count'], {});
|
||||||
rb.query('_offset', params['_offset'], {});
|
rb.query('_offset', params['_offset'], {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
searchPatient.PATH = '/{domain}/fhir/Patient';
|
searchPatient.PATH = '/{domain}/fhir/Patient';
|
||||||
|
|||||||
@@ -1,21 +1,27 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface SearchProcedure$Params {
|
export interface SearchProcedure$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
subject?: string | null;
|
|
||||||
_count?: number | null;
|
/**
|
||||||
_offset?: number;
|
* Patient/<id>, comma-separated
|
||||||
|
*/
|
||||||
|
subject?: (string | null);
|
||||||
|
'_count'?: (number | null);
|
||||||
|
'_offset'?: number;
|
||||||
}
|
}
|
||||||
export function searchProcedure(
|
|
||||||
http: HttpClient,
|
export function searchProcedure(http: HttpClient, rootUrl: string, params: SearchProcedure$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: SearchProcedure$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, searchProcedure.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, searchProcedure.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
@@ -23,13 +29,16 @@ export function searchProcedure(
|
|||||||
rb.query('_count', params['_count'], {});
|
rb.query('_count', params['_count'], {});
|
||||||
rb.query('_offset', params['_offset'], {});
|
rb.query('_offset', params['_offset'], {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
searchProcedure.PATH = '/{domain}/fhir/Procedure';
|
searchProcedure.PATH = '/{domain}/fhir/Procedure';
|
||||||
|
|||||||
@@ -1,21 +1,27 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface SearchRiskAssessment$Params {
|
export interface SearchRiskAssessment$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
subject?: string | null;
|
|
||||||
_count?: number | null;
|
/**
|
||||||
_offset?: number;
|
* Patient/<id>, comma-separated
|
||||||
|
*/
|
||||||
|
subject?: (string | null);
|
||||||
|
'_count'?: (number | null);
|
||||||
|
'_offset'?: number;
|
||||||
}
|
}
|
||||||
export function searchRiskAssessment(
|
|
||||||
http: HttpClient,
|
export function searchRiskAssessment(http: HttpClient, rootUrl: string, params: SearchRiskAssessment$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
}>> {
|
||||||
params: SearchRiskAssessment$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<{}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, searchRiskAssessment.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, searchRiskAssessment.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
@@ -23,13 +29,16 @@ export function searchRiskAssessment(
|
|||||||
rb.query('_count', params['_count'], {});
|
rb.query('_count', params['_count'], {});
|
||||||
rb.query('_offset', params['_offset'], {});
|
rb.query('_offset', params['_offset'], {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{}>;
|
return r as StrictHttpResponse<{
|
||||||
}),
|
}>;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
searchRiskAssessment.PATH = '/{domain}/fhir/RiskAssessment';
|
searchRiskAssessment.PATH = '/{domain}/fhir/RiskAssessment';
|
||||||
|
|||||||
@@ -1,27 +1,32 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Browsed } from '../../models/browsed';
|
import { Browsed } from '../../models/browsed';
|
||||||
|
|
||||||
export interface Browse$Params {
|
export interface Browse$Params {
|
||||||
path?: string | null;
|
path?: (string | null);
|
||||||
}
|
}
|
||||||
export function browse(
|
|
||||||
http: HttpClient,
|
export function browse(http: HttpClient, rootUrl: string, params?: Browse$Params, context?: HttpContext): Observable<StrictHttpResponse<Browsed>> {
|
||||||
rootUrl: string,
|
|
||||||
params?: Browse$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<Browsed>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, browse.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, browse.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.query('path', params.path, {});
|
rb.query('path', params.path, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Browsed>;
|
return r as StrictHttpResponse<Browsed>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
browse.PATH = '/ingest/sources/browse';
|
browse.PATH = '/ingest/sources/browse';
|
||||||
|
|||||||
@@ -1,33 +1,33 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
export interface ConceptMaps$Params {}
|
|
||||||
export function conceptMaps(
|
|
||||||
http: HttpClient,
|
export interface ConceptMaps$Params {
|
||||||
rootUrl: string,
|
}
|
||||||
params?: ConceptMaps$Params,
|
|
||||||
context?: HttpContext,
|
export function conceptMaps(http: HttpClient, rootUrl: string, params?: ConceptMaps$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<
|
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>> {
|
||||||
>
|
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, conceptMaps.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, conceptMaps.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<
|
return r as StrictHttpResponse<Array<{
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>;
|
||||||
>;
|
})
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
conceptMaps.PATH = '/ingest/concept-maps';
|
conceptMaps.PATH = '/ingest/concept-maps';
|
||||||
|
|||||||
@@ -1,32 +1,35 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
|
||||||
export interface GetConceptMap$Params {
|
export interface GetConceptMap$Params {
|
||||||
map_id: string;
|
map_id: string;
|
||||||
}
|
}
|
||||||
export function getConceptMap(
|
|
||||||
http: HttpClient,
|
export function getConceptMap(http: HttpClient, rootUrl: string, params: GetConceptMap$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: GetConceptMap$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, getConceptMap.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, getConceptMap.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('map_id', params.map_id, {});
|
rb.path('map_id', params.map_id, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
getConceptMap.PATH = '/ingest/concept-maps/{map_id}';
|
getConceptMap.PATH = '/ingest/concept-maps/{map_id}';
|
||||||
|
|||||||
@@ -1,40 +1,39 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
|
||||||
export interface NodeRows$Params {
|
export interface NodeRows$Params {
|
||||||
pipeline_id: string;
|
pipeline_id: string;
|
||||||
node_id: string;
|
node_id: string;
|
||||||
limit?: number;
|
limit?: number;
|
||||||
}
|
}
|
||||||
export function nodeRows(
|
|
||||||
http: HttpClient,
|
export function nodeRows(http: HttpClient, rootUrl: string, params: NodeRows$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
||||||
rootUrl: string,
|
|
||||||
params: NodeRows$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<
|
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>> {
|
||||||
>
|
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, nodeRows.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, nodeRows.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('pipeline_id', params.pipeline_id, {});
|
rb.path('pipeline_id', params.pipeline_id, {});
|
||||||
rb.path('node_id', params.node_id, {});
|
rb.path('node_id', params.node_id, {});
|
||||||
rb.query('limit', params.limit, {});
|
rb.query('limit', params.limit, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<
|
return r as StrictHttpResponse<Array<{
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>;
|
||||||
>;
|
})
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
nodeRows.PATH = '/ingest/pipelines/{pipeline_id}/nodes/{node_id}/rows';
|
nodeRows.PATH = '/ingest/pipelines/{pipeline_id}/nodes/{node_id}/rows';
|
||||||
|
|||||||
@@ -1,29 +1,34 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { SignIn } from '../../models/sign-in';
|
import { SignIn } from '../../models/sign-in';
|
||||||
|
|
||||||
export interface OauthStart$Params {
|
export interface OauthStart$Params {
|
||||||
provider: string;
|
provider: string;
|
||||||
origin: string;
|
origin: string;
|
||||||
}
|
}
|
||||||
export function oauthStart(
|
|
||||||
http: HttpClient,
|
export function oauthStart(http: HttpClient, rootUrl: string, params: OauthStart$Params, context?: HttpContext): Observable<StrictHttpResponse<SignIn>> {
|
||||||
rootUrl: string,
|
|
||||||
params: OauthStart$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<SignIn>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, oauthStart.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, oauthStart.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('provider', params.provider, {});
|
rb.path('provider', params.provider, {});
|
||||||
rb.query('origin', params.origin, {});
|
rb.query('origin', params.origin, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<SignIn>;
|
return r as StrictHttpResponse<SignIn>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
oauthStart.PATH = '/ingest/sources/oauth/{provider}/start';
|
oauthStart.PATH = '/ingest/sources/oauth/{provider}/start';
|
||||||
|
|||||||
@@ -1,29 +1,34 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { SavedPipeline } from '../../models/saved-pipeline';
|
import { SavedPipeline } from '../../models/saved-pipeline';
|
||||||
|
|
||||||
export interface Pipeline$Params {
|
export interface Pipeline$Params {
|
||||||
pipeline_id: string;
|
pipeline_id: string;
|
||||||
version?: number | null;
|
version?: (number | null);
|
||||||
}
|
}
|
||||||
export function pipeline(
|
|
||||||
http: HttpClient,
|
export function pipeline(http: HttpClient, rootUrl: string, params: Pipeline$Params, context?: HttpContext): Observable<StrictHttpResponse<SavedPipeline>> {
|
||||||
rootUrl: string,
|
|
||||||
params: Pipeline$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<SavedPipeline>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, pipeline.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, pipeline.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('pipeline_id', params.pipeline_id, {});
|
rb.path('pipeline_id', params.pipeline_id, {});
|
||||||
rb.query('version', params.version, {});
|
rb.query('version', params.version, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<SavedPipeline>;
|
return r as StrictHttpResponse<SavedPipeline>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeline.PATH = '/ingest/pipelines/{pipeline_id}';
|
pipeline.PATH = '/ingest/pipelines/{pipeline_id}';
|
||||||
|
|||||||
@@ -1,33 +1,33 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
export interface Pipelines$Params {}
|
|
||||||
export function pipelines(
|
|
||||||
http: HttpClient,
|
export interface Pipelines$Params {
|
||||||
rootUrl: string,
|
}
|
||||||
params?: Pipelines$Params,
|
|
||||||
context?: HttpContext,
|
export function pipelines(http: HttpClient, rootUrl: string, params?: Pipelines$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<
|
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>> {
|
||||||
>
|
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, pipelines.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, pipelines.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<
|
return r as StrictHttpResponse<Array<{
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>;
|
||||||
>;
|
})
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pipelines.PATH = '/ingest/pipelines';
|
pipelines.PATH = '/ingest/pipelines';
|
||||||
|
|||||||
@@ -1,36 +1,39 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
|
||||||
export interface SaveConceptMap$Params {
|
export interface SaveConceptMap$Params {
|
||||||
map_id: string;
|
map_id: string;
|
||||||
body: {
|
body: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
|
||||||
}
|
}
|
||||||
export function saveConceptMap(
|
}
|
||||||
http: HttpClient,
|
|
||||||
rootUrl: string,
|
export function saveConceptMap(http: HttpClient, rootUrl: string, params: SaveConceptMap$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
params: SaveConceptMap$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: number;
|
[key: string]: number;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, saveConceptMap.PATH, 'put');
|
const rb = new RequestBuilder(rootUrl, saveConceptMap.PATH, 'put');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('map_id', params.map_id, {});
|
rb.path('map_id', params.map_id, {});
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: number;
|
[key: string]: number;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
saveConceptMap.PATH = '/ingest/concept-maps/{map_id}';
|
saveConceptMap.PATH = '/ingest/concept-maps/{map_id}';
|
||||||
|
|||||||
@@ -1,35 +1,38 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Pipeline } from '../../models/pipeline';
|
import { Pipeline } from '../../models/pipeline';
|
||||||
|
|
||||||
export interface SavePipeline$Params {
|
export interface SavePipeline$Params {
|
||||||
pipeline_id: string;
|
pipeline_id: string;
|
||||||
body: Pipeline;
|
body: Pipeline
|
||||||
}
|
}
|
||||||
export function savePipeline(
|
|
||||||
http: HttpClient,
|
export function savePipeline(http: HttpClient, rootUrl: string, params: SavePipeline$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: SavePipeline$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: number;
|
[key: string]: number;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, savePipeline.PATH, 'put');
|
const rb = new RequestBuilder(rootUrl, savePipeline.PATH, 'put');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('pipeline_id', params.pipeline_id, {});
|
rb.path('pipeline_id', params.pipeline_id, {});
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: number;
|
[key: string]: number;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
savePipeline.PATH = '/ingest/pipelines/{pipeline_id}';
|
savePipeline.PATH = '/ingest/pipelines/{pipeline_id}';
|
||||||
|
|||||||
@@ -1,29 +1,33 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
export interface Schema$Params {}
|
|
||||||
export function schema(
|
|
||||||
http: HttpClient,
|
export interface Schema$Params {
|
||||||
rootUrl: string,
|
}
|
||||||
params?: Schema$Params,
|
|
||||||
context?: HttpContext,
|
export function schema(http: HttpClient, rootUrl: string, params?: Schema$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, schema.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, schema.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
schema.PATH = '/ingest/schema';
|
schema.PATH = '/ingest/schema';
|
||||||
|
|||||||
@@ -1,39 +1,38 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Source } from '../../models/source';
|
import { Source } from '../../models/source';
|
||||||
|
|
||||||
export interface SourcePreview$Params {
|
export interface SourcePreview$Params {
|
||||||
limit?: number;
|
limit?: number;
|
||||||
body: Source;
|
body: Source
|
||||||
}
|
}
|
||||||
export function sourcePreview(
|
|
||||||
http: HttpClient,
|
export function sourcePreview(http: HttpClient, rootUrl: string, params: SourcePreview$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
||||||
rootUrl: string,
|
|
||||||
params: SourcePreview$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<
|
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>> {
|
||||||
>
|
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, sourcePreview.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, sourcePreview.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.query('limit', params.limit, {});
|
rb.query('limit', params.limit, {});
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<
|
return r as StrictHttpResponse<Array<{
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>;
|
||||||
>;
|
})
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
sourcePreview.PATH = '/ingest/sources/preview';
|
sourcePreview.PATH = '/ingest/sources/preview';
|
||||||
|
|||||||
@@ -1,27 +1,32 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { SourceRef } from '../../models/source-ref';
|
import { SourceRef } from '../../models/source-ref';
|
||||||
|
|
||||||
export interface SourceResources$Params {
|
export interface SourceResources$Params {
|
||||||
body: SourceRef;
|
body: SourceRef
|
||||||
}
|
}
|
||||||
export function sourceResources(
|
|
||||||
http: HttpClient,
|
export function sourceResources(http: HttpClient, rootUrl: string, params: SourceResources$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<string>>> {
|
||||||
rootUrl: string,
|
|
||||||
params: SourceResources$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<Array<string>>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, sourceResources.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, sourceResources.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Array<string>>;
|
return r as StrictHttpResponse<Array<string>>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceResources.PATH = '/ingest/sources/resources';
|
sourceResources.PATH = '/ingest/sources/resources';
|
||||||
|
|||||||
@@ -1,24 +1,30 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Catalog } from '../../models/catalog';
|
import { Catalog } from '../../models/catalog';
|
||||||
export interface SourceTypes$Params {}
|
|
||||||
export function sourceTypes(
|
export interface SourceTypes$Params {
|
||||||
http: HttpClient,
|
}
|
||||||
rootUrl: string,
|
|
||||||
params?: SourceTypes$Params,
|
export function sourceTypes(http: HttpClient, rootUrl: string, params?: SourceTypes$Params, context?: HttpContext): Observable<StrictHttpResponse<Catalog>> {
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<Catalog>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, sourceTypes.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, sourceTypes.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Catalog>;
|
return r as StrictHttpResponse<Catalog>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceTypes.PATH = '/ingest/sources/types';
|
sourceTypes.PATH = '/ingest/sources/types';
|
||||||
|
|||||||
@@ -1,35 +1,38 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { RunRequest } from '../../models/run-request';
|
import { RunRequest } from '../../models/run-request';
|
||||||
|
|
||||||
export interface StartRun$Params {
|
export interface StartRun$Params {
|
||||||
pipeline_id: string;
|
pipeline_id: string;
|
||||||
body: RunRequest;
|
body: RunRequest
|
||||||
}
|
}
|
||||||
export function startRun(
|
|
||||||
http: HttpClient,
|
export function startRun(http: HttpClient, rootUrl: string, params: StartRun$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: StartRun$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, startRun.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, startRun.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('pipeline_id', params.pipeline_id, {});
|
rb.path('pipeline_id', params.pipeline_id, {});
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
startRun.PATH = '/ingest/pipelines/{pipeline_id}/runs';
|
startRun.PATH = '/ingest/pipelines/{pipeline_id}/runs';
|
||||||
|
|||||||
@@ -1,30 +1,35 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Answers } from '../../models/answers';
|
import { Answers } from '../../models/answers';
|
||||||
import { Tested } from '../../models/tested';
|
import { Tested } from '../../models/tested';
|
||||||
|
|
||||||
export interface TestSource$Params {
|
export interface TestSource$Params {
|
||||||
limit?: number;
|
limit?: number;
|
||||||
body: Answers;
|
body: Answers
|
||||||
}
|
}
|
||||||
export function testSource(
|
|
||||||
http: HttpClient,
|
export function testSource(http: HttpClient, rootUrl: string, params: TestSource$Params, context?: HttpContext): Observable<StrictHttpResponse<Tested>> {
|
||||||
rootUrl: string,
|
|
||||||
params: TestSource$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<Tested>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, testSource.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, testSource.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.query('limit', params.limit, {});
|
rb.query('limit', params.limit, {});
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Tested>;
|
return r as StrictHttpResponse<Tested>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
testSource.PATH = '/ingest/sources/test';
|
testSource.PATH = '/ingest/sources/test';
|
||||||
|
|||||||
@@ -1,28 +1,33 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { BodyUpload } from '../../models/body-upload';
|
import { BodyUpload } from '../../models/body-upload';
|
||||||
import { Uploaded } from '../../models/uploaded';
|
import { Uploaded } from '../../models/uploaded';
|
||||||
|
|
||||||
export interface Upload$Params {
|
export interface Upload$Params {
|
||||||
body: BodyUpload;
|
body: BodyUpload
|
||||||
}
|
}
|
||||||
export function upload(
|
|
||||||
http: HttpClient,
|
export function upload(http: HttpClient, rootUrl: string, params: Upload$Params, context?: HttpContext): Observable<StrictHttpResponse<Uploaded>> {
|
||||||
rootUrl: string,
|
|
||||||
params: Upload$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<Uploaded>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, upload.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, upload.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.body(params.body, 'multipart/form-data');
|
rb.body(params.body, 'multipart/form-data');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Uploaded>;
|
return r as StrictHttpResponse<Uploaded>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
upload.PATH = '/ingest/uploads';
|
upload.PATH = '/ingest/uploads';
|
||||||
|
|||||||
@@ -1,26 +1,25 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { BodyAddClinicalValidation } from '../../models/body-add-clinical-validation';
|
import { BodyAddClinicalValidation } from '../../models/body-add-clinical-validation';
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface AddClinicalValidation$Params {
|
export interface AddClinicalValidation$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
name: string;
|
name: string;
|
||||||
version: number;
|
version: number;
|
||||||
body: BodyAddClinicalValidation;
|
body: BodyAddClinicalValidation
|
||||||
}
|
}
|
||||||
export function addClinicalValidation(
|
|
||||||
http: HttpClient,
|
export function addClinicalValidation(http: HttpClient, rootUrl: string, params: AddClinicalValidation$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: AddClinicalValidation$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, addClinicalValidation.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, addClinicalValidation.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
@@ -28,14 +27,17 @@ export function addClinicalValidation(
|
|||||||
rb.path('version', params.version, {});
|
rb.path('version', params.version, {});
|
||||||
rb.body(params.body, 'multipart/form-data');
|
rb.body(params.body, 'multipart/form-data');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
addClinicalValidation.PATH =
|
|
||||||
'/models/{domain}/{name}/versions/{version}/reports/clinical_validation';
|
addClinicalValidation.PATH = '/models/{domain}/{name}/versions/{version}/reports/clinical_validation';
|
||||||
|
|||||||
@@ -1,33 +1,36 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface Analyze$Params {
|
export interface Analyze$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
}
|
}
|
||||||
export function analyze(
|
|
||||||
http: HttpClient,
|
export function analyze(http: HttpClient, rootUrl: string, params: Analyze$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: Analyze$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, analyze.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, analyze.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
analyze.PATH = '/models/{domain}/analyze';
|
analyze.PATH = '/models/{domain}/analyze';
|
||||||
|
|||||||
@@ -1,28 +1,33 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
import { Model } from '../../models/model';
|
import { Model } from '../../models/model';
|
||||||
|
|
||||||
export interface Models$Params {
|
export interface Models$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
}
|
}
|
||||||
export function models(
|
|
||||||
http: HttpClient,
|
export function models(http: HttpClient, rootUrl: string, params: Models$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<Model>>> {
|
||||||
rootUrl: string,
|
|
||||||
params: Models$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<Array<Model>>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, models.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, models.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Array<Model>>;
|
return r as StrictHttpResponse<Array<Model>>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
models.PATH = '/models/{domain}';
|
models.PATH = '/models/{domain}';
|
||||||
|
|||||||
@@ -1,37 +1,40 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface Promote$Params {
|
export interface Promote$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
name: string;
|
name: string;
|
||||||
version: number;
|
version: number;
|
||||||
}
|
}
|
||||||
export function promote(
|
|
||||||
http: HttpClient,
|
export function promote(http: HttpClient, rootUrl: string, params: Promote$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: Promote$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, promote.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, promote.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
rb.path('name', params.name, {});
|
rb.path('name', params.name, {});
|
||||||
rb.path('version', params.version, {});
|
rb.path('version', params.version, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
promote.PATH = '/models/{domain}/{name}/versions/{version}/promote';
|
promote.PATH = '/models/{domain}/{name}/versions/{version}/promote';
|
||||||
|
|||||||
@@ -1,21 +1,22 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface ReadReport$Any$Params {
|
export interface ReadReport$Any$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
name: string;
|
name: string;
|
||||||
version: number;
|
version: number;
|
||||||
report: string;
|
report: string;
|
||||||
}
|
}
|
||||||
export function readReport$Any(
|
|
||||||
http: HttpClient,
|
export function readReport$Any(http: HttpClient, rootUrl: string, params: ReadReport$Any$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
|
||||||
rootUrl: string,
|
|
||||||
params: ReadReport$Any$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<any>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, readReport$Any.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, readReport$Any.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
@@ -23,13 +24,15 @@ export function readReport$Any(
|
|||||||
rb.path('version', params.version, {});
|
rb.path('version', params.version, {});
|
||||||
rb.path('report', params.report, {});
|
rb.path('report', params.report, {});
|
||||||
}
|
}
|
||||||
return http
|
|
||||||
.request(rb.build({ responseType: 'blob', accept: 'application/octet-stream', context }))
|
return http.request(
|
||||||
.pipe(
|
rb.build({ responseType: 'blob', accept: 'application/octet-stream', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<any>;
|
return r as StrictHttpResponse<any>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
readReport$Any.PATH = '/models/{domain}/{name}/versions/{version}/reports/{report}';
|
readReport$Any.PATH = '/models/{domain}/{name}/versions/{version}/reports/{report}';
|
||||||
|
|||||||
@@ -1,21 +1,22 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface ReadReport$Json$Params {
|
export interface ReadReport$Json$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
name: string;
|
name: string;
|
||||||
version: number;
|
version: number;
|
||||||
report: string;
|
report: string;
|
||||||
}
|
}
|
||||||
export function readReport$Json(
|
|
||||||
http: HttpClient,
|
export function readReport$Json(http: HttpClient, rootUrl: string, params: ReadReport$Json$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
|
||||||
rootUrl: string,
|
|
||||||
params: ReadReport$Json$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<any>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, readReport$Json.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, readReport$Json.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
@@ -23,11 +24,15 @@ export function readReport$Json(
|
|||||||
rb.path('version', params.version, {});
|
rb.path('version', params.version, {});
|
||||||
rb.path('report', params.report, {});
|
rb.path('report', params.report, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<any>;
|
return r as StrictHttpResponse<any>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
readReport$Json.PATH = '/models/{domain}/{name}/versions/{version}/reports/{report}';
|
readReport$Json.PATH = '/models/{domain}/{name}/versions/{version}/reports/{report}';
|
||||||
|
|||||||
@@ -1,33 +1,36 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface Score$Params {
|
export interface Score$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
}
|
}
|
||||||
export function score(
|
|
||||||
http: HttpClient,
|
export function score(http: HttpClient, rootUrl: string, params: Score$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: Score$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, score.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, score.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
score.PATH = '/models/{domain}/score';
|
score.PATH = '/models/{domain}/score';
|
||||||
|
|||||||
@@ -1,36 +1,39 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
import { Training } from '../../models/training';
|
import { Training } from '../../models/training';
|
||||||
|
|
||||||
export interface Train$Params {
|
export interface Train$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
body: Training;
|
body: Training
|
||||||
}
|
}
|
||||||
export function train(
|
|
||||||
http: HttpClient,
|
export function train(http: HttpClient, rootUrl: string, params: Train$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: Train$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, train.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, train.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
train.PATH = '/models/{domain}/train';
|
train.PATH = '/models/{domain}/train';
|
||||||
|
|||||||
@@ -1,30 +1,35 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
import { Version } from '../../models/version';
|
import { Version } from '../../models/version';
|
||||||
|
|
||||||
export interface Versions$Params {
|
export interface Versions$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
export function versions(
|
|
||||||
http: HttpClient,
|
export function versions(http: HttpClient, rootUrl: string, params: Versions$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<Version>>> {
|
||||||
rootUrl: string,
|
|
||||||
params: Versions$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<Array<Version>>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, versions.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, versions.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
rb.path('name', params.name, {});
|
rb.path('name', params.name, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Array<Version>>;
|
return r as StrictHttpResponse<Array<Version>>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
versions.PATH = '/models/{domain}/{name}/versions';
|
versions.PATH = '/models/{domain}/{name}/versions';
|
||||||
|
|||||||
@@ -1,24 +1,30 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
export interface Domains$Params {}
|
|
||||||
export function domains(
|
export interface Domains$Params {
|
||||||
http: HttpClient,
|
}
|
||||||
rootUrl: string,
|
|
||||||
params?: Domains$Params,
|
export function domains(http: HttpClient, rootUrl: string, params?: Domains$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<Domain>>> {
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<Array<Domain>>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, domains.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, domains.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Array<Domain>>;
|
return r as StrictHttpResponse<Array<Domain>>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
domains.PATH = '/domains';
|
domains.PATH = '/domains';
|
||||||
|
|||||||
@@ -1,29 +1,33 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
export interface Health$Params {}
|
|
||||||
export function health(
|
|
||||||
http: HttpClient,
|
export interface Health$Params {
|
||||||
rootUrl: string,
|
}
|
||||||
params?: Health$Params,
|
|
||||||
context?: HttpContext,
|
export function health(http: HttpClient, rootUrl: string, params?: Health$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, health.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, health.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
health.PATH = '/health';
|
health.PATH = '/health';
|
||||||
|
|||||||
@@ -1,48 +1,35 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
|
||||||
export interface Conflicts$Params {
|
export interface Conflicts$Params {
|
||||||
entity:
|
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||||
| 'identity'
|
|
||||||
| 'cervical_cytology'
|
|
||||||
| 'cervical_biopsy'
|
|
||||||
| 'mammography'
|
|
||||||
| 'breast_biopsy'
|
|
||||||
| 'breast_treatment'
|
|
||||||
| 'breast_recurrence'
|
|
||||||
| 'clinical_note'
|
|
||||||
| 'death'
|
|
||||||
| 'mchat'
|
|
||||||
| 'ados2'
|
|
||||||
| 'eeg';
|
|
||||||
}
|
}
|
||||||
export function conflicts(
|
|
||||||
http: HttpClient,
|
export function conflicts(http: HttpClient, rootUrl: string, params: Conflicts$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
||||||
rootUrl: string,
|
|
||||||
params: Conflicts$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<
|
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>> {
|
||||||
>
|
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, conflicts.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, conflicts.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.query('entity', params.entity, {});
|
rb.query('entity', params.entity, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<
|
return r as StrictHttpResponse<Array<{
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>;
|
||||||
>;
|
})
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
conflicts.PATH = '/review/conflicts';
|
conflicts.PATH = '/review/conflicts';
|
||||||
|
|||||||
@@ -1,33 +1,36 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Correction } from '../../models/correction';
|
import { Correction } from '../../models/correction';
|
||||||
|
|
||||||
export interface Correct$Params {
|
export interface Correct$Params {
|
||||||
body: Correction;
|
body: Correction
|
||||||
}
|
}
|
||||||
export function correct(
|
|
||||||
http: HttpClient,
|
export function correct(http: HttpClient, rootUrl: string, params: Correct$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: Correct$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, correct.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, correct.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
correct.PATH = '/review/corrections';
|
correct.PATH = '/review/corrections';
|
||||||
|
|||||||
@@ -1,33 +1,36 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { PersonDecision } from '../../models/person-decision';
|
import { PersonDecision } from '../../models/person-decision';
|
||||||
|
|
||||||
export interface DecidePersons$Params {
|
export interface DecidePersons$Params {
|
||||||
body: PersonDecision;
|
body: PersonDecision
|
||||||
}
|
}
|
||||||
export function decidePersons(
|
|
||||||
http: HttpClient,
|
export function decidePersons(http: HttpClient, rootUrl: string, params: DecidePersons$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: DecidePersons$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, decidePersons.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, decidePersons.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
decidePersons.PATH = '/review/persons';
|
decidePersons.PATH = '/review/persons';
|
||||||
|
|||||||
@@ -1,48 +1,35 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
|
||||||
export interface Held$Params {
|
export interface Held$Params {
|
||||||
entity:
|
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||||
| 'identity'
|
|
||||||
| 'cervical_cytology'
|
|
||||||
| 'cervical_biopsy'
|
|
||||||
| 'mammography'
|
|
||||||
| 'breast_biopsy'
|
|
||||||
| 'breast_treatment'
|
|
||||||
| 'breast_recurrence'
|
|
||||||
| 'clinical_note'
|
|
||||||
| 'death'
|
|
||||||
| 'mchat'
|
|
||||||
| 'ados2'
|
|
||||||
| 'eeg';
|
|
||||||
}
|
}
|
||||||
export function held(
|
|
||||||
http: HttpClient,
|
export function held(http: HttpClient, rootUrl: string, params: Held$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
||||||
rootUrl: string,
|
|
||||||
params: Held$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<
|
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>> {
|
||||||
>
|
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, held.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, held.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.query('entity', params.entity, {});
|
rb.query('entity', params.entity, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<
|
return r as StrictHttpResponse<Array<{
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>;
|
||||||
>;
|
})
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
held.PATH = '/review/held';
|
held.PATH = '/review/held';
|
||||||
|
|||||||
@@ -1,30 +1,32 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
|
||||||
export interface Persons$Params {
|
export interface Persons$Params {
|
||||||
pipeline: string;
|
pipeline: string;
|
||||||
node: string;
|
node: string;
|
||||||
}
|
}
|
||||||
export function persons(
|
|
||||||
http: HttpClient,
|
export function persons(http: HttpClient, rootUrl: string, params: Persons$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: Persons$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: Array<{
|
[key: string]: Array<{
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>;
|
}>;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, persons.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, persons.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.query('pipeline', params.pipeline, {});
|
rb.query('pipeline', params.pipeline, {});
|
||||||
rb.query('node', params.node, {});
|
rb.query('node', params.node, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
@@ -32,7 +34,8 @@ export function persons(
|
|||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>;
|
}>;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
persons.PATH = '/review/persons';
|
persons.PATH = '/review/persons';
|
||||||
|
|||||||
@@ -1,33 +1,36 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Rejection } from '../../models/rejection';
|
import { Rejection } from '../../models/rejection';
|
||||||
|
|
||||||
export interface Reject$Params {
|
export interface Reject$Params {
|
||||||
body: Rejection;
|
body: Rejection
|
||||||
}
|
}
|
||||||
export function reject(
|
|
||||||
http: HttpClient,
|
export function reject(http: HttpClient, rootUrl: string, params: Reject$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: Reject$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, reject.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, reject.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
reject.PATH = '/review/rejections';
|
reject.PATH = '/review/rejections';
|
||||||
|
|||||||
@@ -1,36 +1,35 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
|
||||||
export interface Unrecognised$Params {
|
export interface Unrecognised$Params {
|
||||||
pipeline: string;
|
pipeline: string;
|
||||||
}
|
}
|
||||||
export function unrecognised(
|
|
||||||
http: HttpClient,
|
export function unrecognised(http: HttpClient, rootUrl: string, params: Unrecognised$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
||||||
rootUrl: string,
|
|
||||||
params: Unrecognised$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<
|
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>> {
|
||||||
>
|
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, unrecognised.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, unrecognised.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.query('pipeline', params.pipeline, {});
|
rb.query('pipeline', params.pipeline, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<
|
return r as StrictHttpResponse<Array<{
|
||||||
Array<{
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}>
|
}>>;
|
||||||
>;
|
})
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
unrecognised.PATH = '/review/unrecognised';
|
unrecognised.PATH = '/review/unrecognised';
|
||||||
|
|||||||
@@ -1,32 +1,35 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
|
||||||
export interface RunStatus$Params {
|
export interface RunStatus$Params {
|
||||||
run_id: string;
|
run_id: string;
|
||||||
}
|
}
|
||||||
export function runStatus(
|
|
||||||
http: HttpClient,
|
export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: RunStatus$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, runStatus.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, runStatus.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('run_id', params.run_id, {});
|
rb.path('run_id', params.run_id, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
runStatus.PATH = '/runs/{run_id}';
|
runStatus.PATH = '/runs/{run_id}';
|
||||||
|
|||||||
@@ -1,32 +1,35 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
|
||||||
export interface TerminateRun$Params {
|
export interface TerminateRun$Params {
|
||||||
run_id: string;
|
run_id: string;
|
||||||
}
|
}
|
||||||
export function terminateRun(
|
|
||||||
http: HttpClient,
|
export function terminateRun(http: HttpClient, rootUrl: string, params: TerminateRun$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
rootUrl: string,
|
|
||||||
params: TerminateRun$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<
|
|
||||||
StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>
|
}>> {
|
||||||
> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, terminateRun.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, terminateRun.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('run_id', params.run_id, {});
|
rb.path('run_id', params.run_id, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<{
|
return r as StrictHttpResponse<{
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}>;
|
}>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
terminateRun.PATH = '/runs/{run_id}/terminate';
|
terminateRun.PATH = '/runs/{run_id}/terminate';
|
||||||
|
|||||||
@@ -1,28 +1,33 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { UserCreate } from '../../models/user-create';
|
import { UserCreate } from '../../models/user-create';
|
||||||
import { UserRead } from '../../models/user-read';
|
import { UserRead } from '../../models/user-read';
|
||||||
|
|
||||||
export interface RegisterRegister$Params {
|
export interface RegisterRegister$Params {
|
||||||
body: UserCreate;
|
body: UserCreate
|
||||||
}
|
}
|
||||||
export function registerRegister(
|
|
||||||
http: HttpClient,
|
export function registerRegister(http: HttpClient, rootUrl: string, params: RegisterRegister$Params, context?: HttpContext): Observable<StrictHttpResponse<UserRead>> {
|
||||||
rootUrl: string,
|
|
||||||
params: RegisterRegister$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<UserRead>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, registerRegister.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, registerRegister.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<UserRead>;
|
return r as StrictHttpResponse<UserRead>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
registerRegister.PATH = '/users/register';
|
registerRegister.PATH = '/users/register';
|
||||||
|
|||||||
@@ -1,24 +1,30 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { UserRead } from '../../models/user-read';
|
import { UserRead } from '../../models/user-read';
|
||||||
export interface UsersCurrentUser$Params {}
|
|
||||||
export function usersCurrentUser(
|
export interface UsersCurrentUser$Params {
|
||||||
http: HttpClient,
|
}
|
||||||
rootUrl: string,
|
|
||||||
params?: UsersCurrentUser$Params,
|
export function usersCurrentUser(http: HttpClient, rootUrl: string, params?: UsersCurrentUser$Params, context?: HttpContext): Observable<StrictHttpResponse<UserRead>> {
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<UserRead>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, usersCurrentUser.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, usersCurrentUser.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<UserRead>;
|
return r as StrictHttpResponse<UserRead>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
usersCurrentUser.PATH = '/users/me';
|
usersCurrentUser.PATH = '/users/me';
|
||||||
|
|||||||
@@ -1,26 +1,31 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
|
||||||
export interface UsersDeleteUser$Params {
|
export interface UsersDeleteUser$Params {
|
||||||
id: string;
|
id: string;
|
||||||
}
|
}
|
||||||
export function usersDeleteUser(
|
|
||||||
http: HttpClient,
|
export function usersDeleteUser(http: HttpClient, rootUrl: string, params: UsersDeleteUser$Params, context?: HttpContext): Observable<StrictHttpResponse<void>> {
|
||||||
rootUrl: string,
|
|
||||||
params: UsersDeleteUser$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<void>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, usersDeleteUser.PATH, 'delete');
|
const rb = new RequestBuilder(rootUrl, usersDeleteUser.PATH, 'delete');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('id', params.id, {});
|
rb.path('id', params.id, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'text', accept: '*/*', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'text', accept: '*/*', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return (r as HttpResponse<any>).clone({ body: undefined }) as StrictHttpResponse<void>;
|
return (r as HttpResponse<any>).clone({ body: undefined }) as StrictHttpResponse<void>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
usersDeleteUser.PATH = '/users/{id}';
|
usersDeleteUser.PATH = '/users/{id}';
|
||||||
|
|||||||
@@ -1,28 +1,33 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { UserRead } from '../../models/user-read';
|
import { UserRead } from '../../models/user-read';
|
||||||
import { UserUpdate } from '../../models/user-update';
|
import { UserUpdate } from '../../models/user-update';
|
||||||
|
|
||||||
export interface UsersPatchCurrentUser$Params {
|
export interface UsersPatchCurrentUser$Params {
|
||||||
body: UserUpdate;
|
body: UserUpdate
|
||||||
}
|
}
|
||||||
export function usersPatchCurrentUser(
|
|
||||||
http: HttpClient,
|
export function usersPatchCurrentUser(http: HttpClient, rootUrl: string, params: UsersPatchCurrentUser$Params, context?: HttpContext): Observable<StrictHttpResponse<UserRead>> {
|
||||||
rootUrl: string,
|
|
||||||
params: UsersPatchCurrentUser$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<UserRead>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, usersPatchCurrentUser.PATH, 'patch');
|
const rb = new RequestBuilder(rootUrl, usersPatchCurrentUser.PATH, 'patch');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<UserRead>;
|
return r as StrictHttpResponse<UserRead>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
usersPatchCurrentUser.PATH = '/users/me';
|
usersPatchCurrentUser.PATH = '/users/me';
|
||||||
|
|||||||
@@ -1,30 +1,35 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { UserRead } from '../../models/user-read';
|
import { UserRead } from '../../models/user-read';
|
||||||
import { UserUpdate } from '../../models/user-update';
|
import { UserUpdate } from '../../models/user-update';
|
||||||
|
|
||||||
export interface UsersPatchUser$Params {
|
export interface UsersPatchUser$Params {
|
||||||
id: string;
|
id: string;
|
||||||
body: UserUpdate;
|
body: UserUpdate
|
||||||
}
|
}
|
||||||
export function usersPatchUser(
|
|
||||||
http: HttpClient,
|
export function usersPatchUser(http: HttpClient, rootUrl: string, params: UsersPatchUser$Params, context?: HttpContext): Observable<StrictHttpResponse<UserRead>> {
|
||||||
rootUrl: string,
|
|
||||||
params: UsersPatchUser$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<UserRead>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, usersPatchUser.PATH, 'patch');
|
const rb = new RequestBuilder(rootUrl, usersPatchUser.PATH, 'patch');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('id', params.id, {});
|
rb.path('id', params.id, {});
|
||||||
rb.body(params.body, 'application/json');
|
rb.body(params.body, 'application/json');
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<UserRead>;
|
return r as StrictHttpResponse<UserRead>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
usersPatchUser.PATH = '/users/{id}';
|
usersPatchUser.PATH = '/users/{id}';
|
||||||
|
|||||||
@@ -1,27 +1,32 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, map } from 'rxjs/operators';
|
import { filter, map } from 'rxjs/operators';
|
||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { UserRead } from '../../models/user-read';
|
import { UserRead } from '../../models/user-read';
|
||||||
|
|
||||||
export interface UsersUser$Params {
|
export interface UsersUser$Params {
|
||||||
id: string;
|
id: string;
|
||||||
}
|
}
|
||||||
export function usersUser(
|
|
||||||
http: HttpClient,
|
export function usersUser(http: HttpClient, rootUrl: string, params: UsersUser$Params, context?: HttpContext): Observable<StrictHttpResponse<UserRead>> {
|
||||||
rootUrl: string,
|
|
||||||
params: UsersUser$Params,
|
|
||||||
context?: HttpContext,
|
|
||||||
): Observable<StrictHttpResponse<UserRead>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, usersUser.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, usersUser.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('id', params.id, {});
|
rb.path('id', params.id, {});
|
||||||
}
|
}
|
||||||
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
|
||||||
|
return http.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context })
|
||||||
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<UserRead>;
|
return r as StrictHttpResponse<UserRead>;
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
usersUser.PATH = '/users/{id}';
|
usersUser.PATH = '/users/{id}';
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export type { AuthCookieLogin$Params as AuthCookieLogin$Params } from './fn/auth/auth-cookie-login';
|
export type { AuthCookieLogin$Params as AuthCookieLogin$Params } from './fn/auth/auth-cookie-login';
|
||||||
export { authCookieLogin as authCookieLogin } from './fn/auth/auth-cookie-login';
|
export { authCookieLogin as authCookieLogin } from './fn/auth/auth-cookie-login';
|
||||||
export type { AuthCookieLogout$Params as AuthCookieLogout$Params } from './fn/auth/auth-cookie-logout';
|
export type { AuthCookieLogout$Params as AuthCookieLogout$Params } from './fn/auth/auth-cookie-logout';
|
||||||
export { authCookieLogout as authCookieLogout } from './fn/auth/auth-cookie-logout';
|
export { authCookieLogout as authCookieLogout } from './fn/auth/auth-cookie-logout';
|
||||||
|
export type { Capabilities$Params as Capabilities$Params } from './fn/exports/capabilities';
|
||||||
|
export { capabilities as capabilities } from './fn/exports/capabilities';
|
||||||
|
export type { Export$Params as Export$Params } from './fn/exports/export';
|
||||||
|
export { export$ as export$ } from './fn/exports/export';
|
||||||
export type { Domains$Params as Domains$Params } from './fn/operations/domains';
|
export type { Domains$Params as Domains$Params } from './fn/operations/domains';
|
||||||
export { domains as domains } from './fn/operations/domains';
|
export { domains as domains } from './fn/operations/domains';
|
||||||
export type { Health$Params as Health$Params } from './fn/operations/health';
|
export type { Health$Params as Health$Params } from './fn/operations/health';
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export type { Analysis } from './models/analysis';
|
export type { Analysis } from './models/analysis';
|
||||||
export type { Answers } from './models/answers';
|
export type { Answers } from './models/answers';
|
||||||
export type { BodyAddClinicalValidation } from './models/body-add-clinical-validation';
|
export type { BodyAddClinicalValidation } from './models/body-add-clinical-validation';
|
||||||
@@ -6,6 +9,7 @@ export type { Browsed } from './models/browsed';
|
|||||||
export type { Catalog } from './models/catalog';
|
export type { Catalog } from './models/catalog';
|
||||||
export type { Condition } from './models/condition';
|
export type { Condition } from './models/condition';
|
||||||
export type { Correction } from './models/correction';
|
export type { Correction } from './models/correction';
|
||||||
|
export type { Document } from './models/document';
|
||||||
export type { Domain } from './models/domain';
|
export type { Domain } from './models/domain';
|
||||||
export type { Entry } from './models/entry';
|
export type { Entry } from './models/entry';
|
||||||
export type { ErrorModel } from './models/error-model';
|
export type { ErrorModel } from './models/error-model';
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Metric } from '../models/metric';
|
import { Metric } from '../models/metric';
|
||||||
import { Relation } from '../models/relation';
|
import { Relation } from '../models/relation';
|
||||||
export interface Analysis {
|
export interface Analysis {
|
||||||
age_months: number | null;
|
age_months: (number | null);
|
||||||
id: string;
|
id: string;
|
||||||
level: string | null;
|
level: (string | null);
|
||||||
metrics: Array<Metric>;
|
metrics: Array<Metric>;
|
||||||
relation?: Array<Relation>;
|
relation?: Array<Relation>;
|
||||||
valid: boolean | null;
|
valid: (boolean | null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface Answers {
|
export interface Answers {
|
||||||
answers?: {
|
answers?: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
};
|
||||||
node?: string | null;
|
node?: (string | null);
|
||||||
pipeline?: string | null;
|
pipeline?: (string | null);
|
||||||
type: string;
|
type: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface BodyAddClinicalValidation {
|
export interface BodyAddClinicalValidation {
|
||||||
file: string;
|
file: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface BodyUpload {
|
export interface BodyUpload {
|
||||||
files: Array<string>;
|
files: Array<string>;
|
||||||
folder?: string | null;
|
folder?: (string | null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Entry } from '../models/entry';
|
import { Entry } from '../models/entry';
|
||||||
export interface Browsed {
|
export interface Browsed {
|
||||||
entries: Array<Entry>;
|
entries: Array<Entry>;
|
||||||
parent: string | null;
|
parent: (string | null);
|
||||||
path: string | null;
|
path: (string | null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Group } from '../models/group';
|
import { Group } from '../models/group';
|
||||||
import { Option } from '../models/option';
|
import { Option } from '../models/option';
|
||||||
import { Provider } from '../models/provider';
|
import { Provider } from '../models/provider';
|
||||||
|
|||||||
@@ -1,5 +1,16 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface Condition {
|
export interface Condition {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Por ejemplo «text», el texto leído del documento.
|
||||||
|
*/
|
||||||
column: string;
|
column: string;
|
||||||
op: 'equals' | 'contains' | 'matches' | 'present';
|
op: 'equals' | 'contains' | 'matches' | 'present';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Lo que se busca; por ejemplo «citología».
|
||||||
|
*/
|
||||||
value?: string;
|
value?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,13 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* One field of one record as a reviewer read it in the source document: an identity
|
||||||
|
* field (a mistyped record number) or a study's (a stage the scan made unreadable).
|
||||||
|
*/
|
||||||
export interface Correction {
|
export interface Correction {
|
||||||
entity?:
|
entity?: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||||
| 'identity'
|
|
||||||
| 'cervical_cytology'
|
|
||||||
| 'cervical_biopsy'
|
|
||||||
| 'mammography'
|
|
||||||
| 'breast_biopsy'
|
|
||||||
| 'breast_treatment'
|
|
||||||
| 'breast_recurrence'
|
|
||||||
| 'clinical_note'
|
|
||||||
| 'death'
|
|
||||||
| 'mchat'
|
|
||||||
| 'ados2'
|
|
||||||
| 'eeg';
|
|
||||||
field: string;
|
field: string;
|
||||||
record: string;
|
record: string;
|
||||||
value: string;
|
value: string;
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export interface Document {
|
||||||
|
columns: Array<string>;
|
||||||
|
parameters: Array<Array<string>>;
|
||||||
|
risk_scales?: Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>;
|
||||||
|
row_stages?: Array<Array<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>>;
|
||||||
|
rows: Array<Array<string>>;
|
||||||
|
timeline?: Array<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
|
title: string;
|
||||||
|
}
|
||||||
@@ -1,2 +1,13 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Domain } from './domain';
|
import { Domain } from './domain';
|
||||||
export const DOMAIN: Domain[] = ['cacu', 'cama', 'tea'];
|
|
||||||
|
/**
|
||||||
|
* Each possible value of `Domain`
|
||||||
|
*/
|
||||||
|
export const DOMAIN: Domain[] = [
|
||||||
|
'cacu',
|
||||||
|
'cama',
|
||||||
|
'tea'
|
||||||
|
];
|
||||||
@@ -1 +1,5 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export type Domain = 'cacu' | 'cama' | 'tea';
|
export type Domain = 'cacu' | 'cama' | 'tea';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface Entry {
|
export interface Entry {
|
||||||
kind: 'folder' | 'file';
|
kind: 'folder' | 'file';
|
||||||
name: string;
|
name: string;
|
||||||
path: string;
|
path: string;
|
||||||
size?: number | null;
|
size?: (number | null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface ErrorModel {
|
export interface ErrorModel {
|
||||||
detail:
|
detail: (string | {
|
||||||
| string
|
|
||||||
| {
|
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,34 +1,54 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Position } from '../models/position';
|
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 {
|
export interface Extract {
|
||||||
column: string | Array<string>;
|
column: (string | Array<string>);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dato → columna, sin leer el texto.
|
||||||
|
*/
|
||||||
columns?: {
|
columns?: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
concept_map?: string | null;
|
concept_map?: (string | null);
|
||||||
entity:
|
|
||||||
| 'identity'
|
/**
|
||||||
| 'cervical_cytology'
|
* Qué estudio se saca del documento.
|
||||||
| 'cervical_biopsy'
|
*/
|
||||||
| 'mammography'
|
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||||
| 'breast_biopsy'
|
|
||||||
| 'breast_treatment'
|
|
||||||
| 'breast_recurrence'
|
|
||||||
| 'clinical_note'
|
|
||||||
| 'death'
|
|
||||||
| 'mchat'
|
|
||||||
| 'ados2'
|
|
||||||
| 'eeg';
|
|
||||||
formats?: {
|
formats?: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Para el modelo de lenguaje.
|
||||||
|
*/
|
||||||
hints?: string;
|
hints?: string;
|
||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'extract';
|
kind?: 'extract';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cómo se ve en el diagrama.
|
||||||
|
*/
|
||||||
label?: string;
|
label?: string;
|
||||||
method?: 'auto' | 'llm' | 'patterns';
|
method?: 'auto' | 'llm' | 'patterns';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dato → expresión con un grupo ( ).
|
||||||
|
*/
|
||||||
patterns?: {
|
patterns?: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
position?: Position | null;
|
position?: (Position | null);
|
||||||
}
|
}
|
||||||
|
|||||||
+16
-15
@@ -1,23 +1,24 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Position } from '../models/position';
|
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 {
|
export interface Fhir {
|
||||||
column?: string;
|
column?: string;
|
||||||
concept_map?: string | null;
|
concept_map?: (string | null);
|
||||||
entity:
|
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||||
| 'identity'
|
|
||||||
| 'cervical_cytology'
|
|
||||||
| 'cervical_biopsy'
|
|
||||||
| 'mammography'
|
|
||||||
| 'breast_biopsy'
|
|
||||||
| 'breast_treatment'
|
|
||||||
| 'breast_recurrence'
|
|
||||||
| 'clinical_note'
|
|
||||||
| 'death'
|
|
||||||
| 'mchat'
|
|
||||||
| 'ados2'
|
|
||||||
| 'eeg';
|
|
||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'fhir';
|
kind?: 'fhir';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cómo se ve en el diagrama.
|
||||||
|
*/
|
||||||
label?: string;
|
label?: string;
|
||||||
position?: Position | null;
|
position?: (Position | null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Option } from '../models/option';
|
import { Option } from '../models/option';
|
||||||
export interface FieldSpec {
|
export interface FieldSpec {
|
||||||
advanced?: boolean;
|
advanced?: boolean;
|
||||||
@@ -6,19 +9,7 @@ export interface FieldSpec {
|
|||||||
label: string;
|
label: string;
|
||||||
options?: Array<Option>;
|
options?: Array<Option>;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
provider?: string | null;
|
provider?: (string | null);
|
||||||
required?: boolean;
|
required?: boolean;
|
||||||
type?:
|
type?: 'text' | 'number' | 'password' | 'select' | 'folder' | 'server_file' | 'upload' | 'url' | 'oauth' | 'table' | 'format' | 'columns';
|
||||||
| 'text'
|
|
||||||
| 'number'
|
|
||||||
| 'password'
|
|
||||||
| 'select'
|
|
||||||
| 'folder'
|
|
||||||
| 'server_file'
|
|
||||||
| 'upload'
|
|
||||||
| 'url'
|
|
||||||
| 'oauth'
|
|
||||||
| 'table'
|
|
||||||
| 'format'
|
|
||||||
| 'columns';
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface Group {
|
export interface Group {
|
||||||
description: string;
|
description: string;
|
||||||
title: string;
|
title: string;
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* How the Conectar dialog drew a source: its type (core.sources) and the answers given.
|
||||||
|
* The node's dlt fields are made from them; drawn by hand ("Avanzado"), a node has none.
|
||||||
|
*/
|
||||||
export interface Guided {
|
export interface Guided {
|
||||||
answers?: {
|
answers?: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { ValidationError } from '../models/validation-error';
|
import { ValidationError } from '../models/validation-error';
|
||||||
export interface HttpValidationError {
|
export interface HttpValidationError {
|
||||||
detail?: Array<ValidationError>;
|
detail?: Array<ValidationError>;
|
||||||
|
|||||||
@@ -1,10 +1,25 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Position } from '../models/position';
|
import { Position } from '../models/position';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Two inputs side by side where their columns match.
|
||||||
|
*/
|
||||||
export interface Join {
|
export interface Join {
|
||||||
how?: 'inner' | 'left';
|
how?: 'inner' | 'left';
|
||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'join';
|
kind?: 'join';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cómo se ve en el diagrama.
|
||||||
|
*/
|
||||||
label?: string;
|
label?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Columna de la primera entrada = columna de la segunda.
|
||||||
|
*/
|
||||||
on: Array<[string, string]>;
|
on: Array<[string, string]>;
|
||||||
position?: Position | null;
|
position?: (Position | null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,35 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Position } from '../models/position';
|
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 {
|
export interface Link {
|
||||||
fields?: Array<string>;
|
fields?: Array<string>;
|
||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'link';
|
kind?: 'link';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cómo se ve en el diagrama.
|
||||||
|
*/
|
||||||
label?: string;
|
label?: string;
|
||||||
position?: Position | null;
|
position?: (Position | null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parecidos por encima de esto los ve un revisor.
|
||||||
|
*/
|
||||||
review?: number;
|
review?: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vacío: las de siempre (mismo identificador, o misma fecha de nacimiento y nombre).
|
||||||
|
*/
|
||||||
rules?: Array<string>;
|
rules?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,15 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* What "Probar conexión" shows: a database's tables (the resources of `source`, built
|
||||||
|
* from `args`), or the first rows the type's own node reads (files, records).
|
||||||
|
*/
|
||||||
export interface Listing {
|
export interface Listing {
|
||||||
args?: {
|
args?: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
};
|
||||||
kind: 'tables' | 'rows';
|
kind: 'tables' | 'rows';
|
||||||
source?: string | null;
|
source?: (string | null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface Login {
|
export interface Login {
|
||||||
client_id?: string | null;
|
client_id?: (string | null);
|
||||||
client_secret?: string | null;
|
client_secret?: (string | null);
|
||||||
grant_type?: string | null;
|
grant_type?: (string | null);
|
||||||
password: string;
|
password: string;
|
||||||
scope?: string;
|
scope?: string;
|
||||||
username: string;
|
username: string;
|
||||||
|
|||||||
@@ -1,17 +1,45 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Position } from '../models/position';
|
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 {
|
export interface Map {
|
||||||
concept_map?: string | null;
|
|
||||||
|
/**
|
||||||
|
* La tabla de códigos del sitio.
|
||||||
|
*/
|
||||||
|
concept_map?: (string | null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dato de la plataforma → columna del sitio.
|
||||||
|
*/
|
||||||
fields: {
|
fields: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Por ejemplo %d/%m/%Y.
|
||||||
|
*/
|
||||||
formats?: {
|
formats?: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'map';
|
kind?: 'map';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cómo se ve en el diagrama.
|
||||||
|
*/
|
||||||
label?: string;
|
label?: string;
|
||||||
position?: Position | null;
|
position?: (Position | null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Un dato igual para todas las filas.
|
||||||
|
*/
|
||||||
values?: {
|
values?: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Site } from '../models/site';
|
import { Site } from '../models/site';
|
||||||
export interface Metric {
|
export interface Metric {
|
||||||
code: string;
|
code: string;
|
||||||
electrodes?: Array<Site>;
|
electrodes?: Array<Site>;
|
||||||
median?: number | null;
|
median?: (number | null);
|
||||||
model: string | null;
|
model: (string | null);
|
||||||
outside: number | null;
|
outside: (number | null);
|
||||||
p5?: number | null;
|
p5?: (number | null);
|
||||||
p95?: number | null;
|
p95?: (number | null);
|
||||||
value: number;
|
value: number;
|
||||||
z: number | null;
|
z: (number | null);
|
||||||
zones?: Array<Site>;
|
zones?: Array<Site>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface Model {
|
export interface Model {
|
||||||
name: string;
|
name: string;
|
||||||
title: string;
|
title: string;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user