1.3.1 • Published 4 months ago
cod-dicomweb-server v1.3.1
Cod DicomWeb Server
A wadors server proxy that get data from a Cloud Optimized Dicom format.
Table of Contents
Installation
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.
Usage
- 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);
Testing
You need to install all the dependencies and build the code to run the tests.
Running Tests
yarn test
Test Coverage
yarn coverage
Benchmark tests
yarn benchmark
- The benchmark output will be displayed in the browser's debugger console.
Demo
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
Cod As A Server
yarn demo:server
Cod As A Client
yarn demo:client
Contributing
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.
License
This project is licensed under the MIT License - see the LICENSE file for details.