Skip to content

A file loader which fetches the files by streaming with caching

License

Notifications You must be signed in to change notification settings

gradienthealth/cod-dicomweb-server

Repository files navigation

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:

  1. Clone the repository:
git clone https://github.com/gradienthealth/cod-dicomweb-server.git
cd cod-dicomweb-server
  1. Install dependencies:
yarn install
  1. Build the code:
yarn build

Make sure you have Node.js installed on your machine.

Usage

  1. Open the Target repo in the code editor where this package needs to use and add the package:
yarn add cod-dicomweb-server
  1. 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:

  1. Fork the repository.
  2. Create a new branch ( git checkout -b feature/YourFeature ).
  3. Make your changes and commit them ( git commit -m 'Add some feature' ).
  4. Push to the branch ( git push origin feature/YourFeature ).
  5. Open a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A file loader which fetches the files by streaming with caching

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published