VivoQuant 5.4.1
Loading...
Searching...
No Matches
ExtraInfo.vqs

Extract information from the DICOM header and append the data to the elements of the DataList.

//
// Example of how to extract DICOM data from
// header and show it as 'Add:' in the DataList
//
var dcm = 'DerivationImageSequence|0|DerivationDescription'; // e.g. the 'PatientsName' or a 'seq|id|key'
VQ.debug("Looking for " + dcm + ".");
var dm = VQ.dataManager(); // get Data Manager object
for (var i=0; i<dm.size(); ++i) { // iterate over all loaded data
var val = dm.getDcmString(i, dcm); // get dicom data for item i
if (val.length) { // if found
VQ.debug( "DICOM: " + val ); // print to debug stream (e.g. console, debugger or log)
dm.setDesc(i, "extraInfo", "DICOM: "+val); // store to be shown in data list
VQ.dataList().updateAnnotations(i); // and update the data list
}
}