fix: Handle optional ContentSequence for NUM content items (#5703)

* fix: SR validation

* Adding links to cs3d

* Update to dcmjs 0.48.0

* Update package files to include updated adapter

* Update package files

---------

Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
Co-authored-by: arul-trenser <arul.mozhi@trenser.com>
This commit is contained in:
authored and GitHub committed 2026-01-27 10:13:55 -05:00
1 parent b69abf25ee
commit 6dedf5573e
1 file changed
+5
@@ -637,16 +637,21 @@ function _processNonGeometricallyDefinedMeasurement(mergedContentSequence) {
NUMContentItems.forEach(item => { NUMContentItems.forEach(item => {
const { ConceptNameCodeSequence, ContentSequence, MeasuredValueSequence } = item; const { ConceptNameCodeSequence, ContentSequence, MeasuredValueSequence } = item;
// Handle spatial reference ONLY if ContentSequence exists
if (ContentSequence) {
const { ValueType } = ContentSequence; const { ValueType } = ContentSequence;
if (ValueType !== 'SCOORD' && ValueType !== 'SCOORD3D') { if (ValueType !== 'SCOORD' && ValueType !== 'SCOORD3D') {
console.warn(`Graphic ${ValueType} not currently supported, skipping annotation.`); console.warn(`Graphic ${ValueType} not currently supported, skipping annotation.`);
return; return;
} }
const coords = _getCoordsFromSCOORDOrSCOORD3D(ContentSequence); const coords = _getCoordsFromSCOORDOrSCOORD3D(ContentSequence);
if (coords) { if (coords) {
measurement.coords.push(coords); measurement.coords.push(coords);
} }
}
if (MeasuredValueSequence) { if (MeasuredValueSequence) {
measurement.labels.push( measurement.labels.push(