Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Contributing to Cohort360

As an open source project, **Cohort360** welcomes contributions of many forms:
* Creating an issue for bug report
* Readme improvements
* New feature you would like **Cohort360** to have

To help make your contribution to this project successful, we do have a few guidelines in place.

Each PR, no matter how small, should have a GitHub **issue** associated with it.

Here's a quick checklist for a **good PR**:

1. A GitHub Issue with a good description associated with the PR
2. One feature/change per PR
3. We use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) for more readability. This helps generate a well
organized changelog file
4. One commit per PR. If necessary, squash commits before pushing you branch
5. Rebased your branch on main (`git rebase`, not `git pull`)
6. Add a good descriptive commit message, with link to issue.
For example:
> feat(cohort): add amazing feature #issue-number
7. No changes to code not directly related to your PR/issue
8. Add tests to cover new code
9. Run tests locally before pushing changes


Once you have submitted your PR please monitor it for comments/feedback.

We appreciate your help to make **Cohort360** an even better open source project!
124 changes: 85 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,68 +1,114 @@
<div align="center" style="display:flex;flex-direction:column;">
<img src="./public/logo_c360.png" alt="Cohort360 logo" />
<h3>A web application to find patients, build cohorts and visualize data.</h3>
</div>
<div align="center">
<img src="./public/logo_C360.png" alt="Cohort360 logo" width="300" height="114"/>
<h2>Explore patient data 🔍, build cohorts 👥 and export data 📥📊 Works with FHIR 🔥</h2>

# Cohort360
<br />

[![Actions Status](https://github.com/aphp/Cohort360-FrontEnd/workflows/cohort360-main-pipeline/badge.svg)](https://github.com/aphp/Cohort360-FrontEnd/actions)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=aphp_Cohort360&metric=alert_status)](https://sonarcloud.io/dashboard?id=aphp_Cohort360)

<br />

<a href="https://github.com/aphp/Cohort360-FrontEnd/issues/new">Report a bug</a>
·
<a href="CHANGELOG.md">What's new ?</a>
</div>

---


<details open="open">
<summary>Table of Contents</summary>
<ol>
<li>
<a href="#overview">Overview</a>
<ul>
<li><a href="#features">Features</a></li>
<li><a href="#based-on-fhir">Based on FHIR</a></li>
<li><a href="#built-with">Built With</a></li>
</ul>
</li>
<li>
<a href="#project-setup">Project Setup</a>
<ul>
<li><a href="#get-the-code">Get the code</a></li>
<li><a href="#configuration">Configuration</a></li>
<li><a href="#run-the-app">Run the app</a></li>
</ul>
</li>
<li><a href="#contributing">Contributing</a></li>
<li><a href="#license">License</a></li>
<li><a href="#contact">Contact</a></li>
</ol>
</details>

## Overview

## Architecture
### 🔑 Features

- [ ] Add Architecture schema
* Explore, visualize, and search patient data
* Run advanced search queries on textual documents
* Create patient cohorts using a dedicated, user-friendly query builder
* Build queries with data criteria, complexity, and temporal constraints
* Get insights into cohorts at a glance
* Export cohort data for in-depth analysis

Cohort360 consists of a React front-end and a Django back-end (REST API).
### 🔥 Based on FHIR

This repository hosts the front-end, while the back-end will be available soon.
Cohort360 accesses health data through a FHIR server.

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.
[FHIR](https://www.hl7.org/fhir/) is the world’s most widely used standard for exposing health data via APIs.

## Installation
### 🛠️ Built With

### Requirements:
* React
* ...

* A running back-end server
* A running third party endpoint (FHIR API for example)
* An authentication server
* Node.js (16 or higher) installed

### Running the front-end
## 🚀 Project setup

1. First copy the `.env.example` file to `.env` and edit this file to match your configuration.
2. Run `npm install`
3. Run `npm audit fix`
4. Run `npm run build`
### 1. 💠 Requirements

This will generate files in the `build` directory that can be exposed via a web server like Nginx, or a node server.
To run Cohort360 locally, you'll need the following applications running:
📌 [Cohort360-backend](https://github.com/aphp/Cohort360-Back-end/blob/enrich_repo_files/README.md)
📌 A FHIR API to retrieve medical data

An example configuration with Nginx can be found [here](.templates/nginx.conf)
### 2. 📥 Get the code

## CI
```sh
git clone https://github.com/aphp/Cohort360-FrontEnd.git
```

A [gitlab-ci.yml](.templates/.gitlab-ci.yml) is available in the `.templates` folder, alongside
a [nginx configuration](.templates/nginx.conf) example (useful for deployment).
### 3. 🔧 Configuration

## Deployment
> To do : specify what configuration is needed: env vars, extra files to create to hold special configurations

A docker image is available to build via the [Dockerfile](Dockerfile). You only need to update the location of your nginx conf.
### 4. ▶️ Run the app

Start development server

```shell
npm start
```

All set up 🎉

Check the application running on [http://localhost:3000](http://localhost:3000)

<div align="right">
⬆️ <a href="#readme-top">back to top</a>
</div>

## Start Contributing

A contributing guide will be published soon.
## 🤝 Contributing

## Partners
See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed process about contributing to this repository.

* AP-HP Clinical Data Warehouse
* Arkhn : [arkhn.org](https://arkhn.org/)
* Akimed : [www.akimed.io](https://www.akimed.io/)
## 📜 License

## Contributors
**Cohort360** is licensed under the Apache License - see the [LICENSE](LICENSE) file for details.

Coming soon...
## 💬 Contact

## License
Cohort360 is licensed under Apache License 2.
If you find this project useful, please consider starring the repository and report any encountered bugs or issues.
Write to us at: **open-source@cohort360.org**
Binary file added public/logo_C360.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading