Compare commits
2 Commits
d4d3ea3837
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| c1c6f10662 | |||
| 2811961a5a |
+3
-4
@@ -1,4 +1,3 @@
|
|||||||
node_modules/
|
node_modules
|
||||||
dist/
|
dist
|
||||||
.angular/
|
.angular
|
||||||
.git/
|
|
||||||
|
|||||||
+4
-44
@@ -1,44 +1,4 @@
|
|||||||
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
|
__pycache__/
|
||||||
|
node_modules/
|
||||||
# Compiled output
|
dist/
|
||||||
/dist
|
.angular/
|
||||||
/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
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
src/app/api/
|
||||||
Vendored
-4
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
|
|
||||||
"recommendations": ["angular.ng-template"]
|
|
||||||
}
|
|
||||||
Vendored
-20
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "ng serve",
|
|
||||||
"type": "chrome",
|
|
||||||
"request": "launch",
|
|
||||||
"preLaunchTask": "npm: start",
|
|
||||||
"url": "http://localhost:4200/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "ng test",
|
|
||||||
"type": "chrome",
|
|
||||||
"request": "launch",
|
|
||||||
"preLaunchTask": "npm: test",
|
|
||||||
"url": "http://localhost:9876/debug.html"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Vendored
-42
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"type": "npm",
|
|
||||||
"script": "start",
|
|
||||||
"isBackground": true,
|
|
||||||
"problemMatcher": {
|
|
||||||
"owner": "typescript",
|
|
||||||
"pattern": "$tsc",
|
|
||||||
"background": {
|
|
||||||
"activeOnStart": true,
|
|
||||||
"beginsPattern": {
|
|
||||||
"regexp": "Changes detected"
|
|
||||||
},
|
|
||||||
"endsPattern": {
|
|
||||||
"regexp": "bundle generation (complete|failed)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "npm",
|
|
||||||
"script": "test",
|
|
||||||
"isBackground": true,
|
|
||||||
"problemMatcher": {
|
|
||||||
"owner": "typescript",
|
|
||||||
"pattern": "$tsc",
|
|
||||||
"background": {
|
|
||||||
"activeOnStart": true,
|
|
||||||
"beginsPattern": {
|
|
||||||
"regexp": "Changes detected"
|
|
||||||
},
|
|
||||||
"endsPattern": {
|
|
||||||
"regexp": "bundle generation (complete|failed)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
+4
-6
@@ -1,12 +1,10 @@
|
|||||||
# Production image: the Angular build served by nginx, which proxies the API paths to `webapi`.
|
FROM node:24-alpine AS build
|
||||||
FROM node:22-slim AS build
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npx ng build --configuration production
|
RUN npx ng build
|
||||||
|
|
||||||
FROM nginx:1.27-alpine
|
FROM nginx:1.29-alpine
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --from=build /app/dist/WebApp/browser /usr/share/nginx/html
|
COPY --from=build /app/dist/webapp/browser /usr/share/nginx/html
|
||||||
EXPOSE 80
|
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
# WebApp
|
|
||||||
|
|
||||||
Interfaz de ISSSTELEON en Angular y Angular Material: conexión e importación de
|
|
||||||
datos (`/conectar`), bitácora de cargas (`/bitacora`), gobernanza y tablero de
|
|
||||||
indicadores (`/indicadores`).
|
|
||||||
|
|
||||||
```bash
|
|
||||||
npm ci
|
|
||||||
npx ng serve # http://localhost:4200
|
|
||||||
npx ng test --watch=false # pruebas unitarias (Vitest)
|
|
||||||
npx ng build # compilación de producción en dist/WebApp
|
|
||||||
```
|
|
||||||
|
|
||||||
`ng serve` envía las rutas de la API a WebApi en `localhost:5050`
|
|
||||||
(`proxy.conf.json`). La imagen de Docker (`Dockerfile`) sirve la compilación con
|
|
||||||
nginx (`nginx.conf`), que reenvía esas mismas rutas al servicio `webapi`.
|
|
||||||
+18
-23
@@ -2,12 +2,11 @@
|
|||||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"cli": {
|
"cli": {
|
||||||
"packageManager": "npm",
|
"packageManager": "npm"
|
||||||
"analytics": false
|
|
||||||
},
|
},
|
||||||
"newProjectRoot": "projects",
|
"newProjectRoot": "projects",
|
||||||
"projects": {
|
"projects": {
|
||||||
"WebApp": {
|
"webapp": {
|
||||||
"projectType": "application",
|
"projectType": "application",
|
||||||
"schematics": {
|
"schematics": {
|
||||||
"@schematics/angular:component": {
|
"@schematics/angular:component": {
|
||||||
@@ -31,15 +30,17 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"node_modules/@fontsource/roboto/300.css",
|
"@fontsource/roboto/300.css",
|
||||||
"node_modules/@fontsource/roboto/400.css",
|
"@fontsource/roboto/400.css",
|
||||||
"node_modules/@fontsource/roboto/500.css",
|
"@fontsource/roboto/500.css",
|
||||||
"node_modules/@fontsource/rajdhani/600.css",
|
"@fontsource/roboto/700.css",
|
||||||
"node_modules/@fontsource/rajdhani/700.css",
|
"@fontsource/rajdhani/500.css",
|
||||||
"node_modules/@fontsource/roboto-mono/400.css",
|
"@fontsource/rajdhani/600.css",
|
||||||
"node_modules/@fontsource/roboto-mono/600.css",
|
"material-symbols/outlined.css",
|
||||||
"node_modules/material-icons/iconfont/filled.css",
|
|
||||||
"src/styles.scss"
|
"src/styles.scss"
|
||||||
|
],
|
||||||
|
"allowedCommonJsDependencies": [
|
||||||
|
"plotly.js-cartesian-dist-min"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
@@ -47,13 +48,13 @@
|
|||||||
"budgets": [
|
"budgets": [
|
||||||
{
|
{
|
||||||
"type": "initial",
|
"type": "initial",
|
||||||
"maximumWarning": "500kB",
|
"maximumWarning": "600kB",
|
||||||
"maximumError": "1MB"
|
"maximumError": "1MB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "anyComponentStyle",
|
"type": "anyComponentStyle",
|
||||||
"maximumWarning": "6kB",
|
"maximumWarning": "4kB",
|
||||||
"maximumError": "10kB"
|
"maximumError": "8kB"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputHashing": "all"
|
"outputHashing": "all"
|
||||||
@@ -68,24 +69,18 @@
|
|||||||
},
|
},
|
||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular/build:dev-server",
|
"builder": "@angular/build:dev-server",
|
||||||
"options": {
|
|
||||||
"proxyConfig": "proxy.conf.json"
|
|
||||||
},
|
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
"buildTarget": "WebApp:build:production"
|
"buildTarget": "webapp:build:production"
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"buildTarget": "WebApp:build:development"
|
"buildTarget": "webapp:build:development"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "development"
|
"defaultConfiguration": "development"
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"builder": "@angular/build:unit-test",
|
"builder": "@angular/build:unit-test"
|
||||||
"options": {
|
|
||||||
"isolate": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+9
-33
@@ -1,35 +1,11 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
root /usr/share/nginx/html;
|
||||||
root /usr/share/nginx/html;
|
location /api/ {
|
||||||
|
proxy_pass http://api:8000/;
|
||||||
# Files travel inside the import requests (multipart or base64 JSON):
|
proxy_read_timeout 120s;
|
||||||
# keep this above WebApi's WEBAPI_MAX_UPLOAD_MB (200 MB default) plus
|
}
|
||||||
# the ~33% base64 overhead.
|
location / {
|
||||||
client_max_body_size 270m;
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
gzip on;
|
|
||||||
gzip_types text/css application/javascript application/json image/svg+xml;
|
|
||||||
gzip_min_length 1024;
|
|
||||||
|
|
||||||
location ~ ^/(api|imports|data|cacu|cama|tea|governance|reportes|health)(/|$) {
|
|
||||||
proxy_pass http://webapi:5000;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
# OCR over a stack of scanned pages takes a while.
|
|
||||||
proxy_read_timeout 600s;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Bundles carry a content hash in their name; index.html doesn't, so it
|
|
||||||
# must be revalidated or browsers keep running the previous release.
|
|
||||||
location ~* \.(js|css)$ {
|
|
||||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
|
||||||
try_files $uri =404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
add_header Cache-Control "no-cache";
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+2304
-2919
File diff suppressed because it is too large
Load Diff
+35
-24
@@ -1,41 +1,52 @@
|
|||||||
{
|
{
|
||||||
"name": "web-app",
|
"name": "webapp",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve",
|
"start": "ng serve --proxy-config proxy.conf.json",
|
||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
"watch": "ng build --watch --configuration development",
|
"watch": "ng build --watch --configuration development",
|
||||||
"test": "ng test"
|
"test": "ng test",
|
||||||
|
"api": "ng-openapi-gen -c ng-openapi-gen.json"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "npm@11.17.0",
|
"packageManager": "npm@11.20.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/cdk": "^22.1.7",
|
"@angular/cdk": "^22.3.0",
|
||||||
"@angular/common": "^22.1.0",
|
"@angular/common": "^22.3.0",
|
||||||
"@angular/compiler": "^22.1.0",
|
"@angular/compiler": "^22.3.0",
|
||||||
"@angular/core": "^22.1.0",
|
"@angular/core": "^22.3.0",
|
||||||
"@angular/forms": "^22.1.0",
|
"@angular/forms": "^22.3.0",
|
||||||
"@angular/material": "^22.1.7",
|
"@angular/material": "^22.3.0",
|
||||||
"@angular/platform-browser": "^22.1.0",
|
"@angular/platform-browser": "^22.3.0",
|
||||||
"@angular/router": "^22.1.0",
|
"@angular/router": "^22.3.0",
|
||||||
"@fontsource/rajdhani": "^5.3.0",
|
"@fontsource/rajdhani": "5.3.0",
|
||||||
"@fontsource/roboto": "^5.3.0",
|
"@fontsource/roboto": "5.3.0",
|
||||||
"@fontsource/roboto-mono": "^5.3.0",
|
"@ngx-formly/core": "11.2.0",
|
||||||
"material-icons": "^1.13.14",
|
"@ngx-formly/material": "11.2.0",
|
||||||
"pdfmake": "0.3.14",
|
"d3-drag": "3.0.0",
|
||||||
|
"d3-selection": "3.0.0",
|
||||||
|
"d3-zoom": "3.0.0",
|
||||||
|
"material-symbols": "0.48.3",
|
||||||
|
"ngx-vflow": "2.7.0",
|
||||||
"plotly.js-cartesian-dist-min": "4.1.2",
|
"plotly.js-cartesian-dist-min": "4.1.2",
|
||||||
"rxjs": "~7.8.0",
|
"rxjs": "~7.8.0",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0"
|
||||||
"write-excel-file": "4.1.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/build": "^22.1.8",
|
"@angular/build": "^22.3.0",
|
||||||
"@angular/cli": "^22.1.8",
|
"@angular/cli": "^22.3.0",
|
||||||
"@angular/compiler-cli": "^22.1.0",
|
"@angular/compiler-cli": "^22.3.0",
|
||||||
"jsdom": "^28.0.0",
|
"@playwright/test": "1.64.1",
|
||||||
|
"@types/d3-drag": "3.0.7",
|
||||||
|
"@types/d3-selection": "3.0.13",
|
||||||
|
"@types/d3-zoom": "3.0.9",
|
||||||
|
"@types/fhir": "0.0.44",
|
||||||
|
"@types/plotly.js": "3.0.15",
|
||||||
|
"jsdom": "^31.0.0",
|
||||||
|
"ng-openapi-gen": "^1.1.0",
|
||||||
"prettier": "^3.8.1",
|
"prettier": "^3.8.1",
|
||||||
"typescript": "~6.0.2",
|
"typescript": "~6.0.2",
|
||||||
"vitest": "^4.0.8"
|
"vitest": "^5.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"/api": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
|
|
||||||
"/imports": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
|
|
||||||
"/data": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
|
|
||||||
"/health": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
|
|
||||||
"/cacu": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
|
|
||||||
"/cama": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
|
|
||||||
"/tea": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
|
|
||||||
"/governance": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true },
|
|
||||||
"/reportes": { "target": "http://localhost:5050", "secure": false, "changeOrigin": true }
|
|
||||||
}
|
|
||||||
+24
-29
@@ -1,10 +1,5 @@
|
|||||||
// 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, neutral: #5c5f66
|
|
||||||
$_palettes: (
|
$_palettes: (
|
||||||
primary: (
|
primary: (
|
||||||
0: #000000,
|
0: #000000,
|
||||||
@@ -62,31 +57,31 @@ $_palettes: (
|
|||||||
),
|
),
|
||||||
neutral: (
|
neutral: (
|
||||||
0: #000000,
|
0: #000000,
|
||||||
10: #181c22,
|
10: #1b1c14,
|
||||||
20: #2d3037,
|
20: #303128,
|
||||||
25: #383b42,
|
25: #3b3c32,
|
||||||
30: #44474d,
|
30: #46483d,
|
||||||
35: #4f5259,
|
35: #525348,
|
||||||
40: #5b5e65,
|
40: #5e5f54,
|
||||||
50: #74777e,
|
50: #77786c,
|
||||||
60: #8e9198,
|
60: #919285,
|
||||||
70: #a9abb3,
|
70: #acac9f,
|
||||||
80: #c4c6ce,
|
80: #c7c7b9,
|
||||||
90: #e0e2ea,
|
90: #e4e3d5,
|
||||||
95: #eff0f9,
|
95: #f2f2e3,
|
||||||
98: #f9f9ff,
|
98: #fbfaeb,
|
||||||
99: #fdfcff,
|
99: #fdfdf5,
|
||||||
100: #ffffff,
|
100: #ffffff,
|
||||||
4: #0b0e14,
|
4: #0d0f07,
|
||||||
6: #101419,
|
6: #13140c,
|
||||||
12: #1c2026,
|
12: #1f2017,
|
||||||
17: #272a30,
|
17: #292b21,
|
||||||
22: #32353b,
|
22: #34362c,
|
||||||
24: #363940,
|
24: #393a30,
|
||||||
87: #d8dae2,
|
87: #dbdbcd,
|
||||||
92: #e6e8f0,
|
92: #e9e9da,
|
||||||
94: #ecedf6,
|
94: #efefe0,
|
||||||
96: #f1f3fc,
|
96: #f5f4e6,
|
||||||
),
|
),
|
||||||
neutral-variant: (
|
neutral-variant: (
|
||||||
0: #000000,
|
0: #000000,
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
export function provideApiConfiguration(rootUrl: string) {
|
||||||
|
var config = new ApiConfiguration();
|
||||||
|
config.rootUrl = rootUrl;
|
||||||
|
return {
|
||||||
|
provide: ApiConfiguration,
|
||||||
|
useValue: config,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root',
|
||||||
|
})
|
||||||
|
export class ApiConfiguration {
|
||||||
|
rootUrl: string = '';
|
||||||
|
}
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable, firstValueFrom } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { ApiConfiguration } from './api-configuration';
|
||||||
|
import { StrictHttpResponse } from './strict-http-response';
|
||||||
|
export type ApiFnOptional<P, R> = (
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: P,
|
||||||
|
context?: HttpContext,
|
||||||
|
) => Observable<StrictHttpResponse<R>>;
|
||||||
|
export type ApiFnRequired<P, R> = (
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: P,
|
||||||
|
context?: HttpContext,
|
||||||
|
) => Observable<StrictHttpResponse<R>>;
|
||||||
|
@Injectable({ providedIn: 'root' })
|
||||||
|
export class Api {
|
||||||
|
constructor(
|
||||||
|
private config: ApiConfiguration,
|
||||||
|
private http: HttpClient,
|
||||||
|
) {}
|
||||||
|
private _rootUrl?: string;
|
||||||
|
get rootUrl(): string {
|
||||||
|
return this._rootUrl || this.config.rootUrl;
|
||||||
|
}
|
||||||
|
set rootUrl(rootUrl: string) {
|
||||||
|
this._rootUrl = rootUrl;
|
||||||
|
}
|
||||||
|
invoke<P, R>(fn: ApiFnRequired<P, R>, params: P, context?: HttpContext): Promise<R>;
|
||||||
|
invoke<P, R>(fn: ApiFnOptional<P, R>, params?: P, context?: HttpContext): Promise<R>;
|
||||||
|
async invoke<P, R>(
|
||||||
|
fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>,
|
||||||
|
params: P,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Promise<R> {
|
||||||
|
const resp = this.invoke$Response(fn, params, context);
|
||||||
|
return (await resp).body;
|
||||||
|
}
|
||||||
|
invoke$Response<P, R>(
|
||||||
|
fn: ApiFnRequired<P, R>,
|
||||||
|
params: P,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Promise<StrictHttpResponse<R>>;
|
||||||
|
invoke$Response<P, R>(
|
||||||
|
fn: ApiFnOptional<P, R>,
|
||||||
|
params?: P,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Promise<StrictHttpResponse<R>>;
|
||||||
|
invoke$Response<P, R>(
|
||||||
|
fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>,
|
||||||
|
params: P,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Promise<StrictHttpResponse<R>> {
|
||||||
|
const obs = fn(this.http, this.rootUrl, params, context).pipe(
|
||||||
|
filter((r) => r instanceof HttpResponse),
|
||||||
|
map((r) => r as StrictHttpResponse<R>),
|
||||||
|
);
|
||||||
|
return firstValueFrom(obs);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Login } from '../../models/login';
|
||||||
|
export interface AuthCookieLogin$Params {
|
||||||
|
body: Login;
|
||||||
|
}
|
||||||
|
export function authCookieLogin(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AuthCookieLogin$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<any>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, authCookieLogin.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/x-www-form-urlencoded');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<any>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
authCookieLogin.PATH = '/auth/login';
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface AuthCookieLogout$Params {}
|
||||||
|
export function authCookieLogout(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: AuthCookieLogout$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<any>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, authCookieLogout.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<any>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
authCookieLogout.PATH = '/auth/logout';
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Study } from '../../models/study';
|
||||||
|
export interface Studies$Params {}
|
||||||
|
export function studies(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: Studies$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<Study>>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, studies.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<Study>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
studies.PATH = '/tea/eegs';
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Analysis } from '../../models/analysis';
|
||||||
|
export interface Study$Params {
|
||||||
|
eeg_id: string;
|
||||||
|
}
|
||||||
|
export function study(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Study$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Analysis>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, study.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('eeg_id', params.eeg_id, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Analysis>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
study.PATH = '/tea/eegs/{eeg_id}';
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface Metadata$Params {
|
||||||
|
domain: Domain;
|
||||||
|
}
|
||||||
|
export function metadata(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Metadata$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, metadata.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
metadata.PATH = '/{domain}/fhir/metadata';
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface PostBundle$Params {
|
||||||
|
domain: Domain;
|
||||||
|
sender: string;
|
||||||
|
body: {
|
||||||
|
[key: string]: any;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function postBundle(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: PostBundle$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, postBundle.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.query('sender', params.sender, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
postBundle.PATH = '/{domain}/fhir';
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface ReadMeasure$Params {
|
||||||
|
domain: Domain;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
export function readMeasure(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: ReadMeasure$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, readMeasure.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
readMeasure.PATH = '/{domain}/fhir/Measure/{id}';
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface ReadPatient$Params {
|
||||||
|
domain: Domain;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
export function readPatient(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: ReadPatient$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, readPatient.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
readPatient.PATH = '/{domain}/fhir/Patient/{id}';
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface SearchCondition$Params {
|
||||||
|
domain: Domain;
|
||||||
|
subject?: string | null;
|
||||||
|
_count?: number | null;
|
||||||
|
_offset?: number;
|
||||||
|
}
|
||||||
|
export function searchCondition(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SearchCondition$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, searchCondition.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.query('subject', params.subject, {});
|
||||||
|
rb.query('_count', params['_count'], {});
|
||||||
|
rb.query('_offset', params['_offset'], {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
searchCondition.PATH = '/{domain}/fhir/Condition';
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface SearchDiagnosticReport$Params {
|
||||||
|
domain: Domain;
|
||||||
|
subject?: string | null;
|
||||||
|
_count?: number | null;
|
||||||
|
_offset?: number;
|
||||||
|
}
|
||||||
|
export function searchDiagnosticReport(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SearchDiagnosticReport$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, searchDiagnosticReport.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.query('subject', params.subject, {});
|
||||||
|
rb.query('_count', params['_count'], {});
|
||||||
|
rb.query('_offset', params['_offset'], {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
searchDiagnosticReport.PATH = '/{domain}/fhir/DiagnosticReport';
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface SearchEncounter$Params {
|
||||||
|
domain: Domain;
|
||||||
|
subject?: string | null;
|
||||||
|
_count?: number | null;
|
||||||
|
_offset?: number;
|
||||||
|
}
|
||||||
|
export function searchEncounter(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SearchEncounter$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, searchEncounter.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.query('subject', params.subject, {});
|
||||||
|
rb.query('_count', params['_count'], {});
|
||||||
|
rb.query('_offset', params['_offset'], {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
searchEncounter.PATH = '/{domain}/fhir/Encounter';
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface SearchMeasureReport$Params {
|
||||||
|
domain: Domain;
|
||||||
|
measure: string;
|
||||||
|
'reporting-period': string;
|
||||||
|
'as-of'?: string | null;
|
||||||
|
'event-cutoff'?: string | null;
|
||||||
|
_count?: number | null;
|
||||||
|
_offset?: number;
|
||||||
|
}
|
||||||
|
export function searchMeasureReport(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SearchMeasureReport$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, searchMeasureReport.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.query('measure', params.measure, {});
|
||||||
|
rb.query('reporting-period', params['reporting-period'], {});
|
||||||
|
rb.query('as-of', params['as-of'], {});
|
||||||
|
rb.query('event-cutoff', params['event-cutoff'], {});
|
||||||
|
rb.query('_count', params['_count'], {});
|
||||||
|
rb.query('_offset', params['_offset'], {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
searchMeasureReport.PATH = '/{domain}/fhir/MeasureReport';
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface SearchMeasure$Params {
|
||||||
|
domain: Domain;
|
||||||
|
_count?: number | null;
|
||||||
|
_offset?: number;
|
||||||
|
}
|
||||||
|
export function searchMeasure(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SearchMeasure$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, searchMeasure.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.query('_count', params['_count'], {});
|
||||||
|
rb.query('_offset', params['_offset'], {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
searchMeasure.PATH = '/{domain}/fhir/Measure';
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface SearchObservation$Params {
|
||||||
|
domain: Domain;
|
||||||
|
subject?: string | null;
|
||||||
|
_count?: number | null;
|
||||||
|
_offset?: number;
|
||||||
|
}
|
||||||
|
export function searchObservation(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SearchObservation$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, searchObservation.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.query('subject', params.subject, {});
|
||||||
|
rb.query('_count', params['_count'], {});
|
||||||
|
rb.query('_offset', params['_offset'], {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
searchObservation.PATH = '/{domain}/fhir/Observation';
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface SearchPatient$Params {
|
||||||
|
domain: Domain;
|
||||||
|
_id?: string | null;
|
||||||
|
'follow-up-window'?: number | null;
|
||||||
|
'follow-up-cutoff'?: string | null;
|
||||||
|
'follow-up-status'?: string | null;
|
||||||
|
name?: string | null;
|
||||||
|
identifier?: string | null;
|
||||||
|
_sort?: string;
|
||||||
|
'risk-horizon'?: number | null;
|
||||||
|
_revinclude?: Array<string>;
|
||||||
|
'_include:iterate'?: Array<string>;
|
||||||
|
_count?: number | null;
|
||||||
|
_offset?: number;
|
||||||
|
}
|
||||||
|
export function searchPatient(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SearchPatient$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, searchPatient.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.query('_id', params['_id'], {});
|
||||||
|
rb.query('follow-up-window', params['follow-up-window'], {});
|
||||||
|
rb.query('follow-up-cutoff', params['follow-up-cutoff'], {});
|
||||||
|
rb.query('follow-up-status', params['follow-up-status'], {});
|
||||||
|
rb.query('name', params.name, {});
|
||||||
|
rb.query('identifier', params.identifier, {});
|
||||||
|
rb.query('_sort', params['_sort'], {});
|
||||||
|
rb.query('risk-horizon', params['risk-horizon'], {});
|
||||||
|
rb.query('_revinclude', params['_revinclude'], {});
|
||||||
|
rb.query('_include:iterate', params['_include:iterate'], {});
|
||||||
|
rb.query('_count', params['_count'], {});
|
||||||
|
rb.query('_offset', params['_offset'], {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
searchPatient.PATH = '/{domain}/fhir/Patient';
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface SearchProcedure$Params {
|
||||||
|
domain: Domain;
|
||||||
|
subject?: string | null;
|
||||||
|
_count?: number | null;
|
||||||
|
_offset?: number;
|
||||||
|
}
|
||||||
|
export function searchProcedure(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SearchProcedure$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, searchProcedure.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.query('subject', params.subject, {});
|
||||||
|
rb.query('_count', params['_count'], {});
|
||||||
|
rb.query('_offset', params['_offset'], {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
searchProcedure.PATH = '/{domain}/fhir/Procedure';
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface SearchRiskAssessment$Params {
|
||||||
|
domain: Domain;
|
||||||
|
subject?: string | null;
|
||||||
|
_count?: number | null;
|
||||||
|
_offset?: number;
|
||||||
|
}
|
||||||
|
export function searchRiskAssessment(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SearchRiskAssessment$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<{}>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, searchRiskAssessment.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.query('subject', params.subject, {});
|
||||||
|
rb.query('_count', params['_count'], {});
|
||||||
|
rb.query('_offset', params['_offset'], {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'json', accept: 'application/fhir+json', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
searchRiskAssessment.PATH = '/{domain}/fhir/RiskAssessment';
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Browsed } from '../../models/browsed';
|
||||||
|
export interface Browse$Params {
|
||||||
|
path?: string | null;
|
||||||
|
}
|
||||||
|
export function browse(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: Browse$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Browsed>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, browse.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.query('path', params.path, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Browsed>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
browse.PATH = '/ingest/sources/browse';
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface ConceptMaps$Params {}
|
||||||
|
export function conceptMaps(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: ConceptMaps$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, conceptMaps.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
conceptMaps.PATH = '/ingest/concept-maps';
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface GetConceptMap$Params {
|
||||||
|
map_id: string;
|
||||||
|
}
|
||||||
|
export function getConceptMap(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: GetConceptMap$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, getConceptMap.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('map_id', params.map_id, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
getConceptMap.PATH = '/ingest/concept-maps/{map_id}';
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface NodeRows$Params {
|
||||||
|
pipeline_id: string;
|
||||||
|
node_id: string;
|
||||||
|
limit?: number;
|
||||||
|
}
|
||||||
|
export function nodeRows(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NodeRows$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, nodeRows.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('pipeline_id', params.pipeline_id, {});
|
||||||
|
rb.path('node_id', params.node_id, {});
|
||||||
|
rb.query('limit', params.limit, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
nodeRows.PATH = '/ingest/pipelines/{pipeline_id}/nodes/{node_id}/rows';
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { SignIn } from '../../models/sign-in';
|
||||||
|
export interface OauthStart$Params {
|
||||||
|
provider: string;
|
||||||
|
origin: string;
|
||||||
|
}
|
||||||
|
export function oauthStart(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: OauthStart$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<SignIn>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, oauthStart.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('provider', params.provider, {});
|
||||||
|
rb.query('origin', params.origin, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<SignIn>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
oauthStart.PATH = '/ingest/sources/oauth/{provider}/start';
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { SavedPipeline } from '../../models/saved-pipeline';
|
||||||
|
export interface Pipeline$Params {
|
||||||
|
pipeline_id: string;
|
||||||
|
version?: number | null;
|
||||||
|
}
|
||||||
|
export function pipeline(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Pipeline$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<SavedPipeline>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, pipeline.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('pipeline_id', params.pipeline_id, {});
|
||||||
|
rb.query('version', params.version, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<SavedPipeline>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
pipeline.PATH = '/ingest/pipelines/{pipeline_id}';
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface Pipelines$Params {}
|
||||||
|
export function pipelines(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: Pipelines$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, pipelines.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
pipelines.PATH = '/ingest/pipelines';
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface SaveConceptMap$Params {
|
||||||
|
map_id: string;
|
||||||
|
body: {
|
||||||
|
[key: string]: any;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function saveConceptMap(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SaveConceptMap$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: number;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, saveConceptMap.PATH, 'put');
|
||||||
|
if (params) {
|
||||||
|
rb.path('map_id', params.map_id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: number;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
saveConceptMap.PATH = '/ingest/concept-maps/{map_id}';
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Pipeline } from '../../models/pipeline';
|
||||||
|
export interface SavePipeline$Params {
|
||||||
|
pipeline_id: string;
|
||||||
|
body: Pipeline;
|
||||||
|
}
|
||||||
|
export function savePipeline(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SavePipeline$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: number;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, savePipeline.PATH, 'put');
|
||||||
|
if (params) {
|
||||||
|
rb.path('pipeline_id', params.pipeline_id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: number;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
savePipeline.PATH = '/ingest/pipelines/{pipeline_id}';
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface Schema$Params {}
|
||||||
|
export function schema(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: Schema$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, schema.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
schema.PATH = '/ingest/schema';
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Source } from '../../models/source';
|
||||||
|
export interface SourcePreview$Params {
|
||||||
|
limit?: number;
|
||||||
|
body: Source;
|
||||||
|
}
|
||||||
|
export function sourcePreview(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SourcePreview$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, sourcePreview.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.query('limit', params.limit, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
sourcePreview.PATH = '/ingest/sources/preview';
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { SourceRef } from '../../models/source-ref';
|
||||||
|
export interface SourceResources$Params {
|
||||||
|
body: SourceRef;
|
||||||
|
}
|
||||||
|
export function sourceResources(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: SourceResources$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<string>>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, sourceResources.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<string>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
sourceResources.PATH = '/ingest/sources/resources';
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Catalog } from '../../models/catalog';
|
||||||
|
export interface SourceTypes$Params {}
|
||||||
|
export function sourceTypes(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: SourceTypes$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Catalog>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, sourceTypes.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Catalog>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
sourceTypes.PATH = '/ingest/sources/types';
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { RunRequest } from '../../models/run-request';
|
||||||
|
export interface StartRun$Params {
|
||||||
|
pipeline_id: string;
|
||||||
|
body: RunRequest;
|
||||||
|
}
|
||||||
|
export function startRun(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StartRun$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, startRun.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.path('pipeline_id', params.pipeline_id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
startRun.PATH = '/ingest/pipelines/{pipeline_id}/runs';
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Answers } from '../../models/answers';
|
||||||
|
import { Tested } from '../../models/tested';
|
||||||
|
export interface TestSource$Params {
|
||||||
|
limit?: number;
|
||||||
|
body: Answers;
|
||||||
|
}
|
||||||
|
export function testSource(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: TestSource$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Tested>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, testSource.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.query('limit', params.limit, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Tested>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
testSource.PATH = '/ingest/sources/test';
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { BodyUpload } from '../../models/body-upload';
|
||||||
|
import { Uploaded } from '../../models/uploaded';
|
||||||
|
export interface Upload$Params {
|
||||||
|
body: BodyUpload;
|
||||||
|
}
|
||||||
|
export function upload(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Upload$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Uploaded>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, upload.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'multipart/form-data');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Uploaded>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
upload.PATH = '/ingest/uploads';
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { BodyAddClinicalValidation } from '../../models/body-add-clinical-validation';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface AddClinicalValidation$Params {
|
||||||
|
domain: Domain;
|
||||||
|
name: string;
|
||||||
|
version: number;
|
||||||
|
body: BodyAddClinicalValidation;
|
||||||
|
}
|
||||||
|
export function addClinicalValidation(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AddClinicalValidation$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, addClinicalValidation.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.path('name', params.name, {});
|
||||||
|
rb.path('version', params.version, {});
|
||||||
|
rb.body(params.body, 'multipart/form-data');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
addClinicalValidation.PATH =
|
||||||
|
'/models/{domain}/{name}/versions/{version}/reports/clinical_validation';
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface Analyze$Params {
|
||||||
|
domain: Domain;
|
||||||
|
}
|
||||||
|
export function analyze(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Analyze$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, analyze.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
analyze.PATH = '/models/{domain}/analyze';
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
import { Model } from '../../models/model';
|
||||||
|
export interface Models$Params {
|
||||||
|
domain: Domain;
|
||||||
|
}
|
||||||
|
export function models(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Models$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<Model>>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, models.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<Model>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
models.PATH = '/models/{domain}';
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface Promote$Params {
|
||||||
|
domain: Domain;
|
||||||
|
name: string;
|
||||||
|
version: number;
|
||||||
|
}
|
||||||
|
export function promote(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Promote$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, promote.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.path('name', params.name, {});
|
||||||
|
rb.path('version', params.version, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
promote.PATH = '/models/{domain}/{name}/versions/{version}/promote';
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface ReadReport$Any$Params {
|
||||||
|
domain: Domain;
|
||||||
|
name: string;
|
||||||
|
version: number;
|
||||||
|
report: string;
|
||||||
|
}
|
||||||
|
export function readReport$Any(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: ReadReport$Any$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<any>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, readReport$Any.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.path('name', params.name, {});
|
||||||
|
rb.path('version', params.version, {});
|
||||||
|
rb.path('report', params.report, {});
|
||||||
|
}
|
||||||
|
return http
|
||||||
|
.request(rb.build({ responseType: 'blob', accept: 'application/octet-stream', context }))
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<any>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
readReport$Any.PATH = '/models/{domain}/{name}/versions/{version}/reports/{report}';
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface ReadReport$Json$Params {
|
||||||
|
domain: Domain;
|
||||||
|
name: string;
|
||||||
|
version: number;
|
||||||
|
report: string;
|
||||||
|
}
|
||||||
|
export function readReport$Json(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: ReadReport$Json$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<any>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, readReport$Json.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.path('name', params.name, {});
|
||||||
|
rb.path('version', params.version, {});
|
||||||
|
rb.path('report', params.report, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<any>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
readReport$Json.PATH = '/models/{domain}/{name}/versions/{version}/reports/{report}';
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface Score$Params {
|
||||||
|
domain: Domain;
|
||||||
|
}
|
||||||
|
export function score(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Score$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, score.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
score.PATH = '/models/{domain}/score';
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
import { Training } from '../../models/training';
|
||||||
|
export interface Train$Params {
|
||||||
|
domain: Domain;
|
||||||
|
body: Training;
|
||||||
|
}
|
||||||
|
export function train(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Train$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, train.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
train.PATH = '/models/{domain}/train';
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
import { Version } from '../../models/version';
|
||||||
|
export interface Versions$Params {
|
||||||
|
domain: Domain;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
export function versions(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Versions$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<Version>>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, versions.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('domain', params.domain, {});
|
||||||
|
rb.path('name', params.name, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<Version>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
versions.PATH = '/models/{domain}/{name}/versions';
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Domain } from '../../models/domain';
|
||||||
|
export interface Domains$Params {}
|
||||||
|
export function domains(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: Domains$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<Domain>>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, domains.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<Domain>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
domains.PATH = '/domains';
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface Health$Params {}
|
||||||
|
export function health(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: Health$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, health.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
health.PATH = '/health';
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface Conflicts$Params {
|
||||||
|
entity:
|
||||||
|
| 'identity'
|
||||||
|
| 'cervical_cytology'
|
||||||
|
| 'cervical_biopsy'
|
||||||
|
| 'mammography'
|
||||||
|
| 'breast_biopsy'
|
||||||
|
| 'breast_treatment'
|
||||||
|
| 'breast_recurrence'
|
||||||
|
| 'clinical_note'
|
||||||
|
| 'death'
|
||||||
|
| 'mchat'
|
||||||
|
| 'ados2'
|
||||||
|
| 'eeg';
|
||||||
|
}
|
||||||
|
export function conflicts(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Conflicts$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, conflicts.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.query('entity', params.entity, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
conflicts.PATH = '/review/conflicts';
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Correction } from '../../models/correction';
|
||||||
|
export interface Correct$Params {
|
||||||
|
body: Correction;
|
||||||
|
}
|
||||||
|
export function correct(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Correct$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, correct.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
correct.PATH = '/review/corrections';
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { PersonDecision } from '../../models/person-decision';
|
||||||
|
export interface DecidePersons$Params {
|
||||||
|
body: PersonDecision;
|
||||||
|
}
|
||||||
|
export function decidePersons(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: DecidePersons$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, decidePersons.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
decidePersons.PATH = '/review/persons';
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface Held$Params {
|
||||||
|
entity:
|
||||||
|
| 'identity'
|
||||||
|
| 'cervical_cytology'
|
||||||
|
| 'cervical_biopsy'
|
||||||
|
| 'mammography'
|
||||||
|
| 'breast_biopsy'
|
||||||
|
| 'breast_treatment'
|
||||||
|
| 'breast_recurrence'
|
||||||
|
| 'clinical_note'
|
||||||
|
| 'death'
|
||||||
|
| 'mchat'
|
||||||
|
| 'ados2'
|
||||||
|
| 'eeg';
|
||||||
|
}
|
||||||
|
export function held(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Held$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, held.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.query('entity', params.entity, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
held.PATH = '/review/held';
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface Persons$Params {
|
||||||
|
pipeline: string;
|
||||||
|
node: string;
|
||||||
|
}
|
||||||
|
export function persons(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Persons$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, persons.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.query('pipeline', params.pipeline, {});
|
||||||
|
rb.query('node', params.node, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
persons.PATH = '/review/persons';
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { Rejection } from '../../models/rejection';
|
||||||
|
export interface Reject$Params {
|
||||||
|
body: Rejection;
|
||||||
|
}
|
||||||
|
export function reject(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Reject$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, reject.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
reject.PATH = '/review/rejections';
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface Unrecognised$Params {
|
||||||
|
pipeline: string;
|
||||||
|
}
|
||||||
|
export function unrecognised(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: Unrecognised$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, unrecognised.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.query('pipeline', params.pipeline, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<
|
||||||
|
Array<{
|
||||||
|
[key: string]: any;
|
||||||
|
}>
|
||||||
|
>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
unrecognised.PATH = '/review/unrecognised';
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface RunStatus$Params {
|
||||||
|
run_id: string;
|
||||||
|
}
|
||||||
|
export function runStatus(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: RunStatus$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, runStatus.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('run_id', params.run_id, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
runStatus.PATH = '/runs/{run_id}';
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface TerminateRun$Params {
|
||||||
|
run_id: string;
|
||||||
|
}
|
||||||
|
export function terminateRun(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: TerminateRun$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<
|
||||||
|
StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>
|
||||||
|
> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, terminateRun.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.path('run_id', params.run_id, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
terminateRun.PATH = '/runs/{run_id}/terminate';
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { UserCreate } from '../../models/user-create';
|
||||||
|
import { UserRead } from '../../models/user-read';
|
||||||
|
export interface RegisterRegister$Params {
|
||||||
|
body: UserCreate;
|
||||||
|
}
|
||||||
|
export function registerRegister(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: RegisterRegister$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<UserRead>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, registerRegister.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<UserRead>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
registerRegister.PATH = '/users/register';
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { UserRead } from '../../models/user-read';
|
||||||
|
export interface UsersCurrentUser$Params {}
|
||||||
|
export function usersCurrentUser(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: UsersCurrentUser$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<UserRead>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, usersCurrentUser.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<UserRead>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
usersCurrentUser.PATH = '/users/me';
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
export interface UsersDeleteUser$Params {
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
export function usersDeleteUser(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: UsersDeleteUser$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<void>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, usersDeleteUser.PATH, 'delete');
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'text', accept: '*/*', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return (r as HttpResponse<any>).clone({ body: undefined }) as StrictHttpResponse<void>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
usersDeleteUser.PATH = '/users/{id}';
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { UserRead } from '../../models/user-read';
|
||||||
|
import { UserUpdate } from '../../models/user-update';
|
||||||
|
export interface UsersPatchCurrentUser$Params {
|
||||||
|
body: UserUpdate;
|
||||||
|
}
|
||||||
|
export function usersPatchCurrentUser(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: UsersPatchCurrentUser$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<UserRead>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, usersPatchCurrentUser.PATH, 'patch');
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<UserRead>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
usersPatchCurrentUser.PATH = '/users/me';
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { UserRead } from '../../models/user-read';
|
||||||
|
import { UserUpdate } from '../../models/user-update';
|
||||||
|
export interface UsersPatchUser$Params {
|
||||||
|
id: string;
|
||||||
|
body: UserUpdate;
|
||||||
|
}
|
||||||
|
export function usersPatchUser(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: UsersPatchUser$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<UserRead>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, usersPatchUser.PATH, 'patch');
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<UserRead>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
usersPatchUser.PATH = '/users/{id}';
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
import { UserRead } from '../../models/user-read';
|
||||||
|
export interface UsersUser$Params {
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
export function usersUser(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: UsersUser$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<UserRead>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, usersUser.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<UserRead>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
usersUser.PATH = '/users/{id}';
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
export type { AuthCookieLogin$Params as AuthCookieLogin$Params } 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 { authCookieLogout as authCookieLogout } from './fn/auth/auth-cookie-logout';
|
||||||
|
export type { Domains$Params as Domains$Params } from './fn/operations/domains';
|
||||||
|
export { domains as domains } from './fn/operations/domains';
|
||||||
|
export type { Health$Params as Health$Params } from './fn/operations/health';
|
||||||
|
export { health as health } from './fn/operations/health';
|
||||||
|
export type { ConceptMaps$Params as ConceptMaps$Params } from './fn/ingest/concept-maps';
|
||||||
|
export { conceptMaps as conceptMaps } from './fn/ingest/concept-maps';
|
||||||
|
export type { GetConceptMap$Params as GetConceptMap$Params } from './fn/ingest/get-concept-map';
|
||||||
|
export { getConceptMap as getConceptMap } from './fn/ingest/get-concept-map';
|
||||||
|
export type { SaveConceptMap$Params as SaveConceptMap$Params } from './fn/ingest/save-concept-map';
|
||||||
|
export { saveConceptMap as saveConceptMap } from './fn/ingest/save-concept-map';
|
||||||
|
export type { Pipelines$Params as Pipelines$Params } from './fn/ingest/pipelines';
|
||||||
|
export { pipelines as pipelines } from './fn/ingest/pipelines';
|
||||||
|
export type { Pipeline$Params as Pipeline$Params } from './fn/ingest/pipeline';
|
||||||
|
export { pipeline as pipeline } from './fn/ingest/pipeline';
|
||||||
|
export type { SavePipeline$Params as SavePipeline$Params } from './fn/ingest/save-pipeline';
|
||||||
|
export { savePipeline as savePipeline } from './fn/ingest/save-pipeline';
|
||||||
|
export type { NodeRows$Params as NodeRows$Params } from './fn/ingest/node-rows';
|
||||||
|
export { nodeRows as nodeRows } from './fn/ingest/node-rows';
|
||||||
|
export type { StartRun$Params as StartRun$Params } from './fn/ingest/start-run';
|
||||||
|
export { startRun as startRun } from './fn/ingest/start-run';
|
||||||
|
export type { Schema$Params as Schema$Params } from './fn/ingest/schema';
|
||||||
|
export { schema as schema } from './fn/ingest/schema';
|
||||||
|
export type { Browse$Params as Browse$Params } from './fn/ingest/browse';
|
||||||
|
export { browse as browse } from './fn/ingest/browse';
|
||||||
|
export type { OauthStart$Params as OauthStart$Params } from './fn/ingest/oauth-start';
|
||||||
|
export { oauthStart as oauthStart } from './fn/ingest/oauth-start';
|
||||||
|
export type { SourcePreview$Params as SourcePreview$Params } from './fn/ingest/source-preview';
|
||||||
|
export { sourcePreview as sourcePreview } from './fn/ingest/source-preview';
|
||||||
|
export type { SourceResources$Params as SourceResources$Params } from './fn/ingest/source-resources';
|
||||||
|
export { sourceResources as sourceResources } from './fn/ingest/source-resources';
|
||||||
|
export type { TestSource$Params as TestSource$Params } from './fn/ingest/test-source';
|
||||||
|
export { testSource as testSource } from './fn/ingest/test-source';
|
||||||
|
export type { SourceTypes$Params as SourceTypes$Params } from './fn/ingest/source-types';
|
||||||
|
export { sourceTypes as sourceTypes } from './fn/ingest/source-types';
|
||||||
|
export type { Upload$Params as Upload$Params } from './fn/ingest/upload';
|
||||||
|
export { upload as upload } from './fn/ingest/upload';
|
||||||
|
export type { Models$Params as Models$Params } from './fn/models/models';
|
||||||
|
export { models as models } from './fn/models/models';
|
||||||
|
export type { Analyze$Params as Analyze$Params } from './fn/models/analyze';
|
||||||
|
export { analyze as analyze } from './fn/models/analyze';
|
||||||
|
export type { Score$Params as Score$Params } from './fn/models/score';
|
||||||
|
export { score as score } from './fn/models/score';
|
||||||
|
export type { Train$Params as Train$Params } from './fn/models/train';
|
||||||
|
export { train as train } from './fn/models/train';
|
||||||
|
export type { Versions$Params as Versions$Params } from './fn/models/versions';
|
||||||
|
export { versions as versions } from './fn/models/versions';
|
||||||
|
export type { Promote$Params as Promote$Params } from './fn/models/promote';
|
||||||
|
export { promote as promote } from './fn/models/promote';
|
||||||
|
export type { AddClinicalValidation$Params as AddClinicalValidation$Params } from './fn/models/add-clinical-validation';
|
||||||
|
export { addClinicalValidation as addClinicalValidation } from './fn/models/add-clinical-validation';
|
||||||
|
export type { ReadReport$Json$Params as ReadReport$Json$Params } from './fn/models/read-report-json';
|
||||||
|
export { readReport$Json as readReport$Json } from './fn/models/read-report-json';
|
||||||
|
export type { ReadReport$Any$Params as ReadReport$Any$Params } from './fn/models/read-report-any';
|
||||||
|
export { readReport$Any as readReport$Any } from './fn/models/read-report-any';
|
||||||
|
export type { Conflicts$Params as Conflicts$Params } from './fn/review/conflicts';
|
||||||
|
export { conflicts as conflicts } from './fn/review/conflicts';
|
||||||
|
export type { Correct$Params as Correct$Params } from './fn/review/correct';
|
||||||
|
export { correct as correct } from './fn/review/correct';
|
||||||
|
export type { Held$Params as Held$Params } from './fn/review/held';
|
||||||
|
export { held as held } from './fn/review/held';
|
||||||
|
export type { Persons$Params as Persons$Params } from './fn/review/persons';
|
||||||
|
export { persons as persons } from './fn/review/persons';
|
||||||
|
export type { DecidePersons$Params as DecidePersons$Params } from './fn/review/decide-persons';
|
||||||
|
export { decidePersons as decidePersons } from './fn/review/decide-persons';
|
||||||
|
export type { Reject$Params as Reject$Params } from './fn/review/reject';
|
||||||
|
export { reject as reject } from './fn/review/reject';
|
||||||
|
export type { Unrecognised$Params as Unrecognised$Params } from './fn/review/unrecognised';
|
||||||
|
export { unrecognised as unrecognised } from './fn/review/unrecognised';
|
||||||
|
export type { RunStatus$Params as RunStatus$Params } from './fn/runs/run-status';
|
||||||
|
export { runStatus as runStatus } from './fn/runs/run-status';
|
||||||
|
export type { TerminateRun$Params as TerminateRun$Params } from './fn/runs/terminate-run';
|
||||||
|
export { terminateRun as terminateRun } from './fn/runs/terminate-run';
|
||||||
|
export type { Studies$Params as Studies$Params } from './fn/eeg/studies';
|
||||||
|
export { studies as studies } from './fn/eeg/studies';
|
||||||
|
export type { Study$Params as Study$Params } from './fn/eeg/study';
|
||||||
|
export { study as study } from './fn/eeg/study';
|
||||||
|
export type { UsersCurrentUser$Params as UsersCurrentUser$Params } from './fn/users/users-current-user';
|
||||||
|
export { usersCurrentUser as usersCurrentUser } from './fn/users/users-current-user';
|
||||||
|
export type { UsersPatchCurrentUser$Params as UsersPatchCurrentUser$Params } from './fn/users/users-patch-current-user';
|
||||||
|
export { usersPatchCurrentUser as usersPatchCurrentUser } from './fn/users/users-patch-current-user';
|
||||||
|
export type { RegisterRegister$Params as RegisterRegister$Params } from './fn/users/register-register';
|
||||||
|
export { registerRegister as registerRegister } from './fn/users/register-register';
|
||||||
|
export type { UsersUser$Params as UsersUser$Params } from './fn/users/users-user';
|
||||||
|
export { usersUser as usersUser } from './fn/users/users-user';
|
||||||
|
export type { UsersDeleteUser$Params as UsersDeleteUser$Params } from './fn/users/users-delete-user';
|
||||||
|
export { usersDeleteUser as usersDeleteUser } from './fn/users/users-delete-user';
|
||||||
|
export type { UsersPatchUser$Params as UsersPatchUser$Params } from './fn/users/users-patch-user';
|
||||||
|
export { usersPatchUser as usersPatchUser } from './fn/users/users-patch-user';
|
||||||
|
export type { PostBundle$Params as PostBundle$Params } from './fn/fhir/post-bundle';
|
||||||
|
export { postBundle as postBundle } from './fn/fhir/post-bundle';
|
||||||
|
export type { SearchCondition$Params as SearchCondition$Params } from './fn/fhir/search-condition';
|
||||||
|
export { searchCondition as searchCondition } from './fn/fhir/search-condition';
|
||||||
|
export type { SearchDiagnosticReport$Params as SearchDiagnosticReport$Params } from './fn/fhir/search-diagnostic-report';
|
||||||
|
export { searchDiagnosticReport as searchDiagnosticReport } from './fn/fhir/search-diagnostic-report';
|
||||||
|
export type { SearchEncounter$Params as SearchEncounter$Params } from './fn/fhir/search-encounter';
|
||||||
|
export { searchEncounter as searchEncounter } from './fn/fhir/search-encounter';
|
||||||
|
export type { SearchMeasure$Params as SearchMeasure$Params } from './fn/fhir/search-measure';
|
||||||
|
export { searchMeasure as searchMeasure } from './fn/fhir/search-measure';
|
||||||
|
export type { ReadMeasure$Params as ReadMeasure$Params } from './fn/fhir/read-measure';
|
||||||
|
export { readMeasure as readMeasure } from './fn/fhir/read-measure';
|
||||||
|
export type { SearchMeasureReport$Params as SearchMeasureReport$Params } from './fn/fhir/search-measure-report';
|
||||||
|
export { searchMeasureReport as searchMeasureReport } from './fn/fhir/search-measure-report';
|
||||||
|
export type { SearchObservation$Params as SearchObservation$Params } from './fn/fhir/search-observation';
|
||||||
|
export { searchObservation as searchObservation } from './fn/fhir/search-observation';
|
||||||
|
export type { SearchPatient$Params as SearchPatient$Params } from './fn/fhir/search-patient';
|
||||||
|
export { searchPatient as searchPatient } from './fn/fhir/search-patient';
|
||||||
|
export type { ReadPatient$Params as ReadPatient$Params } from './fn/fhir/read-patient';
|
||||||
|
export { readPatient as readPatient } from './fn/fhir/read-patient';
|
||||||
|
export type { SearchProcedure$Params as SearchProcedure$Params } from './fn/fhir/search-procedure';
|
||||||
|
export { searchProcedure as searchProcedure } from './fn/fhir/search-procedure';
|
||||||
|
export type { SearchRiskAssessment$Params as SearchRiskAssessment$Params } from './fn/fhir/search-risk-assessment';
|
||||||
|
export { searchRiskAssessment as searchRiskAssessment } from './fn/fhir/search-risk-assessment';
|
||||||
|
export type { Metadata$Params as Metadata$Params } from './fn/fhir/metadata';
|
||||||
|
export { metadata as metadata } from './fn/fhir/metadata';
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
export type { Analysis } from './models/analysis';
|
||||||
|
export type { Answers } from './models/answers';
|
||||||
|
export type { BodyAddClinicalValidation } from './models/body-add-clinical-validation';
|
||||||
|
export type { BodyUpload } from './models/body-upload';
|
||||||
|
export type { Browsed } from './models/browsed';
|
||||||
|
export type { Catalog } from './models/catalog';
|
||||||
|
export type { Condition } from './models/condition';
|
||||||
|
export type { Correction } from './models/correction';
|
||||||
|
export type { Domain } from './models/domain';
|
||||||
|
export type { Entry } from './models/entry';
|
||||||
|
export type { ErrorModel } from './models/error-model';
|
||||||
|
export type { Extract } from './models/extract';
|
||||||
|
export type { Fhir } from './models/fhir';
|
||||||
|
export type { FieldSpec } from './models/field-spec';
|
||||||
|
export type { Group } from './models/group';
|
||||||
|
export type { Guided } from './models/guided';
|
||||||
|
export type { HttpValidationError } from './models/http-validation-error';
|
||||||
|
export type { Join } from './models/join';
|
||||||
|
export type { Link } from './models/link';
|
||||||
|
export type { Listing } from './models/listing';
|
||||||
|
export type { Login } from './models/login';
|
||||||
|
export type { Map } from './models/map';
|
||||||
|
export type { Metric } from './models/metric';
|
||||||
|
export type { Model } from './models/model';
|
||||||
|
export type { Option } from './models/option';
|
||||||
|
export type { PersonDecision } from './models/person-decision';
|
||||||
|
export type { Pipeline } from './models/pipeline';
|
||||||
|
export type { Position } from './models/position';
|
||||||
|
export type { Provider } from './models/provider';
|
||||||
|
export type { Read } from './models/read';
|
||||||
|
export type { Rejection } from './models/rejection';
|
||||||
|
export type { Relation } from './models/relation';
|
||||||
|
export type { Route } from './models/route';
|
||||||
|
export type { RunRequest } from './models/run-request';
|
||||||
|
export type { SavedPipeline } from './models/saved-pipeline';
|
||||||
|
export type { SignIn } from './models/sign-in';
|
||||||
|
export type { Site } from './models/site';
|
||||||
|
export type { Source } from './models/source';
|
||||||
|
export type { SourceRef } from './models/source-ref';
|
||||||
|
export type { SourceType } from './models/source-type';
|
||||||
|
export type { Study } from './models/study';
|
||||||
|
export type { Target } from './models/target';
|
||||||
|
export type { Tested } from './models/tested';
|
||||||
|
export type { Training } from './models/training';
|
||||||
|
export type { Uploaded } from './models/uploaded';
|
||||||
|
export type { UserCreate } from './models/user-create';
|
||||||
|
export type { UserRead } from './models/user-read';
|
||||||
|
export type { UserUpdate } from './models/user-update';
|
||||||
|
export type { ValidationError } from './models/validation-error';
|
||||||
|
export type { Version } from './models/version';
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import { Metric } from '../models/metric';
|
||||||
|
import { Relation } from '../models/relation';
|
||||||
|
export interface Analysis {
|
||||||
|
age_months: number | null;
|
||||||
|
id: string;
|
||||||
|
level: string | null;
|
||||||
|
metrics: Array<Metric>;
|
||||||
|
relation?: Array<Relation>;
|
||||||
|
valid: boolean | null;
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
export interface Answers {
|
||||||
|
answers?: {
|
||||||
|
[key: string]: any;
|
||||||
|
};
|
||||||
|
node?: string | null;
|
||||||
|
pipeline?: string | null;
|
||||||
|
type: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export interface BodyAddClinicalValidation {
|
||||||
|
file: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
export interface BodyUpload {
|
||||||
|
files: Array<string>;
|
||||||
|
folder?: string | null;
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import { Entry } from '../models/entry';
|
||||||
|
export interface Browsed {
|
||||||
|
entries: Array<Entry>;
|
||||||
|
parent: string | null;
|
||||||
|
path: string | null;
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
import { Group } from '../models/group';
|
||||||
|
import { Option } from '../models/option';
|
||||||
|
import { Provider } from '../models/provider';
|
||||||
|
import { SourceType } from '../models/source-type';
|
||||||
|
export interface Catalog {
|
||||||
|
formats: Array<Option>;
|
||||||
|
groups: {
|
||||||
|
[key: string]: Group;
|
||||||
|
};
|
||||||
|
providers: {
|
||||||
|
[key: string]: Provider;
|
||||||
|
};
|
||||||
|
types: {
|
||||||
|
[key: string]: SourceType;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
export interface Condition {
|
||||||
|
column: string;
|
||||||
|
op: 'equals' | 'contains' | 'matches' | 'present';
|
||||||
|
value?: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
export interface Correction {
|
||||||
|
entity?:
|
||||||
|
| 'identity'
|
||||||
|
| 'cervical_cytology'
|
||||||
|
| 'cervical_biopsy'
|
||||||
|
| 'mammography'
|
||||||
|
| 'breast_biopsy'
|
||||||
|
| 'breast_treatment'
|
||||||
|
| 'breast_recurrence'
|
||||||
|
| 'clinical_note'
|
||||||
|
| 'death'
|
||||||
|
| 'mchat'
|
||||||
|
| 'ados2'
|
||||||
|
| 'eeg';
|
||||||
|
field: string;
|
||||||
|
record: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
import { Domain } from './domain';
|
||||||
|
export const DOMAIN: Domain[] = ['cacu', 'cama', 'tea'];
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export type Domain = 'cacu' | 'cama' | 'tea';
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
export interface Entry {
|
||||||
|
kind: 'folder' | 'file';
|
||||||
|
name: string;
|
||||||
|
path: string;
|
||||||
|
size?: number | null;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
export interface ErrorModel {
|
||||||
|
detail:
|
||||||
|
| string
|
||||||
|
| {
|
||||||
|
[key: string]: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
import { Position } from '../models/position';
|
||||||
|
export interface Extract {
|
||||||
|
column: string | Array<string>;
|
||||||
|
columns?: {
|
||||||
|
[key: string]: string;
|
||||||
|
};
|
||||||
|
concept_map?: string | null;
|
||||||
|
entity:
|
||||||
|
| 'identity'
|
||||||
|
| 'cervical_cytology'
|
||||||
|
| 'cervical_biopsy'
|
||||||
|
| 'mammography'
|
||||||
|
| 'breast_biopsy'
|
||||||
|
| 'breast_treatment'
|
||||||
|
| 'breast_recurrence'
|
||||||
|
| 'clinical_note'
|
||||||
|
| 'death'
|
||||||
|
| 'mchat'
|
||||||
|
| 'ados2'
|
||||||
|
| 'eeg';
|
||||||
|
formats?: {
|
||||||
|
[key: string]: string;
|
||||||
|
};
|
||||||
|
hints?: string;
|
||||||
|
id: string;
|
||||||
|
inputs?: Array<string>;
|
||||||
|
kind?: 'extract';
|
||||||
|
label?: string;
|
||||||
|
method?: 'auto' | 'llm' | 'patterns';
|
||||||
|
patterns?: {
|
||||||
|
[key: string]: string;
|
||||||
|
};
|
||||||
|
position?: Position | null;
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
import { Position } from '../models/position';
|
||||||
|
export interface Fhir {
|
||||||
|
column?: string;
|
||||||
|
concept_map?: string | null;
|
||||||
|
entity:
|
||||||
|
| 'identity'
|
||||||
|
| 'cervical_cytology'
|
||||||
|
| 'cervical_biopsy'
|
||||||
|
| 'mammography'
|
||||||
|
| 'breast_biopsy'
|
||||||
|
| 'breast_treatment'
|
||||||
|
| 'breast_recurrence'
|
||||||
|
| 'clinical_note'
|
||||||
|
| 'death'
|
||||||
|
| 'mchat'
|
||||||
|
| 'ados2'
|
||||||
|
| 'eeg';
|
||||||
|
id: string;
|
||||||
|
inputs?: Array<string>;
|
||||||
|
kind?: 'fhir';
|
||||||
|
label?: string;
|
||||||
|
position?: Position | null;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { Option } from '../models/option';
|
||||||
|
export interface FieldSpec {
|
||||||
|
advanced?: boolean;
|
||||||
|
default?: any;
|
||||||
|
help?: string;
|
||||||
|
label: string;
|
||||||
|
options?: Array<Option>;
|
||||||
|
placeholder?: string;
|
||||||
|
provider?: string | null;
|
||||||
|
required?: boolean;
|
||||||
|
type?:
|
||||||
|
| 'text'
|
||||||
|
| 'number'
|
||||||
|
| 'password'
|
||||||
|
| 'select'
|
||||||
|
| 'folder'
|
||||||
|
| 'server_file'
|
||||||
|
| 'upload'
|
||||||
|
| 'url'
|
||||||
|
| 'oauth'
|
||||||
|
| 'table'
|
||||||
|
| 'format'
|
||||||
|
| 'columns';
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
export interface Group {
|
||||||
|
description: string;
|
||||||
|
title: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
export interface Guided {
|
||||||
|
answers?: {
|
||||||
|
[key: string]: any;
|
||||||
|
};
|
||||||
|
type: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import { ValidationError } from '../models/validation-error';
|
||||||
|
export interface HttpValidationError {
|
||||||
|
detail?: Array<ValidationError>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import { Position } from '../models/position';
|
||||||
|
export interface Join {
|
||||||
|
how?: 'inner' | 'left';
|
||||||
|
id: string;
|
||||||
|
inputs?: Array<string>;
|
||||||
|
kind?: 'join';
|
||||||
|
label?: string;
|
||||||
|
on: Array<[string, string]>;
|
||||||
|
position?: Position | null;
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import { Position } from '../models/position';
|
||||||
|
export interface Link {
|
||||||
|
fields?: Array<string>;
|
||||||
|
id: string;
|
||||||
|
inputs?: Array<string>;
|
||||||
|
kind?: 'link';
|
||||||
|
label?: string;
|
||||||
|
position?: Position | null;
|
||||||
|
review?: number;
|
||||||
|
rules?: Array<string>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
export interface Listing {
|
||||||
|
args?: {
|
||||||
|
[key: string]: any;
|
||||||
|
};
|
||||||
|
kind: 'tables' | 'rows';
|
||||||
|
source?: string | null;
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
export interface Login {
|
||||||
|
client_id?: string | null;
|
||||||
|
client_secret?: string | null;
|
||||||
|
grant_type?: string | null;
|
||||||
|
password: string;
|
||||||
|
scope?: string;
|
||||||
|
username: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import { Position } from '../models/position';
|
||||||
|
export interface Map {
|
||||||
|
concept_map?: string | null;
|
||||||
|
fields: {
|
||||||
|
[key: string]: string;
|
||||||
|
};
|
||||||
|
formats?: {
|
||||||
|
[key: string]: string;
|
||||||
|
};
|
||||||
|
id: string;
|
||||||
|
inputs?: Array<string>;
|
||||||
|
kind?: 'map';
|
||||||
|
label?: string;
|
||||||
|
position?: Position | null;
|
||||||
|
values?: {
|
||||||
|
[key: string]: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user