bd897baa2d
rebuild's shell, auth and non-TEA pages; tea/parity's TEA pages on tea/parity's API. - Routes: rebuild's signed-in tree; the TEA risk page joins it (domainAllowed reads the route's data domain when the path has no :domain). - Indicadores: rebuild's header and its generic Resumen/Trazabilidad/Definiciones tabs (TEA as the reference page, fed by tea/parity's measures); TEA Seguimiento and Análisis de riesgo render tea/parity's tea-list inside rebuild's tab-seguimiento/tab-riesgos, which keep rebuild's CaCu/CaMa lists and patient search. rebuild's tab-riesgos-tea read rebuild's TEA Patient extensions, which are gone with its backend; tea-list already shows that list from tea/parity's FHIR search, so it is deleted rather than ported (its look is the base for T8/T9). - Paciente: rebuild's record for CaCu/CaMa; TEA delegates to tea/parity's TeaRecord. rebuild's inline TEA sections read its EEG detail endpoint and are removed. - Gobernanza: tea/parity's page (execution, models with checks/lineage, bundles, training, studies, preview) until T13; model headings use rebuild's model titles. figures.ts: rebuild's scenarios (drawn in the record) plus tea/parity's association forest. - plot.ts: rebuild's layout helpers on tea/parity's partial Plotly bundle. - Conectar: rebuild's KINDS/HELP with an entry for tea/parity's edf node. - Dead code removed: measures boxes/sankey (tea/parity's old TEA tab), eeg-labels headMap/byDeviation/LEVEL_NAMES/METRIC_NAMES (rebuild's TEA record), e2e/layout.ts. - e2e: tea/parity's TEA cases, signed in; rebuild's CaCu/CaMa/site cases need their hospitals loaded and come back with the page suite (T16). - openapi.json and src/app/api: regenerated in the next commit.
97 lines
2.7 KiB
TypeScript
97 lines
2.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 SearchPatient$Params {
|
|
domain: Domain;
|
|
'_id'?: (string | null);
|
|
|
|
/**
|
|
* 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);
|
|
|
|
/**
|
|
* each word starts a word of her name (case and accents ignored)
|
|
*/
|
|
name?: (string | null);
|
|
|
|
/**
|
|
* [system|]value: a CURP or record number (case ignored)
|
|
*/
|
|
identifier?: (string | null);
|
|
|
|
/**
|
|
* -recent or -risk-<outcome>
|
|
*/
|
|
'_sort'?: string;
|
|
|
|
/**
|
|
* years
|
|
*/
|
|
'risk-horizon'?: (number | null);
|
|
|
|
/**
|
|
* any of ('DiagnosticReport:subject', 'RiskAssessment:subject', 'Observation:subject')
|
|
*/
|
|
'_revinclude'?: Array<string>;
|
|
|
|
/**
|
|
* DiagnosticReport:result
|
|
*/
|
|
'_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-start', params['follow-up-start'], {});
|
|
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';
|