ADIT Client library to connect to an ADIT server.
Project description
ADIT Client
About
ADIT Client is the official Python client of ADIT (Automated DICOM Transfer).
Usage
Prerequisites
- Generate an API token in your ADIT profile.
- Make sure you have the permissions to access the ADIT API.
- Also make sure you have access to the DICOM nodes you want query.
Code
server_url = "https://adit" # The host URL of the ADIT server
auth_token = "my_token" # The authentication token generated in your profile
client = AditClient(server_url=server_url, auth_token=auth_token)
# Search for studies. The first parameter is the AE title of the DICOM server
# you want to query.
studies = client.search_for_studies("ORTHANC1", {"PatientName": "Doe, John"})
# The client returns pydicom datasets.
study_descriptions = [study.StudyDescription for study in studies]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
adit_client-0.5.1.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for adit_client-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b66e8001f28bf07aa2d9b317980f36f4244d1da3e36a20c249596d0410346dd |
|
MD5 | 08d3abbbdf6ba5f62d0a395ccdbc958d |
|
BLAKE2b-256 | e95f583e18b8056a404aed2f69c1a7794b93f54ff797edc189267b75e80f2483 |