A wadors server proxy that get data from a Cloud Optimized Dicom format.
To install this utility, follow these steps:
- Clone the repository:
git clone https://github.com/gradienthealth/cod-dicomweb-server.git
cd cod-dicomweb-server
- Install dependencies:
yarn install
- Build the code:
yarn build
Make sure you have Node.js installed on your machine.
- Open the Target repo in the code editor where this package needs to use and add the package:
yarn add cod-dicomweb-server
- Use the methods of the package in any file in the target repo:
import { CodDicomWebServer, FetchType } from 'cod-dicomweb-server';
const server = new CodDicomWebServer();
const wadorsUrl = "https://storage.googleapis.com/gradienthealth_cod_dicomweb_public_benchmark/v1/dicomweb/studies/1.2.826.0.1.3680043.8.498.25373200666081576206661715880670310913/series/1.2.826.0.1.3680043.8.498.17065113110917795618106606234460323040/instances/1.3.6.1.4.1.14519.5.2.1.7009.2403.109731662822930985185381565631/frames/1";
const headers = {};
const result = await server.fetchCod( wadorsUrl, headers, { useSharedArrayBuffer: true, fetchType: FetchType.BYTES_OPTIMIZED, });
console.log(result);
You need to install all the dependencies and build the code to run the tests.
yarn test
yarn coverage
yarn benchmark
- The benchmark output will be displayed in the browser's debugger console.
You need to install all the dependencies and build the code to run the demo.
Also update the submodule using the command
yarn update:submodule:cornerstone3D
yarn demo:server
yarn demo:client
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Make your changes and commit them (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.