fnndsc/serie
Specific Endpoints for Research Integration Events
375
The Specific Endpoints for Research Integration Events, or SERIE, is a FastAPI application which defines the business logic of event-driven ChRIS use cases. E.g. it handles use cases such as "for every DICOM series received with the description 'Hips to Ankles' create a new feed and run the leg length discrepancy (LLD) analysis pipeline."
SERIE should be called on by an instance of Hasura listening to the PostgreSQL database of the ChRIS backend (CUBE).
The LLD pipeline works like this:
Install rye and run
rye sync
For local testing, run ChRIS locally with Hasura.
cd
git clone https://github.com/FNNDSC/miniChRIS-docker.git
cd miniChRIS-docker
./minichris.sh
docker compose --profile pacs --profile hasura up -d
Run unit tests on-the-metal:
rye run pytest
Integration and end-to-end tests require SERIE to run in the same docker network as CUBE and Hasura. First, run miniChRIS-docker to get CUBE and Hasura up, then run pytest and SERIE using Docker Compose:
docker compose --profile test build
docker compose run --use-aliases test
CHRIS_URL
, which should be set
to the API URL of CUBE e.g. https://cube.chrisproject.org/api/v1/
docker pull fnndsc/serie