Add labels in the interface

Hello,

We have been attempting to add labels to DICOM series and studies through the user interface (explorer) but encounter an error message whenever the “-” is within the tag name, for example ‘LIDC-IDRI’. The error is the following:

Error: Labels can only contain alphanumeric characters

However, adding the tag through an API call causes no issues, and the tag is applied as expected.

An example code which applies the tag successfully:

import pyorthanc

orthanc_url='https://example.com'
orthanc_username='orthanc'
orthanc_password='orthanc'


client = pyorthanc.Orthanc(
    orthanc_url,
    username=orthanc_username,
    password=orthanc_password
)

study = pyorthanc.Study('11aa111a-aaa11aa1-1aa111aa-aa1aaa11-aa11a111', client)
study.add_label('LIDC-IDRI')

which is equivalent to the following HTTP request:

PUT https://example.com/studies/11aa111a-aaa11aa1-1aa111aa-aa1aaa11-aa11a111/labels/LIDC-IDRI

Is there an option to disable or remove this restriction in the explorer so that it behaves the same way as the API?

Sincerely

Yannick

Hi @ylemarechal

I have just fixed it.

Note that it already works in Orthanc Explorer 2.

Alain

1 Like

Hi @alainmazy

Thank you !

Yannick

1 Like