A Python-FastAPI application to interact with CUBE and pfdcm.
4.0K
A Python-FastAPI application to create and manage workflows using PFDCM & CUBE .
User can register DICOMs to CUBEand additionally create new feed, add new plugin or pipeline in CUBE .
git clone https://github.com/FNNDSC/pflink.git
cd pflink
./pflink.sh
mongodb & pflink should be up and running on localhost on the following ports:| app | URL |
|---|---|
| mongoDB | http://localhost:27017 |
| pflink | http://localhost:8050 |
Go to http://localhost:8050/docs for API usage
cd pflink
./test.sh
cd pflink
./unmake.sh
The POST API endpoint to create a new workflow or to get the status of an existing workflow is (/api/v1/workflow/)
{
"ignore_duplicate": true,
"pfdcm_info": {
"pfdcm_service": "PFDCM",
"PACS_service": "orthanc"
},
"PACS_directive": {
"StudyInstanceUID": "12365548",
"SeriesInstanceUID": "66498598"
},
"workflow_info": {
"feed_name": "test-%SeriesInstanceUID",
"plugin_name": "pl-simpledsapp",
"plugin_version": "2.1.0",
"plugin_params": "--args ARGS"
},
"cube_user_info": {
"username": "chris",
"password": "chris1234"
}
}
{
"status": true,
"workflow_state": "initializing workflow",
"state_progress": "0%",
"feed_id": "",
"feed_name": "",
"message": "",
"duplicates": null,
"error": "",
"workflow_progress_perc": 0
}
setup.shAfter starting new instances of pflink & mongo locally, we can a setup script available in the repo.
The setup script provides the following support:
pflink)PFDCM service to MongoDBcd pflink
./setup.sh --help
resetWorkflow.shSometimes, we need to find a specific workflow request and restart using pflink. This repo
contains a script resetWorkflow to do so. The script does the following tasks:
pflink instancecd pflink
./resetWorkflow.sh --help
Content type
Image
Digest
sha256:07c433ea6…
Size
396.9 MB
Last updated
over 2 years ago
docker pull fnndsc/pflink:4.0.6