dicom-dimse-service
v0.0.10
Published
Provides easy to use functions to communicate with Dicom Servers. WARNING: Very early development. Use at your own risk.
Downloads
6
Readme
Introduction
This library aims to provide easy to use functions to access Dicom DIMSE functionality.
Currently implemented:
- CFind
Getting Started
Installation: npm install dicom-dimse-service
Usage
First create the DicomService:
const dicomService = new DicomService(IP_ADDRESS, PORT, HOSTAE, SOURCEAE);
Example
const dicomService = new DicomService('192.168.35.60', 5678, 'ALPAY', 'TEST_AE2');
CFind
The CFind Method:
service.cfind(QUERYLEVEL, REQUESTPARAMETERS, (err, studies) => {
console.log(err);
console.log(studies ? JSON.stringify(studies) : "");
});
Example:
let requestParameters = new Map<string, string>();
requestParameters.set("0x00100020", "");
requestParameters.set("PatientName", "*Peter*");
service.cfind("PATIENT", requestParameters, (err, studies) => {
console.log(err);
console.log(studies ? JSON.stringify(studies) : "");
});
Querylevel can currently be "PATIENT" or "STUDY".