This commit is contained in:
Ross
2022-04-06 19:39:59 +01:00
parent 2546aca666
commit 854ee61404
+2
View File
@@ -298,8 +298,10 @@
// We need to setup a try/catch block because parseDicom will throw an exception
// if you attempt to parse a non dicom part 10 file (or one that is corrupted)
try {
cosole.log("bytearray", byteArray)
// parse byteArray into a DataSet object using the parseDicom library
var dataSet = dicomParser.parseDicom(byteArray);
cosole.log("ds", dataSet)
// dataSet contains the parsed elements. Each element is available via a property
// in the dataSet.elements object. The property name is based on the elements group