diff --git a/openapi.json b/openapi.json index b516d5c..771c534 100644 --- a/openapi.json +++ b/openapi.json @@ -4988,6 +4988,91 @@ ] } }, + "/tea/fhir/Patient/$eeg-summary": { + "get": { + "operationId": "eeg_summary", + "parameters": [ + { + "description": "months", + "in": "query", + "name": "follow-up-window", + "required": false, + "schema": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "months", + "title": "Follow-Up-Window" + } + }, + { + "in": "query", + "name": "follow-up-start", + "required": false, + "schema": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Follow-Up-Start" + } + }, + { + "in": "query", + "name": "follow-up-cutoff", + "required": false, + "schema": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Follow-Up-Cutoff" + } + } + ], + "responses": { + "200": { + "content": { + "application/fhir+json": { + "schema": { + "type": "object" + } + } + }, + "description": "FHIR" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Eeg Summary", + "tags": [ + "fhir" + ] + } + }, "/users/me": { "get": { "operationId": "users:current_user", @@ -6021,7 +6106,7 @@ }, "/{domain}/fhir/Patient": { "get": { - "description": "Patients; with `follow-up-window`, the domain's follow-up list at the cut-off,\nfiltered by status and in reading order, with what the list shows of each patient\nincluded.", + "description": "Patients; with `follow-up-window` or `follow-up-start` (or, where the domain has them,\nits filters or a cut-off: its whole history), the domain's follow-up list at the cut-off,\nfiltered and in reading order, with what the list shows of each patient included.", "operationId": "search_patient", "parameters": [ { @@ -6085,6 +6170,25 @@ "title": "Follow-Up-Cutoff" } }, + { + "description": "the list from this day (in place of a window)", + "in": "query", + "name": "follow-up-start", + "required": false, + "schema": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "type": "null" + } + ], + "description": "the list from this day (in place of a window)", + "title": "Follow-Up-Start" + } + }, { "in": "query", "name": "follow-up-status", diff --git a/src/app/api/fn/fhir/eeg-summary.ts b/src/app/api/fn/fhir/eeg-summary.ts new file mode 100644 index 0000000..1bf8d04 --- /dev/null +++ b/src/app/api/fn/fhir/eeg-summary.ts @@ -0,0 +1,41 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + + +export interface EegSummary$Params { + +/** + * months + */ + 'follow-up-window'?: (number | null); + 'follow-up-start'?: (string | null); + 'follow-up-cutoff'?: (string | null); +} + +export function eegSummary(http: HttpClient, rootUrl: string, params?: EegSummary$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, eegSummary.PATH, 'get'); + if (params) { + 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'], {}); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/fhir+json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse<{ + }>; + }) + ); +} + +eegSummary.PATH = '/tea/fhir/Patient/$eeg-summary'; diff --git a/src/app/api/fn/fhir/search-patient.ts b/src/app/api/fn/fhir/search-patient.ts index 7003d66..342304c 100644 --- a/src/app/api/fn/fhir/search-patient.ts +++ b/src/app/api/fn/fhir/search-patient.ts @@ -22,6 +22,11 @@ export interface SearchPatient$Params { * default: the last day with data */ 'follow-up-cutoff'?: (string | null); + +/** + * the list from this day (in place of a window) + */ + 'follow-up-start'?: (string | null); 'follow-up-status'?: (string | null); /** @@ -70,6 +75,7 @@ export function searchPatient(http: HttpClient, rootUrl: string, params: SearchP 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-start', params['follow-up-start'], {}); rb.query('follow-up-status', params['follow-up-status'], {}); rb.query('name', params.name, {}); rb.query('identifier', params.identifier, {}); diff --git a/src/app/api/functions.ts b/src/app/api/functions.ts index 41326c7..e57926c 100644 --- a/src/app/api/functions.ts +++ b/src/app/api/functions.ts @@ -11,6 +11,8 @@ export type { CacuReferenceRisk$Params as CacuReferenceRisk$Params } from './fn/ export { cacuReferenceRisk as cacuReferenceRisk } from './fn/fhir/cacu-reference-risk'; export type { CacuRiskSeries$Params as CacuRiskSeries$Params } from './fn/fhir/cacu-risk-series'; export { cacuRiskSeries as cacuRiskSeries } from './fn/fhir/cacu-risk-series'; +export type { EegSummary$Params as EegSummary$Params } from './fn/fhir/eeg-summary'; +export { eegSummary as eegSummary } from './fn/fhir/eeg-summary'; 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';