63 lines
1.8 KiB
TypeScript
63 lines
1.8 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 SearchMeasureReport$Params {
|
|
domain: Domain;
|
|
|
|
/**
|
|
* the Measure's id or canonical URL
|
|
*/
|
|
measure: string;
|
|
|
|
/**
|
|
* semesters (2025-S1) or months (2025-03), comma-separated
|
|
*/
|
|
'reporting-period': string;
|
|
|
|
/**
|
|
* count only what was known by then
|
|
*/
|
|
'as-of'?: (string | null);
|
|
|
|
/**
|
|
* durations count to this day
|
|
*/
|
|
'event-cutoff'?: (string | null);
|
|
'_count'?: (number | null);
|
|
'_offset'?: number;
|
|
}
|
|
|
|
export function searchMeasureReport(http: HttpClient, rootUrl: string, params: SearchMeasureReport$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
}>> {
|
|
const rb = new RequestBuilder(rootUrl, searchMeasureReport.PATH, 'get');
|
|
if (params) {
|
|
rb.path('domain', params.domain, {});
|
|
rb.query('measure', params.measure, {});
|
|
rb.query('reporting-period', params['reporting-period'], {});
|
|
rb.query('as-of', params['as-of'], {});
|
|
rb.query('event-cutoff', params['event-cutoff'], {});
|
|
rb.query('_count', params['_count'], {});
|
|
rb.query('_offset', params['_offset'], {});
|
|
}
|
|
|
|
return http.request(
|
|
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
|
).pipe(
|
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
map((r: HttpResponse<any>) => {
|
|
return r as StrictHttpResponse<{
|
|
}>;
|
|
})
|
|
);
|
|
}
|
|
|
|
searchMeasureReport.PATH = '/{domain}/fhir/MeasureReport';
|