A web application to find patients, build cohorts and visualize data.
Cohort360

Architecture
Cohort360 consists of a React front-end and a Django back-end (REST API).
This repository hosts the front-end, while the back-end will be available soon.
Both the front-end and the back-end depend on a third, possibly custom, party: an endpoint to query medical data and to create cohorts.
This third endpoint can be a FHIR API for example. This is the case for the first creators of Cohort360.
Installation
Requirements:
- A running back-end server
- A running third party endpoint (FHIR API for example)
- An authentication server
- Node.js (22 or higher) installed
Running the front-end
- First copy the
.env.example file to .env and edit this file to match your configuration.
- Run
npm install
- Run
npm audit fix
- Run
npm run build
This will generate files in the build directory that can be exposed via a web server like Nginx, or a node server.
An example configuration with Nginx can be found here
Dev server (npm run start) — API proxy without Nginx
See .env.dev-proxy.example and vite-dev-proxy.ts. Use http://localhost:3000 in the browser so relative API paths (/api/back, etc.) hit the Vite proxy.
CI
A gitlab-ci.yml is available in the .templates folder, alongside
a nginx configuration example (useful for deployment).
Deployment
A docker image is available to build via the Dockerfile. You only need to update the location of your nginx conf.
Start Contributing
A contributing guide will be published soon.
Partners
Contributors
Coming soon…
License
Cohort360 is licensed under Apache License 2.
FHIR Terminology Loading Strategy
To avoid ambiguity between FHIR terminology resources, Cohort360 uses the following rules:
- Use
CodeSystem?url= when a full, non-hierarchical code system is expected.
- Use
ValueSet?url= when a business subset must be retrieved.
- Use
ValueSet/$expand for hierarchical browsing or hierarchy-aware search.
Practical guidance:
- Maternity sub-domains should remain modeled as dedicated
ValueSet URLs.
- Hierarchical terminologies (for example ATC, CIM-10, ANABIO, CCAM) should keep using
$expand flows.
- Flat referentials should be loaded directly from
CodeSystem when all codes are needed.
Main implementation entry points:
src/services/aphp/serviceValueSets.ts for terminology loading
评论