in dicomtojson.js [89:104]
function getValues(rootObj, outputOptions) {
const jsonObj = {};
const dataset = rootObj.elements;
const keys = Object.keys(dataset).sort();
keys.forEach((key) => {
const elem = dataset[key];
if (excludeElement(outputOptions, elem)) return;
let normKey = normalizeTag(key);
if (outputOptions.useCommonNames) {
const tag = lookupTag(normKey);
normKey = tag ? tag.keyword : normKey;
}
jsonObj[normKey] = getValue(rootObj, elem, outputOptions);
});
return jsonObj;
}