12b056343b
Regenerate the OpenAPI document and Angular client with the existing generator configuration. Repeated generation produced identical files.
55 lines
1.7 KiB
TypeScript
55 lines
1.7 KiB
TypeScript
/* eslint-disable */
|
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
|
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
|
import { Observable } from 'rxjs';
|
|
import { filter, map } from 'rxjs/operators';
|
|
import { StrictHttpResponse } from '../../strict-http-response';
|
|
import { RequestBuilder } from '../../request-builder';
|
|
|
|
import { Domain } from '../../models/domain';
|
|
|
|
export interface EegSummary$Params {
|
|
domain: Domain;
|
|
|
|
/**
|
|
* months: the domain's follow-up list over that window up to the cut-off
|
|
*/
|
|
'follow-up-window'?: (number | null);
|
|
|
|
/**
|
|
* explicit window start that overrides follow-up-window
|
|
*/
|
|
'follow-up-start'?: (string | null);
|
|
|
|
/**
|
|
* default: the last day with data
|
|
*/
|
|
'follow-up-cutoff'?: (string | null);
|
|
'follow-up-status'?: (string | null);
|
|
}
|
|
|
|
export function eegSummary(http: HttpClient, rootUrl: string, params: EegSummary$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
}>> {
|
|
const rb = new RequestBuilder(rootUrl, eegSummary.PATH, 'get');
|
|
if (params) {
|
|
rb.path('domain', params.domain, {});
|
|
rb.query('follow-up-window', params['follow-up-window'], {});
|
|
rb.query('follow-up-start', params['follow-up-start'], {});
|
|
rb.query('follow-up-cutoff', params['follow-up-cutoff'], {});
|
|
rb.query('follow-up-status', params['follow-up-status'], {});
|
|
}
|
|
|
|
return http.request(
|
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
|
).pipe(
|
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
map((r: HttpResponse<any>) => {
|
|
return r as StrictHttpResponse<{
|
|
}>;
|
|
})
|
|
);
|
|
}
|
|
|
|
eegSummary.PATH = '/{domain}/fhir/Patient/$eeg-summary';
|