@gen-epix/api-omopdb
v2.8.0
Published
Readme
@gen-epix/api-omopdb [beta]
Genomic Epidemiology platform for disease X
Gen-EpiX is a platform for visualizing and analyzing genomic epidemiology data. It can be used for any disease and has very fine-grained access controls to enable collaboration between multiple organizations. It does not include, by design, bioinformatics pipelines or any other data analysis pipelines.
The platform is currently in beta and is not yet intended for production use. Feel free to contact us if you are interested.
About @gen-epix/api-omopdb
@gen-epix/api-omopdb is the auto-generated TypeScript client for the Gen-EpiX OMOP DB backend. It is generated from the backend OpenAPI schema and exports typed API classes, request/response models, and shared request utilities.
The package exposes the following top-level API groups:
OmopDbAbacApiOmopDbAuthApiOmopDbDefaultApiOmopDbOmopApiOmopDbOrganizationApiOmopDbSystemApi
It is consumed by @gen-epix/ui-omopdb, but can also be used independently in any application that needs direct access to the OMOP DB endpoints.
Installation
pnpm add @gen-epix/api-omopdb axiosUsage
import { OmopDbBaseAPI, OmopDbOmopApi } from '@gen-epix/api-omopdb';
OmopDbBaseAPI.baseUrl = 'https://your-omopdb-api/api';
OmopDbBaseAPI.defaultRequestTimeout = 10_000;
OmopDbBaseAPI.onRequest = [
(request) => {
request.headers.set('Authorization', 'Bearer <token>');
return request;
},
];
const data = await OmopDbOmopApi.getInstance().getOmopData();Regenerating the client
When the backend OpenAPI schema changes, regenerate the client with:
pnpm --filter @gen-epix/api-omopdb run generate-apiFunding
This work was funded by the European Union under the EU4Health Programme (EU4H), project ID 101113520 (NLWGSHERA2).

Disclaimer: Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or Health and Digital Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.
