Skip to content

Commit edbf9c3

Browse files
author
hackermd
committed
Fix parsing of DICOM JSON data elements with vr PN
1 parent 4badd40 commit edbf9c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dicomweb_client/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ def _create_dataelement(tag, vr, value):
104104
else:
105105
# TODO: How to handle "Ideographic" and "Phonetic"?
106106
elem_value.append(v['Alphabetic'])
107+
if vm == '1':
108+
elem_value = elem_value[0]
107109
else:
108110
if vm == '1':
109111
if vr in binary_representations:

0 commit comments

Comments
 (0)