ecg-dicom-web-viewer
v2.0.9
Published
Together with the cornerstone library, this project allows reading and drawing ECGs from a dcm in web version.
Downloads
273
Readme
ecg-dicom-web-viewer
This library allows viewing an ECG file in DICOM format in web view.
- NPM: https://www.npmjs.com/package/ecg-dicom-web-viewer
Installation
This module is distributed via [npm][npm-url] which is bundled with [node][node] and
should be installed as one of your project's dependencies
:
// To install the newest version
npm install --save ecg-dicom-web-viewer
Example
- Once installed import the project.
// Import
import {
ReadECG, //Optional.
Constants, //Optional.
DicomECGViewer, //Principal.
} from "ecg-dicom-web-viewer";
- Instantiate the new class with the necessary data and create the view.
//Load view:
let viewer = new DicomECGViewer(
byteArray, //Data array ECG (XMLHttpRequest response array or...local open data)
divView, //Div where to draw the view
viewportIndex //View number, since you can have several views.
);
viewer.loadCanvas(); // Load canvas view.
Result
Documentation
Currently it works: