PyOrthanc 1.11.4
Adds a way to retrieve the pydicom.FileDataset
from the Instance
object or with the instance identifier in the Orthanc server.
from pyorthanc import Orthanc, util, Instance
INSTANCE_ID = 'the-orthanc-instance-id'
client = pyorthanc.Orthanc(url='my_url')
pydicom_ds = util.get_pydicom(client, INSTANCE_ID)
# or from an Instance object
instance = Instance(client=client, instance_id=INSTANCE_ID)
pydicom_ds = instance.get_pydicom()
Adds the possibility to provide a custom header to the Orthanc
and AsyncOrthanc
clients. The header will be used in every method call.
from pyorthanc import Orthanc
client = Orthanc(url='my_url', headers={'new_header_tag': 'header_content'})