· 4 years ago · Sep 08, 2021, 07:46 PM
1/* tslint:disable */
2/* eslint-disable */
3/**
4 * New Lantern
5 * The future PACS
6 *
7 * The version of the OpenAPI document: 0.1.0
8 *
9 *
10 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11 * https://openapi-generator.tech
12 * Do not edit the class manually.
13 */
14
15
16import { Configuration } from './configuration';
17import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
18// Some imports not used depending on template conditions
19// @ts-ignore
20import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21// @ts-ignore
22import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
24/**
25 *
26 * @export
27 * @interface Instance
28 */
29export interface Instance {
30 /**
31 *
32 * @type {string}
33 * @memberof Instance
34 */
35 id: string;
36 /**
37 *
38 * @type {string}
39 * @memberof Instance
40 */
41 series_id: string;
42 /**
43 *
44 * @type {string}
45 * @memberof Instance
46 */
47 created: string;
48 /**
49 *
50 * @type {string}
51 * @memberof Instance
52 */
53 modified: string;
54 /**
55 *
56 * @type {string}
57 * @memberof Instance
58 */
59 uid: string;
60 /**
61 *
62 * @type {number}
63 * @memberof Instance
64 */
65 number?: number | null;
66 /**
67 *
68 * @type {string}
69 * @memberof Instance
70 */
71 url?: string | null;
72 /**
73 *
74 * @type {string}
75 * @memberof Instance
76 */
77 dicom_url?: string | null;
78 /**
79 *
80 * @type {string}
81 * @memberof Instance
82 */
83 jpeg_url?: string | null;
84 /**
85 *
86 * @type {string}
87 * @memberof Instance
88 */
89 png_url?: string | null;
90 /**
91 *
92 * @type {string}
93 * @memberof Instance
94 */
95 photometric_interpretation?: string | null;
96 /**
97 *
98 * @type {number}
99 * @memberof Instance
100 */
101 smallest_image_pixel_value?: number | null;
102 /**
103 *
104 * @type {number}
105 * @memberof Instance
106 */
107 largest_image_pixel_value?: number | null;
108 /**
109 *
110 * @type {number}
111 * @memberof Instance
112 */
113 number_of_frames?: number | null;
114 /**
115 *
116 * @type {number}
117 * @memberof Instance
118 */
119 rows?: number | null;
120 /**
121 *
122 * @type {number}
123 * @memberof Instance
124 */
125 columns?: number | null;
126 /**
127 *
128 * @type {Array<number>}
129 * @memberof Instance
130 */
131 image_position?: Array<number> | null;
132 /**
133 *
134 * @type {Array<number>}
135 * @memberof Instance
136 */
137 image_orientation?: Array<number> | null;
138}
139/**
140 *
141 * @export
142 * @enum {string}
143 */
144
145export enum ModalityEnum {
146 Ct = 'CT',
147 Mr = 'MR',
148 Xa = 'XA',
149 Cr = 'CR',
150 Dx = 'DX',
151 Pet = 'PET',
152 Nm = 'NM',
153 Us = 'US',
154 Rf = 'RF',
155 Ecg = 'ECG',
156 Sc = 'SC',
157 Mg = 'MG',
158 Rtstruct = 'RTSTRUCT'
159}
160
161/**
162 *
163 * @export
164 * @enum {string}
165 */
166
167export enum NullEnum {
168 Null = 'null'
169}
170
171/**
172 *
173 * @export
174 * @interface Patient
175 */
176export interface Patient {
177 /**
178 *
179 * @type {string}
180 * @memberof Patient
181 */
182 id: string;
183 /**
184 *
185 * @type {string}
186 * @memberof Patient
187 */
188 age: string;
189 /**
190 *
191 * @type {string}
192 * @memberof Patient
193 */
194 created: string;
195 /**
196 *
197 * @type {string}
198 * @memberof Patient
199 */
200 modified: string;
201 /**
202 *
203 * @type {string}
204 * @memberof Patient
205 */
206 name: string;
207 /**
208 *
209 * @type {string}
210 * @memberof Patient
211 */
212 date_of_birth?: string | null;
213 /**
214 *
215 * @type {SexEnum}
216 * @memberof Patient
217 */
218 sex: SexEnum;
219 /**
220 *
221 * @type {string}
222 * @memberof Patient
223 */
224 dicom_patient_id: string;
225}
226/**
227 *
228 * @export
229 * @enum {string}
230 */
231
232export enum PriorityEnum {
233 Routine = 'routine',
234 Urgent = 'urgent',
235 Asap = 'asap',
236 Stat = 'stat'
237}
238
239/**
240 *
241 * @export
242 * @interface Series
243 */
244export interface Series {
245 /**
246 *
247 * @type {string}
248 * @memberof Series
249 */
250 id: string;
251 /**
252 *
253 * @type {string}
254 * @memberof Series
255 */
256 study_id: string;
257 /**
258 *
259 * @type {string}
260 * @memberof Series
261 */
262 total_instances: string;
263 /**
264 *
265 * @type {string}
266 * @memberof Series
267 */
268 created: string;
269 /**
270 *
271 * @type {string}
272 * @memberof Series
273 */
274 modified: string;
275 /**
276 *
277 * @type {string}
278 * @memberof Series
279 */
280 uid: string;
281 /**
282 *
283 * @type {string}
284 * @memberof Series
285 */
286 description?: string | null;
287 /**
288 *
289 * @type {number}
290 * @memberof Series
291 */
292 number?: number | null;
293 /**
294 *
295 * @type {string}
296 * @memberof Series
297 */
298 date?: string | null;
299 /**
300 *
301 * @type {string}
302 * @memberof Series
303 */
304 view_position?: string | null;
305 /**
306 *
307 * @type {string}
308 * @memberof Series
309 */
310 body_part?: string | null;
311}
312/**
313 *
314 * @export
315 * @enum {string}
316 */
317
318export enum SexEnum {
319 F = 'F',
320 M = 'M'
321}
322
323/**
324 *
325 * @export
326 * @enum {string}
327 */
328
329export enum StatusEnum {
330 Unready = 'unready',
331 Ready = 'ready',
332 Completed = 'completed'
333}
334
335/**
336 *
337 * @export
338 * @interface Study
339 */
340export interface Study {
341 /**
342 *
343 * @type {string}
344 * @memberof Study
345 */
346 id: string;
347 /**
348 *
349 * @type {string}
350 * @memberof Study
351 */
352 patient_id: string;
353 /**
354 *
355 * @type {string}
356 * @memberof Study
357 */
358 total_instances: string;
359 /**
360 *
361 * @type {string}
362 * @memberof Study
363 */
364 created: string;
365 /**
366 *
367 * @type {string}
368 * @memberof Study
369 */
370 modified: string;
371 /**
372 *
373 * @type {string}
374 * @memberof Study
375 */
376 uid: string;
377 /**
378 *
379 * @type {string}
380 * @memberof Study
381 */
382 accession_number?: string | null;
383 /**
384 *
385 * @type {string}
386 * @memberof Study
387 */
388 description: string;
389 /**
390 *
391 * @type {string}
392 * @memberof Study
393 */
394 date: string;
395 /**
396 *
397 * @type {boolean}
398 * @memberof Study
399 */
400 hidden?: boolean;
401 /**
402 *
403 * @type {string}
404 * @memberof Study
405 */
406 referring_physician?: string | null;
407 /**
408 *
409 * @type {string}
410 * @memberof Study
411 */
412 institution_name?: string | null;
413 /**
414 *
415 * @type {StatusEnum}
416 * @memberof Study
417 */
418 status?: StatusEnum;
419 /**
420 *
421 * @type {{ [key: string]: any; }}
422 * @memberof Study
423 */
424 report?: { [key: string]: any; } | null;
425 /**
426 *
427 * @type {string}
428 * @memberof Study
429 */
430 notes?: string | null;
431 /**
432 *
433 * @type {PriorityEnum | NullEnum}
434 * @memberof Study
435 */
436 priority?: PriorityEnum | NullEnum | null;
437 /**
438 *
439 * @type {ModalityEnum | NullEnum}
440 * @memberof Study
441 */
442 modality?: ModalityEnum | NullEnum | null;
443}
444
445/**
446 * ApiApi - axios parameter creator
447 * @export
448 */
449export const ApiApiAxiosParamCreator = function (configuration?: Configuration) {
450 return {
451 /**
452 *
453 * @param {string} [id] id
454 * @param {string} [ordering] Which field to use when ordering the results.
455 * @param {string} [series] series
456 * @param {string} [seriesId] series_id
457 * @param {string} [uid] uid
458 * @param {*} [options] Override http request option.
459 * @throws {RequiredError}
460 */
461 apiInstancesList: async (id?: string, ordering?: string, series?: string, seriesId?: string, uid?: string, options: any = {}): Promise<RequestArgs> => {
462 const localVarPath = `/api/instances/`;
463 // use dummy base URL string because the URL constructor only accepts absolute URLs.
464 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
465 let baseOptions;
466 if (configuration) {
467 baseOptions = configuration.baseOptions;
468 }
469
470 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
471 const localVarHeaderParameter = {} as any;
472 const localVarQueryParameter = {} as any;
473
474 // authentication cookieAuth required
475
476 if (id !== undefined) {
477 localVarQueryParameter['id'] = id;
478 }
479
480 if (ordering !== undefined) {
481 localVarQueryParameter['ordering'] = ordering;
482 }
483
484 if (series !== undefined) {
485 localVarQueryParameter['series'] = series;
486 }
487
488 if (seriesId !== undefined) {
489 localVarQueryParameter['series_id'] = seriesId;
490 }
491
492 if (uid !== undefined) {
493 localVarQueryParameter['uid'] = uid;
494 }
495
496
497
498 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
499 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
500 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
501
502 return {
503 url: toPathString(localVarUrlObj),
504 options: localVarRequestOptions,
505 };
506 },
507 /**
508 *
509 * @param {string} id A unique integer value identifying this instance.
510 * @param {*} [options] Override http request option.
511 * @throws {RequiredError}
512 */
513 apiInstancesRetrieve: async (id: string, options: any = {}): Promise<RequestArgs> => {
514 // verify required parameter 'id' is not null or undefined
515 assertParamExists('apiInstancesRetrieve', 'id', id)
516 const localVarPath = `/api/instances/{id}/`
517 .replace(`{${"id"}}`, encodeURIComponent(String(id)));
518 // use dummy base URL string because the URL constructor only accepts absolute URLs.
519 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
520 let baseOptions;
521 if (configuration) {
522 baseOptions = configuration.baseOptions;
523 }
524
525 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
526 const localVarHeaderParameter = {} as any;
527 const localVarQueryParameter = {} as any;
528
529 // authentication cookieAuth required
530
531
532
533 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
534 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
535 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
536
537 return {
538 url: toPathString(localVarUrlObj),
539 options: localVarRequestOptions,
540 };
541 },
542 /**
543 *
544 * @param {*} [options] Override http request option.
545 * @throws {RequiredError}
546 */
547 apiInteropTokenRetrieve: async (options: any = {}): Promise<RequestArgs> => {
548 const localVarPath = `/api/interop/token`;
549 // use dummy base URL string because the URL constructor only accepts absolute URLs.
550 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
551 let baseOptions;
552 if (configuration) {
553 baseOptions = configuration.baseOptions;
554 }
555
556 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
557 const localVarHeaderParameter = {} as any;
558 const localVarQueryParameter = {} as any;
559
560 // authentication cookieAuth required
561
562
563
564 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
565 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
566 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
567
568 return {
569 url: toPathString(localVarUrlObj),
570 options: localVarRequestOptions,
571 };
572 },
573 /**
574 *
575 * @param {string} field
576 * @param {string} model
577 * @param {*} [options] Override http request option.
578 * @throws {RequiredError}
579 */
580 apiModelsFieldsChoicesRetrieve: async (field: string, model: string, options: any = {}): Promise<RequestArgs> => {
581 // verify required parameter 'field' is not null or undefined
582 assertParamExists('apiModelsFieldsChoicesRetrieve', 'field', field)
583 // verify required parameter 'model' is not null or undefined
584 assertParamExists('apiModelsFieldsChoicesRetrieve', 'model', model)
585 const localVarPath = `/api/models/{model}/fields/{field}/choices`
586 .replace(`{${"field"}}`, encodeURIComponent(String(field)))
587 .replace(`{${"model"}}`, encodeURIComponent(String(model)));
588 // use dummy base URL string because the URL constructor only accepts absolute URLs.
589 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
590 let baseOptions;
591 if (configuration) {
592 baseOptions = configuration.baseOptions;
593 }
594
595 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
596 const localVarHeaderParameter = {} as any;
597 const localVarQueryParameter = {} as any;
598
599 // authentication cookieAuth required
600
601
602
603 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
604 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
605 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
606
607 return {
608 url: toPathString(localVarUrlObj),
609 options: localVarRequestOptions,
610 };
611 },
612 /**
613 *
614 * @param {string} [id] id
615 * @param {string} [nameIcontains] name__icontains
616 * @param {string} [ordering] Which field to use when ordering the results.
617 * @param {*} [options] Override http request option.
618 * @throws {RequiredError}
619 */
620 apiPatientsList: async (id?: string, nameIcontains?: string, ordering?: string, options: any = {}): Promise<RequestArgs> => {
621 const localVarPath = `/api/patients/`;
622 // use dummy base URL string because the URL constructor only accepts absolute URLs.
623 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
624 let baseOptions;
625 if (configuration) {
626 baseOptions = configuration.baseOptions;
627 }
628
629 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
630 const localVarHeaderParameter = {} as any;
631 const localVarQueryParameter = {} as any;
632
633 // authentication cookieAuth required
634
635 if (id !== undefined) {
636 localVarQueryParameter['id'] = id;
637 }
638
639 if (nameIcontains !== undefined) {
640 localVarQueryParameter['name__icontains'] = nameIcontains;
641 }
642
643 if (ordering !== undefined) {
644 localVarQueryParameter['ordering'] = ordering;
645 }
646
647
648
649 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
650 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
651 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
652
653 return {
654 url: toPathString(localVarUrlObj),
655 options: localVarRequestOptions,
656 };
657 },
658 /**
659 *
660 * @param {string} id A unique integer value identifying this patient.
661 * @param {*} [options] Override http request option.
662 * @throws {RequiredError}
663 */
664 apiPatientsRetrieve: async (id: string, options: any = {}): Promise<RequestArgs> => {
665 // verify required parameter 'id' is not null or undefined
666 assertParamExists('apiPatientsRetrieve', 'id', id)
667 const localVarPath = `/api/patients/{id}/`
668 .replace(`{${"id"}}`, encodeURIComponent(String(id)));
669 // use dummy base URL string because the URL constructor only accepts absolute URLs.
670 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
671 let baseOptions;
672 if (configuration) {
673 baseOptions = configuration.baseOptions;
674 }
675
676 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
677 const localVarHeaderParameter = {} as any;
678 const localVarQueryParameter = {} as any;
679
680 // authentication cookieAuth required
681
682
683
684 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
685 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
686 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
687
688 return {
689 url: toPathString(localVarUrlObj),
690 options: localVarRequestOptions,
691 };
692 },
693 /**
694 * OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
695 * @param {'json' | 'yaml'} [format]
696 * @param {'af' | 'ar' | 'ar-dz' | 'ast' | 'az' | 'be' | 'bg' | 'bn' | 'br' | 'bs' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'dsb' | 'el' | 'en' | 'en-au' | 'en-gb' | 'eo' | 'es' | 'es-ar' | 'es-co' | 'es-mx' | 'es-ni' | 'es-ve' | 'et' | 'eu' | 'fa' | 'fi' | 'fr' | 'fy' | 'ga' | 'gd' | 'gl' | 'he' | 'hi' | 'hr' | 'hsb' | 'hu' | 'hy' | 'ia' | 'id' | 'ig' | 'io' | 'is' | 'it' | 'ja' | 'ka' | 'kab' | 'kk' | 'km' | 'kn' | 'ko' | 'ky' | 'lb' | 'lt' | 'lv' | 'mk' | 'ml' | 'mn' | 'mr' | 'my' | 'nb' | 'ne' | 'nl' | 'nn' | 'os' | 'pa' | 'pl' | 'pt' | 'pt-br' | 'ro' | 'ru' | 'sk' | 'sl' | 'sq' | 'sr' | 'sr-latn' | 'sv' | 'sw' | 'ta' | 'te' | 'tg' | 'th' | 'tk' | 'tr' | 'tt' | 'udm' | 'uk' | 'ur' | 'uz' | 'vi' | 'zh-hans' | 'zh-hant'} [lang]
697 * @param {*} [options] Override http request option.
698 * @throws {RequiredError}
699 */
700 apiSchemaRetrieve: async (format?: 'json' | 'yaml', lang?: 'af' | 'ar' | 'ar-dz' | 'ast' | 'az' | 'be' | 'bg' | 'bn' | 'br' | 'bs' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'dsb' | 'el' | 'en' | 'en-au' | 'en-gb' | 'eo' | 'es' | 'es-ar' | 'es-co' | 'es-mx' | 'es-ni' | 'es-ve' | 'et' | 'eu' | 'fa' | 'fi' | 'fr' | 'fy' | 'ga' | 'gd' | 'gl' | 'he' | 'hi' | 'hr' | 'hsb' | 'hu' | 'hy' | 'ia' | 'id' | 'ig' | 'io' | 'is' | 'it' | 'ja' | 'ka' | 'kab' | 'kk' | 'km' | 'kn' | 'ko' | 'ky' | 'lb' | 'lt' | 'lv' | 'mk' | 'ml' | 'mn' | 'mr' | 'my' | 'nb' | 'ne' | 'nl' | 'nn' | 'os' | 'pa' | 'pl' | 'pt' | 'pt-br' | 'ro' | 'ru' | 'sk' | 'sl' | 'sq' | 'sr' | 'sr-latn' | 'sv' | 'sw' | 'ta' | 'te' | 'tg' | 'th' | 'tk' | 'tr' | 'tt' | 'udm' | 'uk' | 'ur' | 'uz' | 'vi' | 'zh-hans' | 'zh-hant', options: any = {}): Promise<RequestArgs> => {
701 const localVarPath = `/api/schema/`;
702 // use dummy base URL string because the URL constructor only accepts absolute URLs.
703 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
704 let baseOptions;
705 if (configuration) {
706 baseOptions = configuration.baseOptions;
707 }
708
709 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
710 const localVarHeaderParameter = {} as any;
711 const localVarQueryParameter = {} as any;
712
713 // authentication cookieAuth required
714
715 if (format !== undefined) {
716 localVarQueryParameter['format'] = format;
717 }
718
719 if (lang !== undefined) {
720 localVarQueryParameter['lang'] = lang;
721 }
722
723
724
725 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
726 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
727 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
728
729 return {
730 url: toPathString(localVarUrlObj),
731 options: localVarRequestOptions,
732 };
733 },
734 /**
735 *
736 * @param {string} [id] id
737 * @param {string} [ordering] Which field to use when ordering the results.
738 * @param {string} [study] study
739 * @param {string} [studyId] study_id
740 * @param {string} [uid] uid
741 * @param {*} [options] Override http request option.
742 * @throws {RequiredError}
743 */
744 apiSeriesList: async (id?: string, ordering?: string, study?: string, studyId?: string, uid?: string, options: any = {}): Promise<RequestArgs> => {
745 const localVarPath = `/api/series/`;
746 // use dummy base URL string because the URL constructor only accepts absolute URLs.
747 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
748 let baseOptions;
749 if (configuration) {
750 baseOptions = configuration.baseOptions;
751 }
752
753 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
754 const localVarHeaderParameter = {} as any;
755 const localVarQueryParameter = {} as any;
756
757 // authentication cookieAuth required
758
759 if (id !== undefined) {
760 localVarQueryParameter['id'] = id;
761 }
762
763 if (ordering !== undefined) {
764 localVarQueryParameter['ordering'] = ordering;
765 }
766
767 if (study !== undefined) {
768 localVarQueryParameter['study'] = study;
769 }
770
771 if (studyId !== undefined) {
772 localVarQueryParameter['study_id'] = studyId;
773 }
774
775 if (uid !== undefined) {
776 localVarQueryParameter['uid'] = uid;
777 }
778
779
780
781 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
782 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
783 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
784
785 return {
786 url: toPathString(localVarUrlObj),
787 options: localVarRequestOptions,
788 };
789 },
790 /**
791 *
792 * @param {string} id A unique integer value identifying this series.
793 * @param {*} [options] Override http request option.
794 * @throws {RequiredError}
795 */
796 apiSeriesRetrieve: async (id: string, options: any = {}): Promise<RequestArgs> => {
797 // verify required parameter 'id' is not null or undefined
798 assertParamExists('apiSeriesRetrieve', 'id', id)
799 const localVarPath = `/api/series/{id}/`
800 .replace(`{${"id"}}`, encodeURIComponent(String(id)));
801 // use dummy base URL string because the URL constructor only accepts absolute URLs.
802 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
803 let baseOptions;
804 if (configuration) {
805 baseOptions = configuration.baseOptions;
806 }
807
808 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
809 const localVarHeaderParameter = {} as any;
810 const localVarQueryParameter = {} as any;
811
812 // authentication cookieAuth required
813
814
815
816 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
817 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
818 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
819
820 return {
821 url: toPathString(localVarUrlObj),
822 options: localVarRequestOptions,
823 };
824 },
825 /**
826 *
827 * @param {string} [descriptionIcontains] description__icontains
828 * @param {string} [hidden] hidden
829 * @param {string} [id] id
830 * @param {string} [institutionNameIcontains] institution_name__icontains
831 * @param {'CT' | 'MR' | 'XA' | 'CR' | 'DX' | 'PET' | 'NM' | 'US' | 'RF' | 'ECG' | 'SC' | 'MG' | 'RTSTRUCT'} [modality] modality
832 * @param {string} [ordering] Which field to use when ordering the results.
833 * @param {string} [patient] patient
834 * @param {string} [patientNameIcontains] patient__name__icontains
835 * @param {string} [patientId] patient_id
836 * @param {'routine' | 'urgent' | 'asap' | 'stat'} [priority] priority
837 * @param {string} [referringPhysicianIcontains] referring_physician__icontains
838 * @param {'unready' | 'ready' | 'completed'} [status] status
839 * @param {string} [uid] uid
840 * @param {*} [options] Override http request option.
841 * @throws {RequiredError}
842 */
843 apiStudiesList: async (descriptionIcontains?: string, hidden?: string, id?: string, institutionNameIcontains?: string, modality?: 'CT' | 'MR' | 'XA' | 'CR' | 'DX' | 'PET' | 'NM' | 'US' | 'RF' | 'ECG' | 'SC' | 'MG' | 'RTSTRUCT', ordering?: string, patient?: string, patientNameIcontains?: string, patientId?: string, priority?: 'routine' | 'urgent' | 'asap' | 'stat', referringPhysicianIcontains?: string, status?: 'unready' | 'ready' | 'completed', uid?: string, options: any = {}): Promise<RequestArgs> => {
844 const localVarPath = `/api/studies/`;
845 // use dummy base URL string because the URL constructor only accepts absolute URLs.
846 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
847 let baseOptions;
848 if (configuration) {
849 baseOptions = configuration.baseOptions;
850 }
851
852 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
853 const localVarHeaderParameter = {} as any;
854 const localVarQueryParameter = {} as any;
855
856 // authentication cookieAuth required
857
858 if (descriptionIcontains !== undefined) {
859 localVarQueryParameter['description__icontains'] = descriptionIcontains;
860 }
861
862 if (hidden !== undefined) {
863 localVarQueryParameter['hidden'] = hidden;
864 }
865
866 if (id !== undefined) {
867 localVarQueryParameter['id'] = id;
868 }
869
870 if (institutionNameIcontains !== undefined) {
871 localVarQueryParameter['institution_name__icontains'] = institutionNameIcontains;
872 }
873
874 if (modality !== undefined) {
875 localVarQueryParameter['modality'] = modality;
876 }
877
878 if (ordering !== undefined) {
879 localVarQueryParameter['ordering'] = ordering;
880 }
881
882 if (patient !== undefined) {
883 localVarQueryParameter['patient'] = patient;
884 }
885
886 if (patientNameIcontains !== undefined) {
887 localVarQueryParameter['patient__name__icontains'] = patientNameIcontains;
888 }
889
890 if (patientId !== undefined) {
891 localVarQueryParameter['patient_id'] = patientId;
892 }
893
894 if (priority !== undefined) {
895 localVarQueryParameter['priority'] = priority;
896 }
897
898 if (referringPhysicianIcontains !== undefined) {
899 localVarQueryParameter['referring_physician__icontains'] = referringPhysicianIcontains;
900 }
901
902 if (status !== undefined) {
903 localVarQueryParameter['status'] = status;
904 }
905
906 if (uid !== undefined) {
907 localVarQueryParameter['uid'] = uid;
908 }
909
910
911
912 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
913 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
914 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
915
916 return {
917 url: toPathString(localVarUrlObj),
918 options: localVarRequestOptions,
919 };
920 },
921 /**
922 * Quoted by Costin in Slack: \"findAll returns all studies in the table, findPast returns all studies for each patient\" \"findPast uses study id in the request, and get the study, then gets all related studies for the patient of requested study, and finally returns the array\"
923 * @param {string} id
924 * @param {*} [options] Override http request option.
925 * @throws {RequiredError}
926 */
927 apiStudiesPastRetrieve: async (id: string, options: any = {}): Promise<RequestArgs> => {
928 // verify required parameter 'id' is not null or undefined
929 assertParamExists('apiStudiesPastRetrieve', 'id', id)
930 const localVarPath = `/api/studies/{id}/past`
931 .replace(`{${"id"}}`, encodeURIComponent(String(id)));
932 // use dummy base URL string because the URL constructor only accepts absolute URLs.
933 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
934 let baseOptions;
935 if (configuration) {
936 baseOptions = configuration.baseOptions;
937 }
938
939 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
940 const localVarHeaderParameter = {} as any;
941 const localVarQueryParameter = {} as any;
942
943 // authentication cookieAuth required
944
945
946
947 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
948 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
949 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
950
951 return {
952 url: toPathString(localVarUrlObj),
953 options: localVarRequestOptions,
954 };
955 },
956 /**
957 *
958 * @param {string} id A unique integer value identifying this study.
959 * @param {*} [options] Override http request option.
960 * @throws {RequiredError}
961 */
962 apiStudiesRetrieve: async (id: string, options: any = {}): Promise<RequestArgs> => {
963 // verify required parameter 'id' is not null or undefined
964 assertParamExists('apiStudiesRetrieve', 'id', id)
965 const localVarPath = `/api/studies/{id}/`
966 .replace(`{${"id"}}`, encodeURIComponent(String(id)));
967 // use dummy base URL string because the URL constructor only accepts absolute URLs.
968 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
969 let baseOptions;
970 if (configuration) {
971 baseOptions = configuration.baseOptions;
972 }
973
974 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
975 const localVarHeaderParameter = {} as any;
976 const localVarQueryParameter = {} as any;
977
978 // authentication cookieAuth required
979
980
981
982 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
983 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
984 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
985
986 return {
987 url: toPathString(localVarUrlObj),
988 options: localVarRequestOptions,
989 };
990 },
991 /**
992 *
993 * @param {*} [options] Override http request option.
994 * @throws {RequiredError}
995 */
996 apiUsersMeRetrieve: async (options: any = {}): Promise<RequestArgs> => {
997 const localVarPath = `/api/users/me`;
998 // use dummy base URL string because the URL constructor only accepts absolute URLs.
999 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1000 let baseOptions;
1001 if (configuration) {
1002 baseOptions = configuration.baseOptions;
1003 }
1004
1005 const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1006 const localVarHeaderParameter = {} as any;
1007 const localVarQueryParameter = {} as any;
1008
1009 // authentication cookieAuth required
1010
1011
1012
1013 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
1014 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1015 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1016
1017 return {
1018 url: toPathString(localVarUrlObj),
1019 options: localVarRequestOptions,
1020 };
1021 },
1022 }
1023};
1024
1025/**
1026 * ApiApi - functional programming interface
1027 * @export
1028 */
1029export const ApiApiFp = function(configuration?: Configuration) {
1030 const localVarAxiosParamCreator = ApiApiAxiosParamCreator(configuration)
1031 return {
1032 /**
1033 *
1034 * @param {string} [id] id
1035 * @param {string} [ordering] Which field to use when ordering the results.
1036 * @param {string} [series] series
1037 * @param {string} [seriesId] series_id
1038 * @param {string} [uid] uid
1039 * @param {*} [options] Override http request option.
1040 * @throws {RequiredError}
1041 */
1042 async apiInstancesList(id?: string, ordering?: string, series?: string, seriesId?: string, uid?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Instance>>> {
1043 const localVarAxiosArgs = await localVarAxiosParamCreator.apiInstancesList(id, ordering, series, seriesId, uid, options);
1044 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1045 },
1046 /**
1047 *
1048 * @param {string} id A unique integer value identifying this instance.
1049 * @param {*} [options] Override http request option.
1050 * @throws {RequiredError}
1051 */
1052 async apiInstancesRetrieve(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>> {
1053 const localVarAxiosArgs = await localVarAxiosParamCreator.apiInstancesRetrieve(id, options);
1054 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1055 },
1056 /**
1057 *
1058 * @param {*} [options] Override http request option.
1059 * @throws {RequiredError}
1060 */
1061 async apiInteropTokenRetrieve(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1062 const localVarAxiosArgs = await localVarAxiosParamCreator.apiInteropTokenRetrieve(options);
1063 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1064 },
1065 /**
1066 *
1067 * @param {string} field
1068 * @param {string} model
1069 * @param {*} [options] Override http request option.
1070 * @throws {RequiredError}
1071 */
1072 async apiModelsFieldsChoicesRetrieve(field: string, model: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1073 const localVarAxiosArgs = await localVarAxiosParamCreator.apiModelsFieldsChoicesRetrieve(field, model, options);
1074 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1075 },
1076 /**
1077 *
1078 * @param {string} [id] id
1079 * @param {string} [nameIcontains] name__icontains
1080 * @param {string} [ordering] Which field to use when ordering the results.
1081 * @param {*} [options] Override http request option.
1082 * @throws {RequiredError}
1083 */
1084 async apiPatientsList(id?: string, nameIcontains?: string, ordering?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Patient>>> {
1085 const localVarAxiosArgs = await localVarAxiosParamCreator.apiPatientsList(id, nameIcontains, ordering, options);
1086 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1087 },
1088 /**
1089 *
1090 * @param {string} id A unique integer value identifying this patient.
1091 * @param {*} [options] Override http request option.
1092 * @throws {RequiredError}
1093 */
1094 async apiPatientsRetrieve(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Patient>> {
1095 const localVarAxiosArgs = await localVarAxiosParamCreator.apiPatientsRetrieve(id, options);
1096 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1097 },
1098 /**
1099 * OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
1100 * @param {'json' | 'yaml'} [format]
1101 * @param {'af' | 'ar' | 'ar-dz' | 'ast' | 'az' | 'be' | 'bg' | 'bn' | 'br' | 'bs' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'dsb' | 'el' | 'en' | 'en-au' | 'en-gb' | 'eo' | 'es' | 'es-ar' | 'es-co' | 'es-mx' | 'es-ni' | 'es-ve' | 'et' | 'eu' | 'fa' | 'fi' | 'fr' | 'fy' | 'ga' | 'gd' | 'gl' | 'he' | 'hi' | 'hr' | 'hsb' | 'hu' | 'hy' | 'ia' | 'id' | 'ig' | 'io' | 'is' | 'it' | 'ja' | 'ka' | 'kab' | 'kk' | 'km' | 'kn' | 'ko' | 'ky' | 'lb' | 'lt' | 'lv' | 'mk' | 'ml' | 'mn' | 'mr' | 'my' | 'nb' | 'ne' | 'nl' | 'nn' | 'os' | 'pa' | 'pl' | 'pt' | 'pt-br' | 'ro' | 'ru' | 'sk' | 'sl' | 'sq' | 'sr' | 'sr-latn' | 'sv' | 'sw' | 'ta' | 'te' | 'tg' | 'th' | 'tk' | 'tr' | 'tt' | 'udm' | 'uk' | 'ur' | 'uz' | 'vi' | 'zh-hans' | 'zh-hant'} [lang]
1102 * @param {*} [options] Override http request option.
1103 * @throws {RequiredError}
1104 */
1105 async apiSchemaRetrieve(format?: 'json' | 'yaml', lang?: 'af' | 'ar' | 'ar-dz' | 'ast' | 'az' | 'be' | 'bg' | 'bn' | 'br' | 'bs' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'dsb' | 'el' | 'en' | 'en-au' | 'en-gb' | 'eo' | 'es' | 'es-ar' | 'es-co' | 'es-mx' | 'es-ni' | 'es-ve' | 'et' | 'eu' | 'fa' | 'fi' | 'fr' | 'fy' | 'ga' | 'gd' | 'gl' | 'he' | 'hi' | 'hr' | 'hsb' | 'hu' | 'hy' | 'ia' | 'id' | 'ig' | 'io' | 'is' | 'it' | 'ja' | 'ka' | 'kab' | 'kk' | 'km' | 'kn' | 'ko' | 'ky' | 'lb' | 'lt' | 'lv' | 'mk' | 'ml' | 'mn' | 'mr' | 'my' | 'nb' | 'ne' | 'nl' | 'nn' | 'os' | 'pa' | 'pl' | 'pt' | 'pt-br' | 'ro' | 'ru' | 'sk' | 'sl' | 'sq' | 'sr' | 'sr-latn' | 'sv' | 'sw' | 'ta' | 'te' | 'tg' | 'th' | 'tk' | 'tr' | 'tt' | 'udm' | 'uk' | 'ur' | 'uz' | 'vi' | 'zh-hans' | 'zh-hant', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
1106 const localVarAxiosArgs = await localVarAxiosParamCreator.apiSchemaRetrieve(format, lang, options);
1107 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1108 },
1109 /**
1110 *
1111 * @param {string} [id] id
1112 * @param {string} [ordering] Which field to use when ordering the results.
1113 * @param {string} [study] study
1114 * @param {string} [studyId] study_id
1115 * @param {string} [uid] uid
1116 * @param {*} [options] Override http request option.
1117 * @throws {RequiredError}
1118 */
1119 async apiSeriesList(id?: string, ordering?: string, study?: string, studyId?: string, uid?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Series>>> {
1120 const localVarAxiosArgs = await localVarAxiosParamCreator.apiSeriesList(id, ordering, study, studyId, uid, options);
1121 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1122 },
1123 /**
1124 *
1125 * @param {string} id A unique integer value identifying this series.
1126 * @param {*} [options] Override http request option.
1127 * @throws {RequiredError}
1128 */
1129 async apiSeriesRetrieve(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Series>> {
1130 const localVarAxiosArgs = await localVarAxiosParamCreator.apiSeriesRetrieve(id, options);
1131 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1132 },
1133 /**
1134 *
1135 * @param {string} [descriptionIcontains] description__icontains
1136 * @param {string} [hidden] hidden
1137 * @param {string} [id] id
1138 * @param {string} [institutionNameIcontains] institution_name__icontains
1139 * @param {'CT' | 'MR' | 'XA' | 'CR' | 'DX' | 'PET' | 'NM' | 'US' | 'RF' | 'ECG' | 'SC' | 'MG' | 'RTSTRUCT'} [modality] modality
1140 * @param {string} [ordering] Which field to use when ordering the results.
1141 * @param {string} [patient] patient
1142 * @param {string} [patientNameIcontains] patient__name__icontains
1143 * @param {string} [patientId] patient_id
1144 * @param {'routine' | 'urgent' | 'asap' | 'stat'} [priority] priority
1145 * @param {string} [referringPhysicianIcontains] referring_physician__icontains
1146 * @param {'unready' | 'ready' | 'completed'} [status] status
1147 * @param {string} [uid] uid
1148 * @param {*} [options] Override http request option.
1149 * @throws {RequiredError}
1150 */
1151 async apiStudiesList(descriptionIcontains?: string, hidden?: string, id?: string, institutionNameIcontains?: string, modality?: 'CT' | 'MR' | 'XA' | 'CR' | 'DX' | 'PET' | 'NM' | 'US' | 'RF' | 'ECG' | 'SC' | 'MG' | 'RTSTRUCT', ordering?: string, patient?: string, patientNameIcontains?: string, patientId?: string, priority?: 'routine' | 'urgent' | 'asap' | 'stat', referringPhysicianIcontains?: string, status?: 'unready' | 'ready' | 'completed', uid?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Study>>> {
1152 const localVarAxiosArgs = await localVarAxiosParamCreator.apiStudiesList(descriptionIcontains, hidden, id, institutionNameIcontains, modality, ordering, patient, patientNameIcontains, patientId, priority, referringPhysicianIcontains, status, uid, options);
1153 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1154 },
1155 /**
1156 * Quoted by Costin in Slack: \"findAll returns all studies in the table, findPast returns all studies for each patient\" \"findPast uses study id in the request, and get the study, then gets all related studies for the patient of requested study, and finally returns the array\"
1157 * @param {string} id
1158 * @param {*} [options] Override http request option.
1159 * @throws {RequiredError}
1160 */
1161 async apiStudiesPastRetrieve(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1162 const localVarAxiosArgs = await localVarAxiosParamCreator.apiStudiesPastRetrieve(id, options);
1163 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1164 },
1165 /**
1166 *
1167 * @param {string} id A unique integer value identifying this study.
1168 * @param {*} [options] Override http request option.
1169 * @throws {RequiredError}
1170 */
1171 async apiStudiesRetrieve(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Study>> {
1172 const localVarAxiosArgs = await localVarAxiosParamCreator.apiStudiesRetrieve(id, options);
1173 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1174 },
1175 /**
1176 *
1177 * @param {*} [options] Override http request option.
1178 * @throws {RequiredError}
1179 */
1180 async apiUsersMeRetrieve(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1181 const localVarAxiosArgs = await localVarAxiosParamCreator.apiUsersMeRetrieve(options);
1182 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1183 },
1184 }
1185};
1186
1187/**
1188 * ApiApi - factory interface
1189 * @export
1190 */
1191export const ApiApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1192 const localVarFp = ApiApiFp(configuration)
1193 return {
1194 /**
1195 *
1196 * @param {string} [id] id
1197 * @param {string} [ordering] Which field to use when ordering the results.
1198 * @param {string} [series] series
1199 * @param {string} [seriesId] series_id
1200 * @param {string} [uid] uid
1201 * @param {*} [options] Override http request option.
1202 * @throws {RequiredError}
1203 */
1204 apiInstancesList(id?: string, ordering?: string, series?: string, seriesId?: string, uid?: string, options?: any): AxiosPromise<Array<Instance>> {
1205 return localVarFp.apiInstancesList(id, ordering, series, seriesId, uid, options).then((request) => request(axios, basePath));
1206 },
1207 /**
1208 *
1209 * @param {string} id A unique integer value identifying this instance.
1210 * @param {*} [options] Override http request option.
1211 * @throws {RequiredError}
1212 */
1213 apiInstancesRetrieve(id: string, options?: any): AxiosPromise<Instance> {
1214 return localVarFp.apiInstancesRetrieve(id, options).then((request) => request(axios, basePath));
1215 },
1216 /**
1217 *
1218 * @param {*} [options] Override http request option.
1219 * @throws {RequiredError}
1220 */
1221 apiInteropTokenRetrieve(options?: any): AxiosPromise<void> {
1222 return localVarFp.apiInteropTokenRetrieve(options).then((request) => request(axios, basePath));
1223 },
1224 /**
1225 *
1226 * @param {string} field
1227 * @param {string} model
1228 * @param {*} [options] Override http request option.
1229 * @throws {RequiredError}
1230 */
1231 apiModelsFieldsChoicesRetrieve(field: string, model: string, options?: any): AxiosPromise<void> {
1232 return localVarFp.apiModelsFieldsChoicesRetrieve(field, model, options).then((request) => request(axios, basePath));
1233 },
1234 /**
1235 *
1236 * @param {string} [id] id
1237 * @param {string} [nameIcontains] name__icontains
1238 * @param {string} [ordering] Which field to use when ordering the results.
1239 * @param {*} [options] Override http request option.
1240 * @throws {RequiredError}
1241 */
1242 apiPatientsList(id?: string, nameIcontains?: string, ordering?: string, options?: any): AxiosPromise<Array<Patient>> {
1243 return localVarFp.apiPatientsList(id, nameIcontains, ordering, options).then((request) => request(axios, basePath));
1244 },
1245 /**
1246 *
1247 * @param {string} id A unique integer value identifying this patient.
1248 * @param {*} [options] Override http request option.
1249 * @throws {RequiredError}
1250 */
1251 apiPatientsRetrieve(id: string, options?: any): AxiosPromise<Patient> {
1252 return localVarFp.apiPatientsRetrieve(id, options).then((request) => request(axios, basePath));
1253 },
1254 /**
1255 * OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
1256 * @param {'json' | 'yaml'} [format]
1257 * @param {'af' | 'ar' | 'ar-dz' | 'ast' | 'az' | 'be' | 'bg' | 'bn' | 'br' | 'bs' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'dsb' | 'el' | 'en' | 'en-au' | 'en-gb' | 'eo' | 'es' | 'es-ar' | 'es-co' | 'es-mx' | 'es-ni' | 'es-ve' | 'et' | 'eu' | 'fa' | 'fi' | 'fr' | 'fy' | 'ga' | 'gd' | 'gl' | 'he' | 'hi' | 'hr' | 'hsb' | 'hu' | 'hy' | 'ia' | 'id' | 'ig' | 'io' | 'is' | 'it' | 'ja' | 'ka' | 'kab' | 'kk' | 'km' | 'kn' | 'ko' | 'ky' | 'lb' | 'lt' | 'lv' | 'mk' | 'ml' | 'mn' | 'mr' | 'my' | 'nb' | 'ne' | 'nl' | 'nn' | 'os' | 'pa' | 'pl' | 'pt' | 'pt-br' | 'ro' | 'ru' | 'sk' | 'sl' | 'sq' | 'sr' | 'sr-latn' | 'sv' | 'sw' | 'ta' | 'te' | 'tg' | 'th' | 'tk' | 'tr' | 'tt' | 'udm' | 'uk' | 'ur' | 'uz' | 'vi' | 'zh-hans' | 'zh-hant'} [lang]
1258 * @param {*} [options] Override http request option.
1259 * @throws {RequiredError}
1260 */
1261 apiSchemaRetrieve(format?: 'json' | 'yaml', lang?: 'af' | 'ar' | 'ar-dz' | 'ast' | 'az' | 'be' | 'bg' | 'bn' | 'br' | 'bs' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'dsb' | 'el' | 'en' | 'en-au' | 'en-gb' | 'eo' | 'es' | 'es-ar' | 'es-co' | 'es-mx' | 'es-ni' | 'es-ve' | 'et' | 'eu' | 'fa' | 'fi' | 'fr' | 'fy' | 'ga' | 'gd' | 'gl' | 'he' | 'hi' | 'hr' | 'hsb' | 'hu' | 'hy' | 'ia' | 'id' | 'ig' | 'io' | 'is' | 'it' | 'ja' | 'ka' | 'kab' | 'kk' | 'km' | 'kn' | 'ko' | 'ky' | 'lb' | 'lt' | 'lv' | 'mk' | 'ml' | 'mn' | 'mr' | 'my' | 'nb' | 'ne' | 'nl' | 'nn' | 'os' | 'pa' | 'pl' | 'pt' | 'pt-br' | 'ro' | 'ru' | 'sk' | 'sl' | 'sq' | 'sr' | 'sr-latn' | 'sv' | 'sw' | 'ta' | 'te' | 'tg' | 'th' | 'tk' | 'tr' | 'tt' | 'udm' | 'uk' | 'ur' | 'uz' | 'vi' | 'zh-hans' | 'zh-hant', options?: any): AxiosPromise<{ [key: string]: any; }> {
1262 return localVarFp.apiSchemaRetrieve(format, lang, options).then((request) => request(axios, basePath));
1263 },
1264 /**
1265 *
1266 * @param {string} [id] id
1267 * @param {string} [ordering] Which field to use when ordering the results.
1268 * @param {string} [study] study
1269 * @param {string} [studyId] study_id
1270 * @param {string} [uid] uid
1271 * @param {*} [options] Override http request option.
1272 * @throws {RequiredError}
1273 */
1274 apiSeriesList(id?: string, ordering?: string, study?: string, studyId?: string, uid?: string, options?: any): AxiosPromise<Array<Series>> {
1275 return localVarFp.apiSeriesList(id, ordering, study, studyId, uid, options).then((request) => request(axios, basePath));
1276 },
1277 /**
1278 *
1279 * @param {string} id A unique integer value identifying this series.
1280 * @param {*} [options] Override http request option.
1281 * @throws {RequiredError}
1282 */
1283 apiSeriesRetrieve(id: string, options?: any): AxiosPromise<Series> {
1284 return localVarFp.apiSeriesRetrieve(id, options).then((request) => request(axios, basePath));
1285 },
1286 /**
1287 *
1288 * @param {string} [descriptionIcontains] description__icontains
1289 * @param {string} [hidden] hidden
1290 * @param {string} [id] id
1291 * @param {string} [institutionNameIcontains] institution_name__icontains
1292 * @param {'CT' | 'MR' | 'XA' | 'CR' | 'DX' | 'PET' | 'NM' | 'US' | 'RF' | 'ECG' | 'SC' | 'MG' | 'RTSTRUCT'} [modality] modality
1293 * @param {string} [ordering] Which field to use when ordering the results.
1294 * @param {string} [patient] patient
1295 * @param {string} [patientNameIcontains] patient__name__icontains
1296 * @param {string} [patientId] patient_id
1297 * @param {'routine' | 'urgent' | 'asap' | 'stat'} [priority] priority
1298 * @param {string} [referringPhysicianIcontains] referring_physician__icontains
1299 * @param {'unready' | 'ready' | 'completed'} [status] status
1300 * @param {string} [uid] uid
1301 * @param {*} [options] Override http request option.
1302 * @throws {RequiredError}
1303 */
1304 apiStudiesList(descriptionIcontains?: string, hidden?: string, id?: string, institutionNameIcontains?: string, modality?: 'CT' | 'MR' | 'XA' | 'CR' | 'DX' | 'PET' | 'NM' | 'US' | 'RF' | 'ECG' | 'SC' | 'MG' | 'RTSTRUCT', ordering?: string, patient?: string, patientNameIcontains?: string, patientId?: string, priority?: 'routine' | 'urgent' | 'asap' | 'stat', referringPhysicianIcontains?: string, status?: 'unready' | 'ready' | 'completed', uid?: string, options?: any): AxiosPromise<Array<Study>> {
1305 return localVarFp.apiStudiesList(descriptionIcontains, hidden, id, institutionNameIcontains, modality, ordering, patient, patientNameIcontains, patientId, priority, referringPhysicianIcontains, status, uid, options).then((request) => request(axios, basePath));
1306 },
1307 /**
1308 * Quoted by Costin in Slack: \"findAll returns all studies in the table, findPast returns all studies for each patient\" \"findPast uses study id in the request, and get the study, then gets all related studies for the patient of requested study, and finally returns the array\"
1309 * @param {string} id
1310 * @param {*} [options] Override http request option.
1311 * @throws {RequiredError}
1312 */
1313 apiStudiesPastRetrieve(id: string, options?: any): AxiosPromise<void> {
1314 return localVarFp.apiStudiesPastRetrieve(id, options).then((request) => request(axios, basePath));
1315 },
1316 /**
1317 *
1318 * @param {string} id A unique integer value identifying this study.
1319 * @param {*} [options] Override http request option.
1320 * @throws {RequiredError}
1321 */
1322 apiStudiesRetrieve(id: string, options?: any): AxiosPromise<Study> {
1323 return localVarFp.apiStudiesRetrieve(id, options).then((request) => request(axios, basePath));
1324 },
1325 /**
1326 *
1327 * @param {*} [options] Override http request option.
1328 * @throws {RequiredError}
1329 */
1330 apiUsersMeRetrieve(options?: any): AxiosPromise<void> {
1331 return localVarFp.apiUsersMeRetrieve(options).then((request) => request(axios, basePath));
1332 },
1333 };
1334};
1335
1336/**
1337 * ApiApi - object-oriented interface
1338 * @export
1339 * @class ApiApi
1340 * @extends {BaseAPI}
1341 */
1342export class ApiApi extends BaseAPI {
1343 /**
1344 *
1345 * @param {string} [id] id
1346 * @param {string} [ordering] Which field to use when ordering the results.
1347 * @param {string} [series] series
1348 * @param {string} [seriesId] series_id
1349 * @param {string} [uid] uid
1350 * @param {*} [options] Override http request option.
1351 * @throws {RequiredError}
1352 * @memberof ApiApi
1353 */
1354 public apiInstancesList(id?: string, ordering?: string, series?: string, seriesId?: string, uid?: string, options?: any) {
1355 return ApiApiFp(this.configuration).apiInstancesList(id, ordering, series, seriesId, uid, options).then((request) => request(this.axios, this.basePath));
1356 }
1357
1358 /**
1359 *
1360 * @param {string} id A unique integer value identifying this instance.
1361 * @param {*} [options] Override http request option.
1362 * @throws {RequiredError}
1363 * @memberof ApiApi
1364 */
1365 public apiInstancesRetrieve(id: string, options?: any) {
1366 return ApiApiFp(this.configuration).apiInstancesRetrieve(id, options).then((request) => request(this.axios, this.basePath));
1367 }
1368
1369 /**
1370 *
1371 * @param {*} [options] Override http request option.
1372 * @throws {RequiredError}
1373 * @memberof ApiApi
1374 */
1375 public apiInteropTokenRetrieve(options?: any) {
1376 return ApiApiFp(this.configuration).apiInteropTokenRetrieve(options).then((request) => request(this.axios, this.basePath));
1377 }
1378
1379 /**
1380 *
1381 * @param {string} field
1382 * @param {string} model
1383 * @param {*} [options] Override http request option.
1384 * @throws {RequiredError}
1385 * @memberof ApiApi
1386 */
1387 public apiModelsFieldsChoicesRetrieve(field: string, model: string, options?: any) {
1388 return ApiApiFp(this.configuration).apiModelsFieldsChoicesRetrieve(field, model, options).then((request) => request(this.axios, this.basePath));
1389 }
1390
1391 /**
1392 *
1393 * @param {string} [id] id
1394 * @param {string} [nameIcontains] name__icontains
1395 * @param {string} [ordering] Which field to use when ordering the results.
1396 * @param {*} [options] Override http request option.
1397 * @throws {RequiredError}
1398 * @memberof ApiApi
1399 */
1400 public apiPatientsList(id?: string, nameIcontains?: string, ordering?: string, options?: any) {
1401 return ApiApiFp(this.configuration).apiPatientsList(id, nameIcontains, ordering, options).then((request) => request(this.axios, this.basePath));
1402 }
1403
1404 /**
1405 *
1406 * @param {string} id A unique integer value identifying this patient.
1407 * @param {*} [options] Override http request option.
1408 * @throws {RequiredError}
1409 * @memberof ApiApi
1410 */
1411 public apiPatientsRetrieve(id: string, options?: any) {
1412 return ApiApiFp(this.configuration).apiPatientsRetrieve(id, options).then((request) => request(this.axios, this.basePath));
1413 }
1414
1415 /**
1416 * OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
1417 * @param {'json' | 'yaml'} [format]
1418 * @param {'af' | 'ar' | 'ar-dz' | 'ast' | 'az' | 'be' | 'bg' | 'bn' | 'br' | 'bs' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'dsb' | 'el' | 'en' | 'en-au' | 'en-gb' | 'eo' | 'es' | 'es-ar' | 'es-co' | 'es-mx' | 'es-ni' | 'es-ve' | 'et' | 'eu' | 'fa' | 'fi' | 'fr' | 'fy' | 'ga' | 'gd' | 'gl' | 'he' | 'hi' | 'hr' | 'hsb' | 'hu' | 'hy' | 'ia' | 'id' | 'ig' | 'io' | 'is' | 'it' | 'ja' | 'ka' | 'kab' | 'kk' | 'km' | 'kn' | 'ko' | 'ky' | 'lb' | 'lt' | 'lv' | 'mk' | 'ml' | 'mn' | 'mr' | 'my' | 'nb' | 'ne' | 'nl' | 'nn' | 'os' | 'pa' | 'pl' | 'pt' | 'pt-br' | 'ro' | 'ru' | 'sk' | 'sl' | 'sq' | 'sr' | 'sr-latn' | 'sv' | 'sw' | 'ta' | 'te' | 'tg' | 'th' | 'tk' | 'tr' | 'tt' | 'udm' | 'uk' | 'ur' | 'uz' | 'vi' | 'zh-hans' | 'zh-hant'} [lang]
1419 * @param {*} [options] Override http request option.
1420 * @throws {RequiredError}
1421 * @memberof ApiApi
1422 */
1423 public apiSchemaRetrieve(format?: 'json' | 'yaml', lang?: 'af' | 'ar' | 'ar-dz' | 'ast' | 'az' | 'be' | 'bg' | 'bn' | 'br' | 'bs' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'dsb' | 'el' | 'en' | 'en-au' | 'en-gb' | 'eo' | 'es' | 'es-ar' | 'es-co' | 'es-mx' | 'es-ni' | 'es-ve' | 'et' | 'eu' | 'fa' | 'fi' | 'fr' | 'fy' | 'ga' | 'gd' | 'gl' | 'he' | 'hi' | 'hr' | 'hsb' | 'hu' | 'hy' | 'ia' | 'id' | 'ig' | 'io' | 'is' | 'it' | 'ja' | 'ka' | 'kab' | 'kk' | 'km' | 'kn' | 'ko' | 'ky' | 'lb' | 'lt' | 'lv' | 'mk' | 'ml' | 'mn' | 'mr' | 'my' | 'nb' | 'ne' | 'nl' | 'nn' | 'os' | 'pa' | 'pl' | 'pt' | 'pt-br' | 'ro' | 'ru' | 'sk' | 'sl' | 'sq' | 'sr' | 'sr-latn' | 'sv' | 'sw' | 'ta' | 'te' | 'tg' | 'th' | 'tk' | 'tr' | 'tt' | 'udm' | 'uk' | 'ur' | 'uz' | 'vi' | 'zh-hans' | 'zh-hant', options?: any) {
1424 return ApiApiFp(this.configuration).apiSchemaRetrieve(format, lang, options).then((request) => request(this.axios, this.basePath));
1425 }
1426
1427 /**
1428 *
1429 * @param {string} [id] id
1430 * @param {string} [ordering] Which field to use when ordering the results.
1431 * @param {string} [study] study
1432 * @param {string} [studyId] study_id
1433 * @param {string} [uid] uid
1434 * @param {*} [options] Override http request option.
1435 * @throws {RequiredError}
1436 * @memberof ApiApi
1437 */
1438 public apiSeriesList(id?: string, ordering?: string, study?: string, studyId?: string, uid?: string, options?: any) {
1439 return ApiApiFp(this.configuration).apiSeriesList(id, ordering, study, studyId, uid, options).then((request) => request(this.axios, this.basePath));
1440 }
1441
1442 /**
1443 *
1444 * @param {string} id A unique integer value identifying this series.
1445 * @param {*} [options] Override http request option.
1446 * @throws {RequiredError}
1447 * @memberof ApiApi
1448 */
1449 public apiSeriesRetrieve(id: string, options?: any) {
1450 return ApiApiFp(this.configuration).apiSeriesRetrieve(id, options).then((request) => request(this.axios, this.basePath));
1451 }
1452
1453 /**
1454 *
1455 * @param {string} [descriptionIcontains] description__icontains
1456 * @param {string} [hidden] hidden
1457 * @param {string} [id] id
1458 * @param {string} [institutionNameIcontains] institution_name__icontains
1459 * @param {'CT' | 'MR' | 'XA' | 'CR' | 'DX' | 'PET' | 'NM' | 'US' | 'RF' | 'ECG' | 'SC' | 'MG' | 'RTSTRUCT'} [modality] modality
1460 * @param {string} [ordering] Which field to use when ordering the results.
1461 * @param {string} [patient] patient
1462 * @param {string} [patientNameIcontains] patient__name__icontains
1463 * @param {string} [patientId] patient_id
1464 * @param {'routine' | 'urgent' | 'asap' | 'stat'} [priority] priority
1465 * @param {string} [referringPhysicianIcontains] referring_physician__icontains
1466 * @param {'unready' | 'ready' | 'completed'} [status] status
1467 * @param {string} [uid] uid
1468 * @param {*} [options] Override http request option.
1469 * @throws {RequiredError}
1470 * @memberof ApiApi
1471 */
1472 public apiStudiesList(descriptionIcontains?: string, hidden?: string, id?: string, institutionNameIcontains?: string, modality?: 'CT' | 'MR' | 'XA' | 'CR' | 'DX' | 'PET' | 'NM' | 'US' | 'RF' | 'ECG' | 'SC' | 'MG' | 'RTSTRUCT', ordering?: string, patient?: string, patientNameIcontains?: string, patientId?: string, priority?: 'routine' | 'urgent' | 'asap' | 'stat', referringPhysicianIcontains?: string, status?: 'unready' | 'ready' | 'completed', uid?: string, options?: any) {
1473 return ApiApiFp(this.configuration).apiStudiesList(descriptionIcontains, hidden, id, institutionNameIcontains, modality, ordering, patient, patientNameIcontains, patientId, priority, referringPhysicianIcontains, status, uid, options).then((request) => request(this.axios, this.basePath));
1474 }
1475
1476 /**
1477 * Quoted by Costin in Slack: \"findAll returns all studies in the table, findPast returns all studies for each patient\" \"findPast uses study id in the request, and get the study, then gets all related studies for the patient of requested study, and finally returns the array\"
1478 * @param {string} id
1479 * @param {*} [options] Override http request option.
1480 * @throws {RequiredError}
1481 * @memberof ApiApi
1482 */
1483 public apiStudiesPastRetrieve(id: string, options?: any) {
1484 return ApiApiFp(this.configuration).apiStudiesPastRetrieve(id, options).then((request) => request(this.axios, this.basePath));
1485 }
1486
1487 /**
1488 *
1489 * @param {string} id A unique integer value identifying this study.
1490 * @param {*} [options] Override http request option.
1491 * @throws {RequiredError}
1492 * @memberof ApiApi
1493 */
1494 public apiStudiesRetrieve(id: string, options?: any) {
1495 return ApiApiFp(this.configuration).apiStudiesRetrieve(id, options).then((request) => request(this.axios, this.basePath));
1496 }
1497
1498 /**
1499 *
1500 * @param {*} [options] Override http request option.
1501 * @throws {RequiredError}
1502 * @memberof ApiApi
1503 */
1504 public apiUsersMeRetrieve(options?: any) {
1505 return ApiApiFp(this.configuration).apiUsersMeRetrieve(options).then((request) => request(this.axios, this.basePath));
1506 }
1507}
1508
1509
1510/**
1511 * InternalApiApi - axios parameter creator
1512 * @export
1513 */
1514export const InternalApiApiAxiosParamCreator = function (configuration?: Configuration) {
1515 return {
1516 /**
1517 *
1518 * @param {*} [options] Override http request option.
1519 * @throws {RequiredError}
1520 */
1521 internalApiDicomMessageCreate: async (options: any = {}): Promise<RequestArgs> => {
1522 const localVarPath = `/internal-api/dicom-message`;
1523 // use dummy base URL string because the URL constructor only accepts absolute URLs.
1524 const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1525 let baseOptions;
1526 if (configuration) {
1527 baseOptions = configuration.baseOptions;
1528 }
1529
1530 const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1531 const localVarHeaderParameter = {} as any;
1532 const localVarQueryParameter = {} as any;
1533
1534
1535
1536 setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
1537 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1538 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1539
1540 return {
1541 url: toPathString(localVarUrlObj),
1542 options: localVarRequestOptions,
1543 };
1544 },
1545 }
1546};
1547
1548/**
1549 * InternalApiApi - functional programming interface
1550 * @export
1551 */
1552export const InternalApiApiFp = function(configuration?: Configuration) {
1553 const localVarAxiosParamCreator = InternalApiApiAxiosParamCreator(configuration)
1554 return {
1555 /**
1556 *
1557 * @param {*} [options] Override http request option.
1558 * @throws {RequiredError}
1559 */
1560 async internalApiDicomMessageCreate(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1561 const localVarAxiosArgs = await localVarAxiosParamCreator.internalApiDicomMessageCreate(options);
1562 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1563 },
1564 }
1565};
1566
1567/**
1568 * InternalApiApi - factory interface
1569 * @export
1570 */
1571export const InternalApiApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1572 const localVarFp = InternalApiApiFp(configuration)
1573 return {
1574 /**
1575 *
1576 * @param {*} [options] Override http request option.
1577 * @throws {RequiredError}
1578 */
1579 internalApiDicomMessageCreate(options?: any): AxiosPromise<void> {
1580 return localVarFp.internalApiDicomMessageCreate(options).then((request) => request(axios, basePath));
1581 },
1582 };
1583};
1584
1585/**
1586 * InternalApiApi - object-oriented interface
1587 * @export
1588 * @class InternalApiApi
1589 * @extends {BaseAPI}
1590 */
1591export class InternalApiApi extends BaseAPI {
1592 /**
1593 *
1594 * @param {*} [options] Override http request option.
1595 * @throws {RequiredError}
1596 * @memberof InternalApiApi
1597 */
1598 public internalApiDicomMessageCreate(options?: any) {
1599 return InternalApiApiFp(this.configuration).internalApiDicomMessageCreate(options).then((request) => request(this.axios, this.basePath));
1600 }
1601}
1602
1603
1604