dicom-dimse

0.0.7 • Public • Published

Thanks to OHIF DICOM DIMSE. Little improved version of original version.

Nodejs implementation of DIMSE(part104) - Alpha stage

This is a library that implements dimse tcp protocol in ecmascript 6, it's still in development stage, current supported service include C-ECHO, C-GET, C-FIND, C-STORE.

Installation

install via NPM:

npm install dicom-dimse

Usage

Initializing:

const DicomDimseServices = require('dicom-dimse');

Examples

Below it's a example that perform C-ECHO.

    const DicomDimseServices = require('dicom-dimse');

    const services = new DicomDimseServices('192.168.1.1', 4242);

    services.doEcho({
      hostAE: 'TEST_AE1',
      sourceAE: 'TEST_AE2'
    }, (err, status, data) => {
      console.log("Error: ", err);
      console.log("Can ECHO: ", status);
      console.log(data);
    });

above code will output:

> Connection established
> Error: null
> Can ECHO: true

Example that perform C-FIND.

    const DicomDimseServices = require('dicom-dimse');

    const services = new DicomDimseServices('192.168.1.1', 4242);

    /// qrLevel --> can be any one of following
    /// STUDY
    /// SERIES
    /// IMAGE
    /// Here I'm trying to find studies with accession#: 1056513
    services.doFind({
        hostAE: 'DICOM_SCP',
        sourceAE: 'TEST_AE2',
        qrLevel: 'STUDY'
      }, {
          0x00080050: '1056513'
        }, (err, result) => {
          assert.ifError(err);
        });
    });

More examples will follow..

Issues

Please file your issues here:

Package Sidebar

Install

npm i dicom-dimse

Weekly Downloads

51

Version

0.0.7

License

MIT

Unpacked Size

397 kB

Total Files

16

Last publish

Collaborators

  • rameshrr