| Title: | Programmatic Interface to 'Orthanc' DICOM Servers |
|---|---|
| Description: | An R Interface to 'Orthanc' DICOM servers for medical imaging workflows. 'Orthanc' is a lightweight, open-source DICOM server that exposes a comprehensive REST API for managing, querying, retrieving, and modifying DICOM resources (<https://www.orthanc-server.com>). The goal of this package is to provide comprehensive and user-friendly access to the 'Orthanc' REST API, designed to align with idiomatic R workflows while preserving the structure and semantics of DICOM resources. |
| Authors: | Matthew T. Warkentin [aut, cre, cph] (ORCID: <https://orcid.org/0000-0001-8730-3511>) |
| Maintainer: | Matthew T. Warkentin <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.3.0 |
| Built: | 2026-05-22 09:15:29 UTC |
| Source: | https://github.com/mattwarkentin/orthanc |
Find desired Patient/Study/Series/Instance in an Orthanc server. Predicate
functions (filters) take a single Patient/Study/Series/Instance as the
first argument and return a single TRUE or FALSE for whether the
resource should be kept or discarded, respectively. If mirai::daemons()
has been used to set persistent background processes, this function will
apply filters in parallel (over patients) using all available processes.
find_and_filter_patients( client, patient_filter = NULL, study_filter = NULL, series_filter = NULL, instance_filter = NULL, progress = rlang::is_interactive(), ... )find_and_filter_patients( client, patient_filter = NULL, study_filter = NULL, series_filter = NULL, instance_filter = NULL, progress = rlang::is_interactive(), ... )
client |
Orthanc client. |
patient_filter |
Predicate function to filter Patients. |
study_filter |
Predicate function to filter Studys. |
series_filter |
Predicate function to filer Series. |
instance_filter |
Predicate function to filter Instances. |
progress |
Whether to show progress bars. By default, progress bars are
enabled in interactive sessions (i.e., if |
... |
Named-arguments to declare in the environment of the predicate
functions, if performing filtering in parallel with |
This function builds a series of tree structures. Each tree corresponds to a patient. The layers in the tree correspond to:
Patient -> Studies -> Series -> Instances
A list of filtered Patients.
client <- Orthanc$new("https://orthanc.uclouvain.be/demo") find_and_filter_patients( client = client, patient_filter = \(pt) pt$is_stable )client <- Orthanc$new("https://orthanc.uclouvain.be/demo") find_and_filter_patients( client = client, patient_filter = \(pt) pt$is_stable )
Finds instances in Orthanc according to queries and labels
find_instances( client, query = list(), labels = character(), labels_constraint = "All", ... )find_instances( client, query = list(), labels = character(), labels_constraint = "All", ... )
client |
Orthanc API client. |
query |
Named-list that specifies the filters on the level related DICOM tags. |
labels |
Character vector of labels to look for in resources. |
labels_constraint |
Contraint on the labels ('All', 'Any', 'None'). |
... |
Additional arguments passed to |
A list of Instance objects.
client <- Orthanc$new("https://orthanc.uclouvain.be/demo") find_instances( client = client, query = list(SOPInstanceUID = "1.3.6.1.4.1.14519.5.2.1.2193.7172.260209224923274040650639981398") )client <- Orthanc$new("https://orthanc.uclouvain.be/demo") find_instances( client = client, query = list(SOPInstanceUID = "1.3.6.1.4.1.14519.5.2.1.2193.7172.260209224923274040650639981398") )
Finds patients in Orthanc according to queries and labels
find_patients( client, query = list(), labels = character(), labels_constraint = "All", ... )find_patients( client, query = list(), labels = character(), labels_constraint = "All", ... )
client |
Orthanc API client. |
query |
Named-list that specifies the filters on the level related DICOM tags. |
labels |
Character vector of labels to look for in resources. |
labels_constraint |
Contraint on the labels ('All', 'Any', 'None'). |
... |
Additional arguments passed to |
A list of Patient objects.
client <- Orthanc$new("https://orthanc.uclouvain.be/demo") find_patients(client, query = list(PatientName = "HN_P001"))client <- Orthanc$new("https://orthanc.uclouvain.be/demo") find_patients(client, query = list(PatientName = "HN_P001"))
Finds series in Orthanc according to queries and labels
find_series( client, query = list(), labels = character(), labels_constraint = "All", ... )find_series( client, query = list(), labels = character(), labels_constraint = "All", ... )
client |
Orthanc API client. |
query |
Named-list that specifies the filters on the level related DICOM tags. |
labels |
Character vector of labels to look for in resources. |
labels_constraint |
Contraint on the labels ('All', 'Any', 'None'). |
... |
Additional arguments passed to |
A list of Series objects.
client <- Orthanc$new("https://orthanc.uclouvain.be/demo") find_series(client, query = list(SeriesDescription = "HEAD/NECK 2.0 B30s"))client <- Orthanc$new("https://orthanc.uclouvain.be/demo") find_series(client, query = list(SeriesDescription = "HEAD/NECK 2.0 B30s"))
Finds studies in Orthanc according to queries and labels
find_studies( client, query = list(), labels = character(), labels_constraint = "All", ... )find_studies( client, query = list(), labels = character(), labels_constraint = "All", ... )
client |
Orthanc API client. |
query |
Named-list that specifies the filters on the level related DICOM tags. |
labels |
Character vector of labels to look for in resources. |
labels_constraint |
Contraint on the labels ('All', 'Any', 'None'). |
... |
Additional arguments passed to |
A list of Study objects.
client <- Orthanc$new("https://orthanc.uclouvain.be/demo") find_studies(client, query = list(StudyDescription = "RT^HEAD_NECK (Adult)"))client <- Orthanc$new("https://orthanc.uclouvain.be/demo") find_studies(client, query = list(StudyDescription = "RT^HEAD_NECK (Adult)"))
An abstract class for a DICOM Instance resource.
An R6 instance of class "Instance".
orthanc::Resource -> Instance
uidSOPInstanceUID
file_sizeFile size
creation_dateCreation Date
series_identifierParent series identifier
parent_seriesParent series
parent_studyParent study
parent_patientParent patient
acquisition_numberAcquisition Number
image_indexImage Index
image_orientation_patientImage Orientation Patient
image_position_patientImage Position Patient
image_commentsImage Comments
instance_numberInstance Number
temporal_position_identifierTemporal Position Identifier
tagsTags
simplified_tagsSimplified Tags
labelsGet or add labels
statisticsStatistics
list_framesList frames (zero-based indexing)
framesNumber of frames
rowsNumber of rows
columnsNumber of columns
shapeShape (rows x columns x frames (if multi-frame))
dimNumber of dimensions
slice_thicknessSlice thickness
pixel_spacingPixel spacing
get_dicom_file_content()
Retrieves bytes of DICOM file content
This method retrieves bytes corresponding to the DICOM file.
Instance$get_dicom_file_content()
download_dicom()
Download DICOM file to a path.
Instance$download_dicom(path, stream = FALSE)
pathPath on disk.
streamShould the resource be streamed and written to disk in
chunks? Default is FALSE, which means the resource file contents are
retrieved in their entirety and written to disk all at once.
get_main_information()
Get instance information.
Instance$get_main_information()
add_label()
Add label to resource.
Instance$add_label(label)
labelLabel.
has_label()
Test if resource has label.
Instance$has_label(label)
labelLabel.
remove_label()
Delete label from resource.
Instance$remove_label(label)
labelLabel.
get_raw_content_by_tag()
Get raw content of one DICOM tag.
Instance$get_raw_content_by_tag(tag)
tagtag.
anonymize()
Anonymize Instance
Instance$anonymize( remove = list(), replace = list(), keep = list(), keep_private_tags = FALSE, keep_source = TRUE, private_creator = NULL, force = FALSE, dicom_version = NULL )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
keep_private_tagsKeep private tags from DICOM instance.
keep_sourceKeep original resource.
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
dicom_versionVersion of the DICOM standard to use for anonymization.
modify()
Modify an Instance
Instance$modify( remove = list(), replace = list(), keep = list(), remove_private_tags = FALSE, keep_source = TRUE, private_creator = NULL, force = FALSE )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
remove_private_tagsRemove private tags from DICOM instance.
keep_sourceKeep original resource.
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
get_nifti_file_content()
Get bytes of NIfTI file content.
Instance$get_nifti_file_content(compress = TRUE)
compressCompress to gzip (nii.gz) Default is TRUE.
download_nifti()
Download instance as NIfTI.
Instance$download_nifti(path, compress = TRUE, stream = FALSE)
pathPath on disk.
compressCompress to gzip (nii.gz) Default is TRUE.
streamShould the resource be streamed and written to disk in
chunks? Default is FALSE, which means the resource file contents are
retrieved in their entirety and written to disk all at once.
download_image()
Download instance as an image.
Instance$download_image(
path,
frame = 0L,
format = c("png", "jpeg"),
render = TRUE,
params = NULL,
...
)pathPath on disk.
frameIndex of the frame (starts at 0L). Default is 0L.
formatOne of "png" or "jpeg". Default is "png".
renderShould the image be scaled (with RescaleSlope and
RescaleIntercept) and windowed (with WindowCenter
and WindowWidth, if available). Default is TRUE.
paramsOptional named-list of query parameters.
...Optional arguments passed on to png::writePNG() or
jpeg::writeJPEG().
clone()
The objects of this class are cloneable with this method.
Instance$clone(deep = FALSE)
deepWhether to make a deep clone.
Job class to follow a Job in Orthanc
An instance of Job.
stateJob state.
contentJob content.
typeJob type.
creation_timeJob creation time.
effective_runtimeJob effective runtime.
priorityJob priority.
progressJob progress.
errorJob error.
error_detailsJob error details.
timestampJob timestamp.
completion_timeJob completion time.
new()
Create a new Job instance.
Job$new(id, client)
idJob ID.
clientOrthanc API client.
wait_until_completion()
Stop execution until job is not Pending/Running.
Job$wait_until_completion(interval = 2L)
intervalTime interval to check the job status, default is 2s.
get_information()
Get job information.
Job$get_information()
clone()
The objects of this class are cloneable with this method.
Job$clone(deep = FALSE)
deepWhether to make a deep clone.
Wrapper around Orthanc API when dealing with a modality
An instance of Modality.
modalityModality.
initalize()
Create a new Modality instance.
Modality$initalize(client, modality)
clientOrthanc API client.
modalityRemote modality.
echo()
C-Echo to modality
Modality$echo()
get()
C-Move SCU: Send all the results to another modality whose AET is in the body.
Modality$get(level, resources)
levelLevel of the query ("Patient", "Study", "Series", "Instance").
resourcesList or named-list of DICOM tags that identify data to retrieve (e.g., list(StudyInstanceUID = "1.3.6.1.4.1.22213.2.6291.2.1")).
find()
C-Find (Querying with data)
Modality$find(data)
dataNamed-list to send in the body of request.
move()
C-Find (Querying with data)
Modality$move(query_id, cmove_data)
query_idQuery identifier.
cmove_dataEx. list(TargetAet = 'target_modality_name', Synchronous = FALSE)
store()
Store series or instance to modality.
Modality$store(instance_or_series_id)
instance_or_series_idInstance or Series Orthanc identifier.
get_query_answers()
Get query answers.
Modality$get_query_answers(query_id)
query_idQuery identifier.
clone()
The objects of this class are cloneable with this method.
Modality$clone(deep = FALSE)
deepWhether to make a deep clone.
Orthanc is an open-source, lightweight DICOM server for healthcare and
medical research. This R6 generator creates a client to access
Orthanc's RESTful API. More details about the Orthanc REST API can be
found here: https://orthanc.uclouvain.be/book/users/rest.html.
The full documentation of the Orthanc API can be found here: https://orthanc.uclouvain.be/api/.
An Orthanc instance.
urlURL for Orthanc REST API.
api_versionOrthanc REST API version.
num_instancesNumber of instances.
num_seriesNumber of series.
num_studiesNumber of studies.
num_patientsNumber of patients.
new()
Initialize a new Orthanc API Client
Orthanc$new( url, username = NULL, password = NULL, params = NULL, headers = NULL, cookies = NULL, timeout = NULL, rate_limit = NULL, verify = NULL, ... )
urlURL for Orthanc REST API.
usernameOptional username for Basic HTTP authentication.
passwordOptional password for Basic HTTP authentication.
paramsNamed-list of query parameters to include in every request.
headersNamed-list of headers to include in every request.
cookiesNamed-list of cookies to set in every request.
timeoutMaximum number of seconds to wait for a request to complete.
rate_limitNamed-list with values "capacity" and "fill_time".
"capacity" is the maximum number of requests that can happen during
the "fill_time" (in seconds). See httr2::req_throttle().
verifyWhether to verify the SSL/TLS certificate when
making HTTP requests via httr2. Set to FALSE to disable
certificate verification (e.g., when connecting to servers with
self-signed certificates). Disabling verification reduces connection
security and should only be used in trusted environments.
...Not currently used.
GET()
GET request with specified route
Orthanc$GET(route, params = NULL, headers = NULL, cookies = NULL)
routeHTTP route.
paramsParameters for the HTTP request.
headersHeaders for the HTTP request.
cookiesCookies for the HTTP request.
Serialized response of the HTTP GET request.
DELETE()
DELETE to specified route
Orthanc$DELETE(route, params = NULL, headers = NULL, cookies = NULL)
routeHTTP route.
paramsParameters for the HTTP request.
headersHeaders for the HTTP request.
cookiesCookies for the HTTP request.
Serialized response of the HTTP DELETE request.
POST()
POST to specified route
Orthanc$POST( route, file = NULL, json = NULL, data = NULL, params = NULL, headers = NULL, cookies = NULL )
routeHTTP route.
fileDICOM file to be uploaded or a ZIP archive containing DICOM files.
jsonList to be converted to JSON for request body.
dataRaw data.
paramsParameters for the HTTP request.
headersHeaders for the HTTP request.
cookiesCookies for the HTTP request.
Serialized response of the HTTP POST request.
PUT()
PUT to specified route
Orthanc$PUT( route, file = NULL, json = NULL, data = NULL, params = NULL, headers = NULL, cookies = NULL )
routeHTTP route.
fileDICOM file to be uploaded or a ZIP archive containing DICOM files.
jsonList to be converted to JSON for request body.
dataRaw data.
paramsParameters for the HTTP request.
headersHeaders for the HTTP request.
cookiesCookies for the HTTP request.
Serialized response of the HTTP PUT request.
stream()
Stream an HTTP response body and write to disk.
Orthanc$stream(method, route, params = NULL, headers = NULL, cookies = NULL)
methodHTTP method.
routeHTTP route.
paramsParameters for the HTTP request.
headersHeaders for the HTTP request.
cookiesCookies for the HTTP request.
Serialized response of the HTTP GET request.
print()
Print method for Orthanc.
Orthanc$print(x, ...)
xObject to print.
...Further arguments passed to or from other methods.
delete_changes()
Clear changes
Clear the full history stored in the changes log
Orthanc$delete_changes()
Nothing, invisibly.
get_changes()
List changes
Whenever Orthanc receives a new DICOM instance, this event is recorded in the so-called Changes Log. This enables remote scripts to react to the arrival of new DICOM resources. A typical application is auto-routing, where an external script waits for a new DICOM instance to arrive into Orthanc, then forward this instance to another modality. Please note that, when resources are deleted, their corresponding change entries are also removed from the Changes Log, which helps ensuring that this log does not grow indefinitely.
Orthanc$get_changes(params = NULL)
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
last (number): Request only the last change id (this argument must be used alone)
limit (number): Limit the number of results
since (number): Show only the resources since the provided index excluded
to (number): Show only the resources till the provided index included (only available if your DB backend supports ExtendedChanges)
type (string): Show only the changes of the provided type (only available if your DB backend supports ExtendedChanges). Multiple values can be provided and must be separated by a ';'.
The list of changes.
delete_exports()
Clear exports
Clear the full history stored in the exports log
Orthanc$delete_exports()
Nothing, invisibly.
get_exports()
List exports
For medical traceability, Orthanc can be configured to store
a log of all the resources that have been exported to remote
modalities. In auto-routing scenarios, it is important to
prevent this log to grow indefinitely as incoming instances are
routed. You can either disable this logging by setting the option
LogExportedResources to FALSE in the configuration file, or
periodically clear this log by DELETE-ing this URI. This route
might be removed in future versions of Orthanc.
Orthanc$get_exports(params = NULL)
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
limit (number): Limit the number of results
since (number): Show only the resources since the provided index
The list of exports.
get_instances()
List the available instances
List the Orthanc identifiers of all the available DICOM instances
Orthanc$get_instances(params = NULL)
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, retrieve detailed information about the individual resources, not only their Orthanc identifiers
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
limit (number): Limit the number of results
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
response-content (string): Defines the content of
response for each returned resource. Allowed values are
MainDicomTags, Metadata, Children, Parent, Labels,
Status, IsStable, IsProtected, Attachments. If not
specified, Orthanc will return MainDicomTags, Metadata,
Children, Parent, Labels, Status, IsStable,
IsProtected.e.g: 'response-content=MainDicomTags;Children
(new in Orthanc 1.12.5 - overrides expand)
short (boolean): If present, report the DICOM tags in hexadecimal format
since (number): Show only the resources since the provided index
List containing either the Orthanc identifiers, or
detailed information about the reported instances (if expand
argument is provided).
post_instances()
Upload DICOM instances
Upload DICOM instances
Orthanc$post_instances(file = NULL)
file(character) Path to file for request body. See Details.
Request body: DICOM file to be uploaded (application/dicom) or ZIP archive containing DICOM files (new in Orthanc 1.8.2) (application/zip).
Information about the uploaded instance, or list of information for each uploaded instance in the case of ZIP archive.
delete_instances_id()
Delete some instance
Delete the DICOM instance whose Orthanc identifier is provided in the URL
Orthanc$delete_instances_id(id)
id(character) Orthanc identifier of the instance of interest.
Nothing, invisibly.
get_instances_id()
Get information about some instance
Get detailed information about the DICOM instance whose Orthanc identifier is provided in the URL
Orthanc$get_instances_id(id, params = NULL)
id(character) Orthanc identifier of the instance of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
Information about the DICOM instance.
post_instances_id_anonymize()
Anonymize instance
Download an anonymized version of the DICOM instance whose Orthanc identifier is provided in the URL: https://orthanc.uclouvain.be/book/users/anonymization.html#anonymization-of-a-single-instance
Orthanc$post_instances_id_anonymize(id, json = NULL)
id(character) Orthanc identifier of the instance of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
DicomVersion (character): Version of the DICOM standard to
be used for anonymization. Check out configuration option
DeidentifyLogsDicomVersion for possible values.
Force (logical): Allow the modification of tags related to DICOM identifiers, at the risk of breaking the DICOM model of the real world
Keep (list): List of DICOM tags whose value must not be
destroyed by the anonymization. Starting with Orthanc 1.9.4,
paths to subsequences can be provided using the same syntax
as the dcmodify command-line tool (wildcards are supported
as well).
KeepLabels (logical): Keep the labels of all resources level
(defaults to FALSE)
KeepPrivateTags (logical): Keep the private tags from the
DICOM instances (defaults to FALSE)
KeepSource (logical): If set to FALSE, instructs Orthanc
to the remove original resources. By default, the original
resources are kept in Orthanc.
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
PrivateCreator (character): The private creator to be used
for private tags in Replace
Remove (list): List of additional tags to be removed from
the DICOM instances. Starting with Orthanc 1.9.4, paths to
subsequences can be provided using the same syntax as the
dcmodify command-line tool (wildcards are supported as
well).
Replace (list): Associative array to change the value
of some DICOM tags in the DICOM instances. Starting with
Orthanc 1.9.4, paths to subsequences can be provided
using the same syntax as the dcmodify command-line tool
(wildcards are supported as well).
Transcode (character): Transcode the DICOM instances to the provided DICOM transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
The anonymized DICOM instance.
get_instances_id_attachments()
List attachments
Get the list of attachments that are associated with the given instance
Orthanc$get_instances_id_attachments(id, params = NULL)
id(character) Orthanc identifier of the instance of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (string): If present, retrieve the attachments list and their numerical ids
List containing the names of the attachments.
delete_instances_id_attachments_name()
Delete attachment
Delete an attachment associated with the given DICOM instance. This call will fail if trying to delete a system attachment (i.e. whose index is < 1024).
Orthanc$delete_instances_id_attachments_name(id, name, headers = NULL)
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-Match (string): Revision of the attachment, to check if
its content has not changed and can be deleted. This header
is mandatory if CheckRevisions option is TRUE.
Nothing, invisibly.
get_instances_id_attachments_name()
List operations on attachments
Get the list of the operations that are available for attachments associated with the given instance
Orthanc$get_instances_id_attachments_name(id, name, headers = NULL)
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
List of the available operations.
put_instances_id_attachments_name()
Set attachment
Attach a file to the given DICOM instance. This call will fail if trying to modify a system attachment (i.e. whose index is < 1024).
Orthanc$put_instances_id_attachments_name( id, name, headers = NULL, data = NULL )
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body: Binary data containing the attachment (application/octet-stream).
Optional headers (headers):
If-Match (string): Revision of the attachment, if this is not the first time this attachment is set.
Empty JSON object in the case of a success.
post_instances_id_attachments_name_compress()
Compress attachment
Change the compression scheme that is used to store an attachment.
Orthanc$post_instances_id_attachments_name_compress(id, name)
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
Nothing, invisibly.
get_instances_id_attachments_name_compressed_data()
Get attachment (no decompression)
Get the (binary) content of one attachment associated with
the given instance. The attachment will not be decompressed if
StorageCompression is TRUE.
Orthanc$get_instances_id_attachments_name_compressed_data( id, name, params = NULL, headers = NULL )
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Content-Range (string): Optional content range to access part of the attachment (new in Orthanc 1.12.5)
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
The attachment.
get_instances_id_attachments_name_compressed_md5()
Get MD5 of attachment on disk
Get the MD5 hash of one attachment associated with the given
instance, as stored on the disk. This is different from .../md5
iff EnableStorage is TRUE.
Orthanc$get_instances_id_attachments_name_compressed_md5( id, name, headers = NULL )
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The MD5 of the attachment, as stored on the disk.
get_instances_id_attachments_name_compressed_size()
Get size of attachment on disk
Get the size of one attachment associated with the given
instance, as stored on the disk. This is different from
.../size iff EnableStorage is TRUE.
Orthanc$get_instances_id_attachments_name_compressed_size( id, name, headers = NULL )
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The size of the attachment, as stored on the disk.
get_instances_id_attachments_name_data()
Get attachment
Get the (binary) content of one attachment associated with the given instance
Orthanc$get_instances_id_attachments_name_data( id, name, params = NULL, headers = NULL )
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Content-Range (string): Optional content range to access part of the attachment (new in Orthanc 1.12.5)
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
The attachment.
get_instances_id_attachments_name_info()
Get info about the attachment
Get all the information about the attachment associated with the given instance
Orthanc$get_instances_id_attachments_name_info(id, name, headers = NULL)
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
JSON object containing the information about the attachment.
get_instances_id_attachments_name_is_compressed()
Is attachment compressed?
Test whether the attachment has been stored as a compressed file on the disk.
Orthanc$get_instances_id_attachments_name_is_compressed( id, name, headers = NULL )
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
0 if the attachment was stored uncompressed, 1 if it
was compressed.
get_instances_id_attachments_name_md5()
Get MD5 of attachment
Get the MD5 hash of one attachment associated with the given instance
Orthanc$get_instances_id_attachments_name_md5(id, name, headers = NULL)
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The MD5 of the attachment.
get_instances_id_attachments_name_size()
Get size of attachment
Get the size of one attachment associated with the given instance
Orthanc$get_instances_id_attachments_name_size(id, name, headers = NULL)
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The size of the attachment.
post_instances_id_attachments_name_uncompress()
Uncompress attachment
Change the compression scheme that is used to store an attachment.
Orthanc$post_instances_id_attachments_name_uncompress(id, name)
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
Nothing, invisibly.
post_instances_id_attachments_name_verify_md5()
Verify attachment
Verify that the attachment is not corrupted, by validating its MD5 hash
Orthanc$post_instances_id_attachments_name_verify_md5(id, name)
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
On success, a valid JSON object is returned.
get_instances_id_content_path()
Get raw tag
Get the raw content of one DICOM tag in the hierarchy of DICOM dataset
Orthanc$get_instances_id_content_path(id, path)
id(character) Orthanc identifier of the DICOM instance of interest.
path(character) Path to the DICOM tag. This is the
interleaving of one DICOM tag, possibly followed by an index
for sequences. Sequences are accessible as, for instance,
/0008-1140/1/0008-1150.
The raw value of the tag of intereset (binary data, whose memory layout depends on the underlying transfer syntax), or List containing the list of available tags if accessing a dataset.
post_instances_id_export()
Write DICOM onto filesystem
Write the DICOM file onto the filesystem where Orthanc is
running. This is insecure for Orthanc servers that are remotely
accessible since one could overwrite any system file. Since
Orthanc 1.12.0, this route is disabled by default, but can be
enabled using the RestApiWriteToFileSystemEnabled configuration
option.
Orthanc$post_instances_id_export(id, data = NULL)
id(character) Orthanc identifier of the DICOM instance of interest.
data(bytes or character) Raw data for request body. See Details.
Request body: Target path on the filesystem (text/plain).
Nothing, invisibly.
get_instances_id_file()
Download DICOM
Download one DICOM instance
Orthanc$get_instances_id_file(id, params = NULL, headers = NULL)
id(character) Orthanc identifier of the DICOM instance of interest.
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Accept (string): This HTTP header can be set to retrieve the DICOM instance in DICOMweb format
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
lossy-quality (number): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
transcode (string): If present, the DICOM file will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
The DICOM instance.
get_instances_id_frames()
List available frames
List the frames that are available in the DICOM instance of interest
Orthanc$get_instances_id_frames(id)
id(character) Orthanc identifier of the DICOM instance of interest.
The list of the indices of the available frames.
get_instances_id_frames_frame()
List operations
List the available operations under URI
/instances/{id}/frames/{frame}/
Orthanc$get_instances_id_frames_frame(id, frame)
id(character) .
frame(character) .
List of the available operations.
get_instances_id_frames_frame_image_int16()
Decode a frame (int16)
Decode one frame of interest from the given DICOM instance. Pixels of grayscale images are truncated to the [-32768,32767] range. Negative values must be interpreted according to two's complement.
Orthanc$get_instances_id_frames_frame_image_int16( id, frame, params = NULL, headers = NULL )
id(character) Orthanc identifier of the DICOM instance of interest.
frame(numeric) Index of the frame (starts at 0).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Accept (string): Format of the resulting image.
Can be image/png (default), image/jpeg or
image/x-portable-arbitrarymap
Optional query parameters (params):
quality (number): Quality for JPEG images (between 1 and 100, defaults to 90)
returnUnsupportedImage (boolean): Returns an unsupported.png placeholder image if unable to provide the image instead of returning a 415 HTTP error (value is true if option is present)
JPEG image.
get_instances_id_frames_frame_image_uint16()
Decode a frame (uint16)
Decode one frame of interest from the given DICOM instance. Pixels of grayscale images are truncated to the [0,65535] range.
Orthanc$get_instances_id_frames_frame_image_uint16( id, frame, params = NULL, headers = NULL )
id(character) Orthanc identifier of the DICOM instance of interest.
frame(numeric) Index of the frame (starts at 0).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Accept (string): Format of the resulting image.
Can be image/png (default), image/jpeg or
image/x-portable-arbitrarymap
Optional query parameters (params):
quality (number): Quality for JPEG images (between 1 and 100, defaults to 90)
returnUnsupportedImage (boolean): Returns an unsupported.png placeholder image if unable to provide the image instead of returning a 415 HTTP error (value is true if option is present)
JPEG image.
get_instances_id_frames_frame_image_uint8()
Decode a frame (uint8)
Decode one frame of interest from the given DICOM instance. Pixels of grayscale images are truncated to the [0,255] range.
Orthanc$get_instances_id_frames_frame_image_uint8( id, frame, params = NULL, headers = NULL )
id(character) Orthanc identifier of the DICOM instance of interest.
frame(numeric) Index of the frame (starts at 0).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Accept (string): Format of the resulting image.
Can be image/png (default), image/jpeg or
image/x-portable-arbitrarymap
Optional query parameters (params):
quality (number): Quality for JPEG images (between 1 and 100, defaults to 90)
returnUnsupportedImage (boolean): Returns an unsupported.png placeholder image if unable to provide the image instead of returning a 415 HTTP error (value is true if option is present)
JPEG image.
get_instances_id_frames_frame_matlab()
Decode frame for Matlab
Decode one frame of interest from the given DICOM instance, and
export this frame as a Octave/Matlab matrix to be imported with
eval(): https://orthanc.uclouvain.be/book/faq/matlab.html
Orthanc$get_instances_id_frames_frame_matlab(id, frame)
id(character) Orthanc identifier of the DICOM instance of interest.
frame(numeric) Index of the frame (starts at 0).
Octave/Matlab matrix.
get_instances_id_frames_frame_numpy()
Decode frame for numpy
Decode one frame of interest from the given DICOM instance, for use with numpy in Python. The numpy array has 3 dimensions: (height, width, color channel).
Orthanc$get_instances_id_frames_frame_numpy(id, frame, params = NULL)
id(character) Orthanc identifier of the DICOM resource of interest.
frame(numeric) Index of the frame (starts at 0).
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
compress (boolean): Compress the file as .npz
rescale (boolean): On grayscale images, apply the rescaling and return floating-point values
Numpy file: https://numpy.org/devdocs/reference/generated/numpy.lib.format.html.
get_instances_id_frames_frame_preview()
Decode a frame (preview)
Decode one frame of interest from the given DICOM instance. The full dynamic range of grayscale images is rescaled to the [0,255] range.
Orthanc$get_instances_id_frames_frame_preview( id, frame, params = NULL, headers = NULL )
id(character) Orthanc identifier of the DICOM instance of interest.
frame(numeric) Index of the frame (starts at 0).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Accept (string): Format of the resulting image.
Can be image/png (default), image/jpeg or
image/x-portable-arbitrarymap
Optional query parameters (params):
quality (number): Quality for JPEG images (between 1 and 100, defaults to 90)
returnUnsupportedImage (boolean): Returns an unsupported.png placeholder image if unable to provide the image instead of returning a 415 HTTP error (value is true if option is present)
JPEG image.
get_instances_id_frames_frame_raw()
Access raw frame
Access the raw content of one individual frame of the DICOM instance of interest, bypassing image decoding. This is notably useful to access the source files in compressed transfer syntaxes.
Orthanc$get_instances_id_frames_frame_raw(id, frame)
id(character) Orthanc identifier of the instance of interest.
frame(numeric) Index of the frame (starts at 0).
The raw frame.
get_instances_id_frames_frame_raw.gz()
Access raw frame (compressed)
Access the raw content of one individual frame of the DICOM instance of interest, bypassing image decoding. This is notably useful to access the source files in compressed transfer syntaxes. The image is compressed using gzip
Orthanc$get_instances_id_frames_frame_raw.gz(id, frame)
id(character) Orthanc identifier of the instance of interest.
frame(numeric) Index of the frame (starts at 0).
The raw frame, compressed using gzip.
get_instances_id_frames_frame_rendered()
Render a frame
Render one frame of interest from the given DICOM instance.
This function takes scaling into account (RescaleSlope and
RescaleIntercept tags), as well as the default windowing stored
in the DICOM file (WindowCenter and WindowWidthtags), and
can be used to resize the resulting image. Color images are not
affected by windowing.
Orthanc$get_instances_id_frames_frame_rendered( id, frame, params = NULL, headers = NULL )
id(character) Orthanc identifier of the DICOM instance of interest.
frame(numeric) Index of the frame (starts at 0).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Accept (string): Format of the resulting image.
Can be image/png (default), image/jpeg or
image/x-portable-arbitrarymap
Optional query parameters (params):
height (number): Height of the resized image
quality (number): Quality for JPEG images (between 1 and 100, defaults to 90)
returnUnsupportedImage (boolean): Returns an unsupported.png placeholder image if unable to provide the image instead of returning a 415 HTTP error (value is true if option is present)
smooth (boolean): Whether to smooth image on resize
width (number): Width of the resized image
window-center (number): Windowing center
window-width (number): Windowing width
JPEG image.
get_instances_id_header()
Get DICOM meta-header
Get the DICOM tags in the meta-header of the DICOM instance. By
default, the full format is used, which combines hexadecimal
tags with human-readable description.
Orthanc$get_instances_id_header(id, params = NULL)
id(character) Orthanc identifier of the DICOM instance of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
JSON object containing the DICOM tags and their associated value.
get_instances_id_image_int16()
Decode an image (int16)
Decode the first frame of the given DICOM instance. Pixels of grayscale images are truncated to the [-32768,32767] range. Negative values must be interpreted according to two's complement.
Orthanc$get_instances_id_image_int16(id, params = NULL, headers = NULL)
id(character) Orthanc identifier of the DICOM instance of interest.
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Accept (string): Format of the resulting image.
Can be image/png (default), image/jpeg or
image/x-portable-arbitrarymap
Optional query parameters (params):
quality (number): Quality for JPEG images (between 1 and 100, defaults to 90)
returnUnsupportedImage (boolean): Returns an unsupported.png placeholder image if unable to provide the image instead of returning a 415 HTTP error (value is true if option is present)
JPEG image.
get_instances_id_image_uint16()
Decode an image (uint16)
Decode the first frame of the given DICOM instance. Pixels of grayscale images are truncated to the [0,65535] range.
Orthanc$get_instances_id_image_uint16(id, params = NULL, headers = NULL)
id(character) Orthanc identifier of the DICOM instance of interest.
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Accept (string): Format of the resulting image.
Can be image/png (default), image/jpeg or
image/x-portable-arbitrarymap
Optional query parameters (params):
quality (number): Quality for JPEG images (between 1 and 100, defaults to 90)
returnUnsupportedImage (boolean): Returns an unsupported.png placeholder image if unable to provide the image instead of returning a 415 HTTP error (value is true if option is present)
JPEG image.
get_instances_id_image_uint8()
Decode an image (uint8)
Decode the first frame of the given DICOM instance. Pixels of grayscale images are truncated to the [0,255] range.
Orthanc$get_instances_id_image_uint8(id, params = NULL, headers = NULL)
id(character) Orthanc identifier of the DICOM instance of interest.
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Accept (string): Format of the resulting image.
Can be image/png (default), image/jpeg or
image/x-portable-arbitrarymap
Optional query parameters (params):
quality (number): Quality for JPEG images (between 1 and 100, defaults to 90)
returnUnsupportedImage (boolean): Returns an unsupported.png placeholder image if unable to provide the image instead of returning a 415 HTTP error (value is true if option is present)
JPEG image.
get_instances_id_labels()
List labels
Get the labels that are associated with the given instance (new in Orthanc 1.12.0)
Orthanc$get_instances_id_labels(id)
id(character) Orthanc identifier of the instance of interest.
List containing the names of the labels.
delete_instances_id_labels_label()
Remove label
Remove a label associated with a instance
Orthanc$delete_instances_id_labels_label(id, label)
id(character) Orthanc identifier of the instance of interest.
label(character) The label to be removed.
Nothing, invisibly.
get_instances_id_labels_label()
Test label
Test whether the instance is associated with the given label
Orthanc$get_instances_id_labels_label(id, label)
id(character) Orthanc identifier of the instance of interest.
label(character) The label of interest.
Empty string is returned in the case of presence, error 404 in the case of absence.
put_instances_id_labels_label()
Add label
Associate a label with a instance
Orthanc$put_instances_id_labels_label(id, label)
id(character) Orthanc identifier of the instance of interest.
label(character) The label to be added.
Nothing, invisibly.
get_instances_id_matlab()
Decode frame for Matlab
Decode the first frame of the given DICOM instance., and
export this frame as a Octave/Matlab matrix to be imported with
eval(): https://orthanc.uclouvain.be/book/faq/matlab.html
Orthanc$get_instances_id_matlab(id)
id(character) Orthanc identifier of the DICOM instance of interest.
Octave/Matlab matrix.
get_instances_id_metadata()
List metadata
Get the list of metadata that are associated with the given instance
Orthanc$get_instances_id_metadata(id, params = NULL)
id(character) Orthanc identifier of the instance of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, also retrieve the value of the individual metadata
numeric (string): If present, use the numeric identifier of the metadata instead of its symbolic name
List containing the names of the available
metadata, or List mapping metadata to their
values (if expand argument is provided).
delete_instances_id_metadata_name()
Delete metadata
Delete some metadata associated with the given DICOM instance. This call will fail if trying to delete a system metadata (i.e. whose index is < 1024).
Orthanc$delete_instances_id_metadata_name(id, name, headers = NULL)
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-Match (string): Revision of the metadata, to check if its
content has not changed and can be deleted. This header is
mandatory if CheckRevisions option is TRUE.
Nothing, invisibly.
get_instances_id_metadata_name()
Get metadata
Get the value of a metadata that is associated with the given instance
Orthanc$get_instances_id_metadata_name(id, name, headers = NULL)
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the metadata, to check if its content has changed
Value of the metadata.
put_instances_id_metadata_name()
Set metadata
Set the value of some metadata in the given DICOM instance. This call will fail if trying to modify a system metadata (i.e. whose index is < 1024).
Orthanc$put_instances_id_metadata_name(id, name, headers = NULL, data = NULL)
id(character) Orthanc identifier of the instance of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body: String value of the metadata (text/plain).
Optional headers (headers):
If-Match (string): Revision of the metadata, if this is not the first time this metadata is set.
Nothing, invisibly.
post_instances_id_modify()
Modify instance
Download a modified version of the DICOM instance whose Orthanc identifier is provided in the URL: https://orthanc.uclouvain.be/book/users/anonymization.html#modification-of-a-single-instance
Orthanc$post_instances_id_modify(id, json = NULL)
id(character) Orthanc identifier of the instance of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Force (logical): Allow the modification of tags related to DICOM identifiers, at the risk of breaking the DICOM model of the real world
Keep (list): Keep the original value of the specified
tags, to be chosen among the StudyInstanceUID,
SeriesInstanceUID and SOPInstanceUID tags. Avoid this
feature as much as possible, as this breaks the DICOM model
of the real world.
KeepSource (logical): If set to FALSE, instructs Orthanc
to the remove original resources. By default, the original
resources are kept in Orthanc.
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
PrivateCreator (character): The private creator to be used
for private tags in Replace
Remove (list): List of tags that must be removed from the
DICOM instances. Starting with Orthanc 1.9.4, paths to
subsequences can be provided using the same syntax as the
dcmodify command-line tool (wildcards are supported as
well).
RemovePrivateTags (logical): Remove the private tags from
the DICOM instances (defaults to FALSE)
Replace (list): Associative array to change the value
of some DICOM tags in the DICOM instances. Starting with
Orthanc 1.9.4, paths to subsequences can be provided
using the same syntax as the dcmodify command-line tool
(wildcards are supported as well).
Transcode (character): Transcode the DICOM instances to the provided DICOM transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
The modified DICOM instance.
get_instances_id_module()
Get instance module
Get the instance module of the DICOM instance whose Orthanc identifier is provided in the URL
Orthanc$get_instances_id_module(id, params = NULL)
id(character) Orthanc identifier of the instance of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
ignore-length (array): Also include the DICOM tags that are provided in this list, even if their associated value is long
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
Information about the DICOM instance.
get_instances_id_numpy()
Decode instance for numpy
Decode the given DICOM instance, for use with numpy in Python. The numpy array has 4 dimensions: (frame, height, width, color channel).
Orthanc$get_instances_id_numpy(id, params = NULL)
id(character) Orthanc identifier of the DICOM resource of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
compress (boolean): Compress the file as .npz
rescale (boolean): On grayscale images, apply the rescaling and return floating-point values
Numpy file: https://numpy.org/devdocs/reference/generated/numpy.lib.format.html.
get_instances_id_patient()
Get parent patient
Get detailed information about the parent patient of the DICOM instance whose Orthanc identifier is provided in the URL
Orthanc$get_instances_id_patient(id, params = NULL)
id(character) Orthanc identifier of the instance of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
Information about the parent DICOM patient.
get_instances_id_pdf()
Get embedded PDF
Get the PDF file that is embedded in one DICOM instance. If the
DICOM instance doesn't contain the EncapsulatedDocument tag or
if the MIMETypeOfEncapsulatedDocument tag doesn't correspond to
the PDF type, a 404 HTTP error is raised.
Orthanc$get_instances_id_pdf(id)
id(character) Orthanc identifier of the instance interest.
PDF file.
get_instances_id_preview()
Decode an image (preview)
Decode the first frame of the given DICOM instance. The full dynamic range of grayscale images is rescaled to the [0,255] range.
Orthanc$get_instances_id_preview(id, params = NULL, headers = NULL)
id(character) Orthanc identifier of the DICOM instance of interest.
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Accept (string): Format of the resulting image.
Can be image/png (default), image/jpeg or
image/x-portable-arbitrarymap
Optional query parameters (params):
quality (number): Quality for JPEG images (between 1 and 100, defaults to 90)
returnUnsupportedImage (boolean): Returns an unsupported.png placeholder image if unable to provide the image instead of returning a 415 HTTP error (value is true if option is present)
JPEG image.
post_instances_id_reconstruct()
Reconstruct tags & optionally files of instance
Reconstruct the main DICOM tags in DB of the instance whose Orthanc identifier is provided in the URL. This is useful if child studies/series/instances have inconsistent values for higher-level tags, in order to force Orthanc to use the value from the resource of interest. Beware that this is a time-consuming operation, as all the children DICOM instances will be parsed again, and the Orthanc index will be updated accordingly.
Orthanc$post_instances_id_reconstruct(id, json = NULL)
id(character) Orthanc identifier of the instance of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
LimitToThisLevelMainDicomTags (logical): Only reconstruct this level MainDicomTags by re-reading them from a random child instance of the resource. This option is much faster than a full reconstruct and is useful e.g. if you have modified the 'ExtraMainDicomTags' at the Study level to optimize the speed of some C-Find. 'false' by default. (New in Orthanc 1.12.4)
ReconstructFiles (logical): Also reconstruct the files of the resources (e.g: apply IngestTranscoding, StorageCompression). 'false' by default. (New in Orthanc 1.11.0)
Nothing, invisibly.
get_instances_id_rendered()
Render an image
Render the first frame of the given DICOM instance. This function
takes scaling into account (RescaleSlope and RescaleIntercept
tags), as well as the default windowing stored in the DICOM file
(WindowCenter and WindowWidthtags), and can be used to resize
the resulting image. Color images are not affected by windowing.
Orthanc$get_instances_id_rendered(id, params = NULL, headers = NULL)
id(character) Orthanc identifier of the DICOM instance of interest.
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Accept (string): Format of the resulting image.
Can be image/png (default), image/jpeg or
image/x-portable-arbitrarymap
Optional query parameters (params):
height (number): Height of the resized image
quality (number): Quality for JPEG images (between 1 and 100, defaults to 90)
returnUnsupportedImage (boolean): Returns an unsupported.png placeholder image if unable to provide the image instead of returning a 415 HTTP error (value is true if option is present)
smooth (boolean): Whether to smooth image on resize
width (number): Width of the resized image
window-center (number): Windowing center
window-width (number): Windowing width
JPEG image.
get_instances_id_series()
Get parent series
Get detailed information about the parent series of the DICOM instance whose Orthanc identifier is provided in the URL
Orthanc$get_instances_id_series(id, params = NULL)
id(character) Orthanc identifier of the instance of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
Information about the parent DICOM series.
get_instances_id_simplified_tags()
Get human-readable tags
Get the DICOM tags in human-readable format (same as the
/instances/{id}/tags?simplify route)
Orthanc$get_instances_id_simplified_tags(id, params = NULL)
id(character) Orthanc identifier of the DICOM instance of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
ignore-length (array): Also include the DICOM tags that are provided in this list, even if their associated value is long
whole (boolean): Whether to read the whole DICOM file from the storage area (new in Orthanc 1.12.4). If set to "false" (default value), the DICOM file is read until the pixel data tag (7fe0,0010) to optimize access to storage. Setting the option to "true" provides access to the DICOM tags stored after the pixel data tag.
JSON object containing the DICOM tags and their associated value.
get_instances_id_statistics()
Get instance statistics
Get statistics about the given instance
Orthanc$get_instances_id_statistics(id)
id(character) Orthanc identifier of the instance of interest.
Nothing, invisibly.
get_instances_id_study()
Get parent study
Get detailed information about the parent study of the DICOM instance whose Orthanc identifier is provided in the URL
Orthanc$get_instances_id_study(id, params = NULL)
id(character) Orthanc identifier of the instance of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
Information about the parent DICOM study.
get_instances_id_tags()
Get DICOM tags
Get the DICOM tags in the specified format. By default, the
full format is used, which combines hexadecimal tags with
human-readable description.
Orthanc$get_instances_id_tags(id, params = NULL)
id(character) Orthanc identifier of the DICOM instance of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
ignore-length (array): Also include the DICOM tags that are provided in this list, even if their associated value is long
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
whole (boolean): Whether to read the whole DICOM file from the storage area (new in Orthanc 1.12.4). If set to "false" (default value), the DICOM file is read until the pixel data tag (7fe0,0010) to optimize access to storage. Setting the option to "true" provides access to the DICOM tags stored after the pixel data tag.
JSON object containing the DICOM tags and their associated value.
get_jobs()
List jobs
List all the available jobs
Orthanc$get_jobs(params = NULL)
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, retrieve detailed information about the individual jobs
List containing either the jobs identifiers, or
detailed information about the reported jobs (if expand
argument is provided).
delete_jobs_id()
Delete a job from history
Delete the job from the jobs history. Only a completed job can be deleted. If the job has not run or not completed yet, you must cancel it first. If the job has outputs, all outputs will be deleted as well.
Orthanc$delete_jobs_id(id)
id(character) Identifier of the job of interest.
Nothing, invisibly.
get_jobs_id()
Get job
Retrieve detailed information about the job whose identifier is provided in the URL: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs
Orthanc$get_jobs_id(id)
id(character) Identifier of the job of interest.
JSON object detailing the job.
post_jobs_id_cancel()
Cancel job
Cancel the job whose identifier is provided in the URL. Check out the Orthanc Book for more information about the state machine applicable to jobs: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs
Orthanc$post_jobs_id_cancel(id)
id(character) Identifier of the job of interest.
Empty JSON object in the case of a success.
post_jobs_id_pause()
Pause job
Pause the job whose identifier is provided in the URL. Check out the Orthanc Book for more information about the state machine applicable to jobs: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs
Orthanc$post_jobs_id_pause(id)
id(character) Identifier of the job of interest.
Empty JSON object in the case of a success.
post_jobs_id_resubmit()
Resubmit job
Resubmit the job whose identifier is provided in the URL. Check out the Orthanc Book for more information about the state machine applicable to jobs: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs
Orthanc$post_jobs_id_resubmit(id)
id(character) Identifier of the job of interest.
Empty JSON object in the case of a success.
post_jobs_id_resume()
Resume job
Resume the job whose identifier is provided in the URL. Check out the Orthanc Book for more information about the state machine applicable to jobs: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs
Orthanc$post_jobs_id_resume(id)
id(character) Identifier of the job of interest.
Empty JSON object in the case of a success.
delete_jobs_id_key()
Delete a job output
Delete the output produced by a job. As of Orthanc 1.12.1, only
the jobs that generate a DICOMDIR media or a ZIP archive provide
such an output (with key equals to archive).
Orthanc$delete_jobs_id_key(id, key)
id(character) Identifier of the job of interest.
key(character) Name of the output of interest.
Nothing, invisibly.
get_jobs_id_key()
Get job output
Retrieve some output produced by a job. As of Orthanc 1.8.2, only
the jobs that generate a DICOMDIR media or a ZIP archive provide
such an output (with key equals to archive).
Orthanc$get_jobs_id_key(id, key)
id(character) Identifier of the job of interest.
key(character) Name of the output of interest.
Content of the output of the job.
get_modalities()
List DICOM modalities
List all the DICOM modalities that are known to Orthanc. This
corresponds either to the content of the DicomModalities
configuration option, or to the information stored in the
database if DicomModalitiesInDatabase is TRUE.
Orthanc$get_modalities(params = NULL)
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, retrieve detailed information about the individual DICOM modalities
List containing either the identifiers of the
modalities, or detailed information about the modalities (if
expand argument is provided).
delete_modalities_id()
Delete DICOM modality
Delete one DICOM modality. This change is permanent iff.
DicomModalitiesInDatabase is TRUE, otherwise it is lost at
the next restart of Orthanc.
Orthanc$delete_modalities_id(id)
id(character) Identifier of the DICOM modality of interest.
Nothing, invisibly.
get_modalities_id()
List operations on modality
List the operations that are available for a DICOM modality.
Orthanc$get_modalities_id(id)
id(character) Identifier of the DICOM modality of interest.
List of the available operations.
put_modalities_id()
Update DICOM modality
Define a new DICOM modality, or update an existing one. This
change is permanent iff. DicomModalitiesInDatabase is TRUE,
otherwise it is lost at the next restart of Orthanc.
Orthanc$put_modalities_id(id, json = NULL)
id(character) Identifier of the new/updated DICOM modality.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
AET (character): AET of the remote DICOM modality
AllowEcho (logical): Whether to accept C-ECHO SCU commands issued by the remote modality
AllowFind (logical): Whether to accept C-FIND SCU commands issued by the remote modality
AllowFindWorklist (logical): Whether to accept C-FIND SCU commands for worklists issued by the remote modality
AllowGet (logical): Whether to accept C-GET SCU commands issued by the remote modality
AllowMove (logical): Whether to accept C-MOVE SCU commands issued by the remote modality
AllowStorageCommitment (logical): Whether to accept storage commitment requests issued by the remote modality
AllowStore (logical): Whether to accept C-STORE SCU commands issued by the remote modality
AllowTranscoding (logical): Whether to allow transcoding for
operations initiated by this modality. This option applies
to Orthanc C-GET SCP and to Orthanc C-STORE SCU. It only has
an effect if the global option EnableTranscoding is set to
TRUE.
Host (character): Host address of the remote DICOM modality (typically, an IP address)
LocalAet (character): Whether to override the default DicomAet in the SCU connection initiated by Orthanc to this modality
Manufacturer (character): Manufacturer of the remote DICOM
modality (check configuration option DicomModalities for
possible values
Port (numeric): TCP port of the remote DICOM modality
Timeout (numeric): Whether to override the default DicomScuTimeout in the SCU connection initiated by Orthanc to this modality
UseDicomTls (logical): Whether to use DICOM TLS in the SCU connection initiated by Orthanc (new in Orthanc 1.9.0)
Nothing, invisibly.
get_modalities_id_configuration()
Get modality configuration
Get detailed information about the configuration of some DICOM modality
Orthanc$get_modalities_id_configuration(id)
id(character) Identifier of the modality of interest.
Configuration of the modality.
post_modalities_id_echo()
Trigger C-ECHO SCU
Trigger C-ECHO SCU command against the DICOM modality whose identifier is provided in URL: https://orthanc.uclouvain.be/book/users/rest.html#performing-c-echo
Orthanc$post_modalities_id_echo(id, json = NULL)
id(character) Identifier of the modality of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
CheckFind (logical): Issue a dummy C-FIND command after the
C-GET SCU, in order to check whether the remote modality
knows about Orthanc. This field defaults to the value of the
DicomEchoChecksFind configuration option. New in Orthanc
1.8.1.
Timeout (numeric): Timeout for the C-ECHO command, in seconds
Nothing, invisibly.
post_modalities_id_find_worklist()
C-FIND SCU for worklist
Trigger C-FIND SCU command against the remote worklists of the DICOM modality whose identifier is provided in URL
Orthanc$post_modalities_id_find_worklist(id, json = NULL)
id(character) Identifier of the modality of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Full (logical): If set to TRUE, report the DICOM tags
in full format (tags indexed by their hexadecimal format,
associated with their symbolic name and their value)
Query (list): Associative array containing the filter on the values of the DICOM tags
Short (logical): If set to TRUE, report the DICOM tags in
hexadecimal format
List describing the DICOM tags of the matching worklists.
post_modalities_id_get()
Trigger C-GET SCU
Start a C-GET SCU command as a job, in order to retrieve DICOM resources from a remote DICOM modality whose identifier is provided in the URL:
Orthanc$post_modalities_id_get(id, json = NULL)
id(character) Identifier of the modality of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
Level (character): Level of the query (Patient, Study,
Series or Instance)
LocalAet (character): Local AET that is used for this
commands, defaults to DicomAet configuration option.
Ignored if DicomModalities already sets LocalAet for
this modality.
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
Resources (list): List of queries identifying all the DICOM resources to be sent. Usage of wildcards is prohibited and the query shall only contain DICOM ID tags. Additionally, you may provide SOPClassesInStudy to limit the scope of the DICOM negotiation to certain SOPClassUID or to present uncommon SOPClassUID during the DICOM negotiation. By default, Orhanc will propose the most 120 common SOPClassUIDs.
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
Timeout (numeric): Timeout for the C-GET command, in seconds
UserData (list): User data that will travel along with the job.
Nothing, invisibly.
post_modalities_id_move()
Trigger C-MOVE SCU
Start a C-MOVE SCU command as a job, in order to drive the execution of a sequence of C-STORE commands by some remote DICOM modality whose identifier is provided in the URL: https://orthanc.uclouvain.be/book/users/rest.html#performing-c-move
Orthanc$post_modalities_id_move(id, json = NULL)
id(character) Identifier of the modality of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
Level (character): Level of the query (Patient, Study,
Series or Instance)
LocalAet (character): Local AET that is used for this
commands, defaults to DicomAet configuration option.
Ignored if DicomModalities already sets LocalAet for
this modality.
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
Resources (list): List of queries identifying all the DICOM resources to be sent
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
TargetAet (character): Target AET that will be used by
the remote DICOM modality as a target for its C-STORE SCU
commands, defaults to DicomAet configuration option in
order to do a simple query/retrieve
Timeout (numeric): Timeout for the C-MOVE command, in seconds
UserData (list): User data that will travel along with the job.
Nothing, invisibly.
post_modalities_id_query()
Trigger C-FIND SCU
Trigger C-FIND SCU command against the DICOM modality whose identifier is provided in URL: https://orthanc.uclouvain.be/book/users/rest.html#performing-query-retrieve-c-find-and-find-with-rest
Orthanc$post_modalities_id_query(id, json = NULL)
id(character) Identifier of the modality of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Level (character): Level of the query (Patient, Study,
Series or Instance)
LocalAet (character): Local AET that is used for this
commands, defaults to DicomAet configuration option.
Ignored if DicomModalities already sets LocalAet for
this modality.
Normalize (logical): Whether to normalize the query, i.e. whether to wipe out from the query, the DICOM tags that are not applicable for the query-retrieve level of interest
Query (list): Associative array containing the filter on the values of the DICOM tags
Timeout (numeric): Timeout for the C-FIND command and subsequent C-MOVE retrievals, in seconds (new in Orthanc 1.9.1)
Nothing, invisibly.
post_modalities_id_storage_commitment()
Trigger storage commitment request
Trigger a storage commitment request to some remote DICOM modality whose identifier is provided in the URL: https://orthanc.uclouvain.be/book/users/storage-commitment.html#storage-commitment-scu
Orthanc$post_modalities_id_storage_commitment(id, json = NULL)
id(character) Identifier of the modality of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
DicomInstances (list): List of DICOM resources that are not
necessarily stored within Orthanc, but that must be checked
by storage commitment. This is a list of JSON objects that
must contain the SOPClassUID and SOPInstanceUID fields.
Resources (list): List of the Orthanc identifiers of the DICOM resources to be checked by storage commitment
Timeout (numeric): Timeout for the storage commitment command (new in Orthanc 1.9.1)
Nothing, invisibly.
post_modalities_id_store()
Trigger C-STORE SCU
Start a C-STORE SCU command as a job, in order to send DICOM resources stored locally to some remote DICOM modality whose identifier is provided in the URL: https://orthanc.uclouvain.be/book/users/rest.html#rest-store-scu
Orthanc$post_modalities_id_store(id, json = NULL, data = NULL)
id(character) Identifier of the modality of interest.
json(list) Named-list for request body. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
CalledAet (character): Called AET that is used for this
commands, defaults to AET configuration option. Allows you
to overwrite the destination AET for a specific operation.
Host (character): Host that is used for this commands,
defaults to Host configuration option. Allows you to
overwrite the destination host for a specific operation.
LocalAet (character): Local AET that is used for this
commands, defaults to DicomAet configuration option.
Ignored if DicomModalities already sets LocalAet for
this modality.
MoveOriginatorAet (character): Move originator AET that is used for this commands, in order to fake a C-MOVE SCU
MoveOriginatorID (numeric): Move originator ID that is used for this commands, in order to fake a C-MOVE SCU
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Port (numeric): Port that is used for this command, defaults
to Port configuration option. Allows you to overwrite the
destination port for a specific operation.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
Resources (list): List of the Orthanc identifiers of all the DICOM resources to be sent
StorageCommitment (logical): Whether to chain C-STORE with DICOM storage commitment to validate the success of the transmission: https://orthanc.uclouvain.be/book/users/storage-commitment.html#chaining-c-store-with-storage-commitment
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
Timeout (numeric): Timeout for the C-STORE command, in seconds
UserData (list): User data that will travel along with the job. Request body: The Orthanc identifier of one resource to be sent (text/plain).
Nothing, invisibly.
post_modalities_id_store_straight()
Straight C-STORE SCU
Synchronously send the DICOM instance in the POST body to the
remote DICOM modality whose identifier is provided in URL,
without having to first store it locally within Orthanc. This
is an alternative to command-line tools such as storescu from
DCMTK or dcm4che.
Orthanc$post_modalities_id_store_straight(id, file = NULL)
id(character) Identifier of the modality of interest.
file(character) Path to file for request body. See Details.
Request body: DICOM instance to be sent (application/dicom).
Nothing, invisibly.
get_patients()
List the available patients
List the Orthanc identifiers of all the available DICOM patients
Orthanc$get_patients(params = NULL)
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, retrieve detailed information about the individual resources, not only their Orthanc identifiers
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
limit (number): Limit the number of results
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
response-content (string): Defines the content of
response for each returned resource. Allowed values are
MainDicomTags, Metadata, Children, Parent, Labels,
Status, IsStable, IsProtected, Attachments. If not
specified, Orthanc will return MainDicomTags, Metadata,
Children, Parent, Labels, Status, IsStable,
IsProtected.e.g: 'response-content=MainDicomTags;Children
(new in Orthanc 1.12.5 - overrides expand)
short (boolean): If present, report the DICOM tags in hexadecimal format
since (number): Show only the resources since the provided index
List containing either the Orthanc identifiers, or
detailed information about the reported patients (if expand
argument is provided).
delete_patients_id()
Delete some patient
Delete the DICOM patient whose Orthanc identifier is provided in the URL
Orthanc$delete_patients_id(id)
id(character) Orthanc identifier of the patient of interest.
Nothing, invisibly.
get_patients_id()
Get information about some patient
Get detailed information about the DICOM patient whose Orthanc identifier is provided in the URL
Orthanc$get_patients_id(id, params = NULL)
id(character) Orthanc identifier of the patient of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
Information about the DICOM patient.
post_patients_id_anonymize()
Anonymize patient
Start a job that will anonymize all the DICOM instances within the patient whose identifier is provided in the URL. The modified DICOM instances will be stored into a brand new patient, whose Orthanc identifiers will be returned by the job. https://orthanc.uclouvain.be/book/users/anonymization.html#anonymization-of-patients-studies-or-series
Orthanc$post_patients_id_anonymize(id, json = NULL)
id(character) Orthanc identifier of the patient of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
DicomVersion (character): Version of the DICOM standard to
be used for anonymization. Check out configuration option
DeidentifyLogsDicomVersion for possible values.
Force (logical): Allow the modification of tags related to DICOM identifiers, at the risk of breaking the DICOM model of the real world
Keep (list): List of DICOM tags whose value must not be
destroyed by the anonymization. Starting with Orthanc 1.9.4,
paths to subsequences can be provided using the same syntax
as the dcmodify command-line tool (wildcards are supported
as well).
KeepLabels (logical): Keep the labels of all resources level
(defaults to FALSE)
KeepPrivateTags (logical): Keep the private tags from the
DICOM instances (defaults to FALSE)
KeepSource (logical): If set to FALSE, instructs Orthanc
to the remove original resources. By default, the original
resources are kept in Orthanc.
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
PrivateCreator (character): The private creator to be used
for private tags in Replace
Remove (list): List of additional tags to be removed from
the DICOM instances. Starting with Orthanc 1.9.4, paths to
subsequences can be provided using the same syntax as the
dcmodify command-line tool (wildcards are supported as
well).
Replace (list): Associative array to change the value
of some DICOM tags in the DICOM instances. Starting with
Orthanc 1.9.4, paths to subsequences can be provided
using the same syntax as the dcmodify command-line tool
(wildcards are supported as well).
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
Transcode (character): Transcode the DICOM instances to the provided DICOM transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): User data that will travel along with the job.
Nothing, invisibly.
get_patients_id_archive()
Create ZIP archive
Synchronously create a ZIP archive containing the DICOM patient
whose Orthanc identifier is provided in the URL. This flavor
is synchronous, which might not be desirable to archive large
amount of data, as it might lead to network timeouts. Prefer the
asynchronous version using POST method.
Orthanc$get_patients_id_archive(id, params = NULL)
id(character) Orthanc identifier of the patient of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
lossy-quality (number): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
transcode (string): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
ZIP file containing the archive.
post_patients_id_archive()
Create ZIP archive
Create a ZIP archive containing the DICOM patient whose Orthanc identifier is provided in the URL
Orthanc$post_patients_id_archive(id, json = NULL)
id(character) Orthanc identifier of the patient of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, create the archive in
asynchronous mode, which means that a job is submitted to
create the archive in background.
Filename (character): Filename to set in the "Content-Disposition" HTTP header (including file extension)
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Priority (numeric): In asynchronous mode, the priority of the job. The higher the value, the higher the priority.
Synchronous (logical): If TRUE, create the archive
in synchronous mode, which means that the HTTP answer
will directly contain the ZIP file. This is the default,
easy behavior. However, if global configuration option
"SynchronousZipStream" is set to "false", asynchronous
transfers should be preferred for large amount of data, as
the creation of the temporary file might lead to network
timeouts.
Transcode (character): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): In asynchronous mode, user data that will be attached to the job.
In asynchronous mode, information about the job that has been submitted to generate the archive: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs.
get_patients_id_attachments()
List attachments
Get the list of attachments that are associated with the given patient
Orthanc$get_patients_id_attachments(id, params = NULL)
id(character) Orthanc identifier of the patient of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (string): If present, retrieve the attachments list and their numerical ids
List containing the names of the attachments.
delete_patients_id_attachments_name()
Delete attachment
Delete an attachment associated with the given DICOM patient. This call will fail if trying to delete a system attachment (i.e. whose index is < 1024).
Orthanc$delete_patients_id_attachments_name(id, name, headers = NULL)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-Match (string): Revision of the attachment, to check if
its content has not changed and can be deleted. This header
is mandatory if CheckRevisions option is TRUE.
Nothing, invisibly.
get_patients_id_attachments_name()
List operations on attachments
Get the list of the operations that are available for attachments associated with the given patient
Orthanc$get_patients_id_attachments_name(id, name, headers = NULL)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
List of the available operations.
put_patients_id_attachments_name()
Set attachment
Attach a file to the given DICOM patient. This call will fail if trying to modify a system attachment (i.e. whose index is < 1024).
Orthanc$put_patients_id_attachments_name(id, name, headers = NULL, data = NULL)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body: Binary data containing the attachment (application/octet-stream).
Optional headers (headers):
If-Match (string): Revision of the attachment, if this is not the first time this attachment is set.
Empty JSON object in the case of a success.
post_patients_id_attachments_name_compress()
Compress attachment
Change the compression scheme that is used to store an attachment.
Orthanc$post_patients_id_attachments_name_compress(id, name)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
Nothing, invisibly.
get_patients_id_attachments_name_compressed_data()
Get attachment (no decompression)
Get the (binary) content of one attachment associated with
the given patient. The attachment will not be decompressed if
StorageCompression is TRUE.
Orthanc$get_patients_id_attachments_name_compressed_data( id, name, params = NULL, headers = NULL )
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Content-Range (string): Optional content range to access part of the attachment (new in Orthanc 1.12.5)
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
The attachment.
get_patients_id_attachments_name_compressed_md5()
Get MD5 of attachment on disk
Get the MD5 hash of one attachment associated with the given
patient, as stored on the disk. This is different from .../md5
iff EnableStorage is TRUE.
Orthanc$get_patients_id_attachments_name_compressed_md5( id, name, headers = NULL )
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The MD5 of the attachment, as stored on the disk.
get_patients_id_attachments_name_compressed_size()
Get size of attachment on disk
Get the size of one attachment associated with the given patient,
as stored on the disk. This is different from .../size iff
EnableStorage is TRUE.
Orthanc$get_patients_id_attachments_name_compressed_size( id, name, headers = NULL )
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The size of the attachment, as stored on the disk.
get_patients_id_attachments_name_data()
Get attachment
Get the (binary) content of one attachment associated with the given patient
Orthanc$get_patients_id_attachments_name_data( id, name, params = NULL, headers = NULL )
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Content-Range (string): Optional content range to access part of the attachment (new in Orthanc 1.12.5)
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
The attachment.
get_patients_id_attachments_name_info()
Get info about the attachment
Get all the information about the attachment associated with the given patient
Orthanc$get_patients_id_attachments_name_info(id, name, headers = NULL)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
JSON object containing the information about the attachment.
get_patients_id_attachments_name_is_compressed()
Is attachment compressed?
Test whether the attachment has been stored as a compressed file on the disk.
Orthanc$get_patients_id_attachments_name_is_compressed( id, name, headers = NULL )
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
0 if the attachment was stored uncompressed, 1 if it
was compressed.
get_patients_id_attachments_name_md5()
Get MD5 of attachment
Get the MD5 hash of one attachment associated with the given patient
Orthanc$get_patients_id_attachments_name_md5(id, name, headers = NULL)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The MD5 of the attachment.
get_patients_id_attachments_name_size()
Get size of attachment
Get the size of one attachment associated with the given patient
Orthanc$get_patients_id_attachments_name_size(id, name, headers = NULL)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The size of the attachment.
post_patients_id_attachments_name_uncompress()
Uncompress attachment
Change the compression scheme that is used to store an attachment.
Orthanc$post_patients_id_attachments_name_uncompress(id, name)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
Nothing, invisibly.
post_patients_id_attachments_name_verify_md5()
Verify attachment
Verify that the attachment is not corrupted, by validating its MD5 hash
Orthanc$post_patients_id_attachments_name_verify_md5(id, name)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
On success, a valid JSON object is returned.
get_patients_id_instances()
Get child instances
Get detailed information about the child instances of the DICOM patient whose Orthanc identifier is provided in the URL
Orthanc$get_patients_id_instances(id, params = NULL)
id(character) Orthanc identifier of the patient of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If false or missing, only retrieve the list of child instances
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
List containing information about the child DICOM instances.
get_patients_id_instances_tags()
Get tags of instances
Get the tags of all the child instances of the DICOM patient whose Orthanc identifier is provided in the URL
Orthanc$get_patients_id_instances_tags(id, params = NULL)
id(character) Orthanc identifier of the patient of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
ignore-length (array): Also include the DICOM tags that are provided in this list, even if their associated value is long
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
JSON object associating the Orthanc identifiers of the instances, with the values of their DICOM tags.
get_patients_id_labels()
List labels
Get the labels that are associated with the given patient (new in Orthanc 1.12.0)
Orthanc$get_patients_id_labels(id)
id(character) Orthanc identifier of the patient of interest.
List containing the names of the labels.
delete_patients_id_labels_label()
Remove label
Remove a label associated with a patient
Orthanc$delete_patients_id_labels_label(id, label)
id(character) Orthanc identifier of the patient of interest.
label(character) The label to be removed.
Nothing, invisibly.
get_patients_id_labels_label()
Test label
Test whether the patient is associated with the given label
Orthanc$get_patients_id_labels_label(id, label)
id(character) Orthanc identifier of the patient of interest.
label(character) The label of interest.
Empty string is returned in the case of presence, error 404 in the case of absence.
put_patients_id_labels_label()
Add label
Associate a label with a patient
Orthanc$put_patients_id_labels_label(id, label)
id(character) Orthanc identifier of the patient of interest.
label(character) The label to be added.
Nothing, invisibly.
get_patients_id_media()
Create DICOMDIR media
Synchronously create a DICOMDIR media containing the DICOM
patient whose Orthanc identifier is provided in the URL. This
flavor is synchronous, which might not be desirable to archive
large amount of data, as it might lead to network timeouts.
Prefer the asynchronous version using POST method.
Orthanc$get_patients_id_media(id, params = NULL)
id(character) Orthanc identifier of the patient of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
extended (string): If present, will include additional
tags such as SeriesDescription, leading to a so-called
extended DICOMDIR
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
lossy-quality (number): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
transcode (string): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
ZIP file containing the archive.
post_patients_id_media()
Create DICOMDIR media
Create a DICOMDIR media containing the DICOM patient whose Orthanc identifier is provided in the URL
Orthanc$post_patients_id_media(id, json = NULL)
id(character) Orthanc identifier of the patient of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, create the archive in
asynchronous mode, which means that a job is submitted to
create the archive in background.
Extended (logical): If TRUE, will include additional
tags such as SeriesDescription, leading to a so-called
extended DICOMDIR. Default value is FALSE.
Filename (character): Filename to set in the "Content-Disposition" HTTP header (including file extension)
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Priority (numeric): In asynchronous mode, the priority of the job. The higher the value, the higher the priority.
Synchronous (logical): If TRUE, create the archive
in synchronous mode, which means that the HTTP answer
will directly contain the ZIP file. This is the default,
easy behavior. However, if global configuration option
"SynchronousZipStream" is set to "false", asynchronous
transfers should be preferred for large amount of data, as
the creation of the temporary file might lead to network
timeouts.
Transcode (character): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): In asynchronous mode, user data that will be attached to the job.
In asynchronous mode, information about the job that has been submitted to generate the archive: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs.
get_patients_id_metadata()
List metadata
Get the list of metadata that are associated with the given patient
Orthanc$get_patients_id_metadata(id, params = NULL)
id(character) Orthanc identifier of the patient of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, also retrieve the value of the individual metadata
numeric (string): If present, use the numeric identifier of the metadata instead of its symbolic name
List containing the names of the available
metadata, or List mapping metadata to their
values (if expand argument is provided).
delete_patients_id_metadata_name()
Delete metadata
Delete some metadata associated with the given DICOM patient. This call will fail if trying to delete a system metadata (i.e. whose index is < 1024).
Orthanc$delete_patients_id_metadata_name(id, name, headers = NULL)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-Match (string): Revision of the metadata, to check if its
content has not changed and can be deleted. This header is
mandatory if CheckRevisions option is TRUE.
Nothing, invisibly.
get_patients_id_metadata_name()
Get metadata
Get the value of a metadata that is associated with the given patient
Orthanc$get_patients_id_metadata_name(id, name, headers = NULL)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the metadata, to check if its content has changed
Value of the metadata.
put_patients_id_metadata_name()
Set metadata
Set the value of some metadata in the given DICOM patient. This call will fail if trying to modify a system metadata (i.e. whose index is < 1024).
Orthanc$put_patients_id_metadata_name(id, name, headers = NULL, data = NULL)
id(character) Orthanc identifier of the patient of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body: String value of the metadata (text/plain).
Optional headers (headers):
If-Match (string): Revision of the metadata, if this is not the first time this metadata is set.
Nothing, invisibly.
post_patients_id_modify()
Modify patient
Start a job that will modify all the DICOM instances within the patient whose identifier is provided in the URL. The modified DICOM instances will be stored into a brand new patient, whose Orthanc identifiers will be returned by the job. https://orthanc.uclouvain.be/book/users/anonymization.html#modification-of-studies-or-series
Orthanc$post_patients_id_modify(id, json = NULL)
id(character) Orthanc identifier of the patient of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
Force (logical): Allow the modification of tags related to DICOM identifiers, at the risk of breaking the DICOM model of the real world
Keep (list): Keep the original value of the specified
tags, to be chosen among the StudyInstanceUID,
SeriesInstanceUID and SOPInstanceUID tags. Avoid this
feature as much as possible, as this breaks the DICOM model
of the real world.
KeepSource (logical): If set to FALSE, instructs Orthanc
to the remove original resources. By default, the original
resources are kept in Orthanc.
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
PrivateCreator (character): The private creator to be used
for private tags in Replace
Remove (list): List of tags that must be removed from the
DICOM instances. Starting with Orthanc 1.9.4, paths to
subsequences can be provided using the same syntax as the
dcmodify command-line tool (wildcards are supported as
well).
RemovePrivateTags (logical): Remove the private tags from
the DICOM instances (defaults to FALSE)
Replace (list): Associative array to change the value
of some DICOM tags in the DICOM instances. Starting with
Orthanc 1.9.4, paths to subsequences can be provided
using the same syntax as the dcmodify command-line tool
(wildcards are supported as well).
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
Transcode (character): Transcode the DICOM instances to the provided DICOM transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): User data that will travel along with the job.
Nothing, invisibly.
get_patients_id_module()
Get patient module
Get the patient module of the DICOM patient whose Orthanc identifier is provided in the URL
Orthanc$get_patients_id_module(id, params = NULL)
id(character) Orthanc identifier of the patient of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
ignore-length (array): Also include the DICOM tags that are provided in this list, even if their associated value is long
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
Information about the DICOM patient.
get_patients_id_protected()
Is the patient protected against recycling?
Is the patient protected against recycling?
Orthanc$get_patients_id_protected(id)
id(character) Orthanc identifier of the patient of interest.
1 if protected, 0 if not protected.
put_patients_id_protected()
Protect/Unprotect a patient against recycling
Protects a patient by sending 1 or TRUE in the
payload request. Unprotects a patient by sending
0 or FALSE in the payload requests. More info:
https://orthanc.uclouvain.be/book/faq/features.html#recycling-protection
Orthanc$put_patients_id_protected(id, json)
id(character) Orthanc identifier of the patient of interest.
json(list) List for request body.
Nothing, invisibly.
post_patients_id_reconstruct()
Reconstruct tags & optionally files of patient
Reconstruct the main DICOM tags in DB of the patient whose Orthanc identifier is provided in the URL. This is useful if child studies/series/instances have inconsistent values for higher-level tags, in order to force Orthanc to use the value from the resource of interest. Beware that this is a time-consuming operation, as all the children DICOM instances will be parsed again, and the Orthanc index will be updated accordingly.
Orthanc$post_patients_id_reconstruct(id, json = NULL)
id(character) Orthanc identifier of the patient of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
LimitToThisLevelMainDicomTags (logical): Only reconstruct this level MainDicomTags by re-reading them from a random child instance of the resource. This option is much faster than a full reconstruct and is useful e.g. if you have modified the 'ExtraMainDicomTags' at the Study level to optimize the speed of some C-Find. 'false' by default. (New in Orthanc 1.12.4)
ReconstructFiles (logical): Also reconstruct the files of the resources (e.g: apply IngestTranscoding, StorageCompression). 'false' by default. (New in Orthanc 1.11.0)
Nothing, invisibly.
get_patients_id_series()
Get child series
Get detailed information about the child series of the DICOM patient whose Orthanc identifier is provided in the URL
Orthanc$get_patients_id_series(id, params = NULL)
id(character) Orthanc identifier of the patient of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If false or missing, only retrieve the list of child series
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
List containing information about the child DICOM series.
get_patients_id_shared_tags()
Get shared tags
Extract the DICOM tags whose value is constant across all the child instances of the DICOM patient whose Orthanc identifier is provided in the URL
Orthanc$get_patients_id_shared_tags(id, params = NULL)
id(character) Orthanc identifier of the patient of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
JSON object containing the values of the DICOM tags.
get_patients_id_statistics()
Get patient statistics
Get statistics about the given patient
Orthanc$get_patients_id_statistics(id)
id(character) Orthanc identifier of the patient of interest.
Nothing, invisibly.
get_patients_id_studies()
Get child studies
Get detailed information about the child studies of the DICOM patient whose Orthanc identifier is provided in the URL
Orthanc$get_patients_id_studies(id, params = NULL)
id(character) Orthanc identifier of the patient of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If false or missing, only retrieve the list of child studies
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
List containing information about the child DICOM studies.
get_peers()
List Orthanc peers
List all the Orthanc peers that are known to Orthanc. This
corresponds either to the content of the OrthancPeers
configuration option, or to the information stored in the
database if OrthancPeersInDatabase is TRUE.
Orthanc$get_peers(params = NULL)
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, retrieve detailed information about the individual Orthanc peers
List containing either the identifiers of the
peers, or detailed information about the peers (if expand
argument is provided).
delete_peers_id()
Delete Orthanc peer
Delete one Orthanc peer. This change is permanent iff.
OrthancPeersInDatabase is TRUE, otherwise it is lost at the
next restart of Orthanc.
Orthanc$delete_peers_id(id)
id(character) Identifier of the Orthanc peer of interest.
Nothing, invisibly.
get_peers_id()
List operations on peer
List the operations that are available for an Orthanc peer.
Orthanc$get_peers_id(id)
id(character) Identifier of the peer of interest.
List of the available operations.
put_peers_id()
Update Orthanc peer
Define a new Orthanc peer, or update an existing one. This change
is permanent iff. OrthancPeersInDatabase is TRUE, otherwise
it is lost at the next restart of Orthanc.
Orthanc$put_peers_id(id, json = NULL)
id(character) Identifier of the new/updated Orthanc peer.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
CertificateFile (character): SSL certificate for the HTTPS connections
CertificateKeyFile (character): Key file for the SSL certificate for the HTTPS connections
CertificateKeyPassword (character): Key password for the SSL certificate for the HTTPS connections
HttpHeaders (list): HTTP headers to be used for the connections to the remote peer
Password (character): Password for the credentials
URL (character): URL of the root of the REST API of the
remote Orthanc peer, for instance http://localhost:8042/
Username (character): Username for the credentials
Nothing, invisibly.
get_peers_id_configuration()
Get peer configuration
Get detailed information about the configuration of some Orthanc peer
Orthanc$get_peers_id_configuration(id)
id(character) Identifier of the peer of interest.
Configuration of the peer.
post_peers_id_store()
Send to Orthanc peer
Send DICOM resources stored locally to some remote Orthanc peer whose identifier is provided in the URL: https://orthanc.uclouvain.be/book/users/rest.html#sending-one-resource
Orthanc$post_peers_id_store(id, json = NULL, data = NULL)
id(character) Identifier of the modality of interest.
json(list) Named-list for request body. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
Compress (logical): Whether to compress the DICOM instances using gzip before the actual sending
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
Resources (list): List of the Orthanc identifiers of all the DICOM resources to be sent
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
Transcode (character): Transcode to the provided DICOM transfer syntax before the actual sending
UserData (list): User data that will travel along with the job. Request body: The Orthanc identifier of one resource to be sent (text/plain).
Nothing, invisibly.
post_peers_id_store_straight()
Straight store to peer
Synchronously send the DICOM instance in the POST body to the
Orthanc peer whose identifier is provided in URL, without having
to first store it locally within Orthanc. This is an alternative
to command-line tools such as curl.
Orthanc$post_peers_id_store_straight(id, file = NULL)
id(character) Identifier of the modality of interest.
file(character) Path to file for request body. See Details.
Request body: DICOM instance to be sent (application/dicom).
Nothing, invisibly.
get_peers_id_system()
Get peer system information
Get system information about some Orthanc peer. This corresponds
to doing a GET request against the /system URI of the remote
peer. This route can be used to test connectivity.
Orthanc$get_peers_id_system(id)
id(character) Identifier of the peer of interest.
System information about the peer.
get_plugins()
List plugins
List all the installed plugins
Orthanc$get_plugins()
List containing the identifiers of the installed plugins.
get_plugins_explorer.js()
JavaScript extensions to Orthanc Explorer
Get the JavaScript extensions that are installed by all the
plugins using the OrthancPluginExtendOrthancExplorer() function
of the plugin SDK. This route is for internal use of Orthanc
Explorer.
Orthanc$get_plugins_explorer.js()
The JavaScript extensions.
get_plugins_id()
Get plugin
Get system information about the plugin whose identifier is provided in the URL
Orthanc$get_plugins_id(id)
id(character) Identifier of the job of interest.
JSON object containing information about the plugin.
get_queries()
List query/retrieve operations
List the identifiers of all the query/retrieve
operations on DICOM modalities, as initiated by calls to
/modalities/{id}/query. The length of this list is bounded
by the QueryRetrieveSize configuration option of Orthanc.
https://orthanc.uclouvain.be/book/users/rest.html#performing-query-retrieve-c-find-and-find-with-rest
Orthanc$get_queries()
List containing the identifiers.
delete_queries_id()
Delete a query
Delete the query/retrieve operation whose identifier is provided in the URL
Orthanc$delete_queries_id(id)
id(character) Identifier of the query of interest.
Nothing, invisibly.
get_queries_id()
List operations on a query
List the available operations for the query/retrieve operation whose identifier is provided in the URL
Orthanc$get_queries_id(id)
id(character) Identifier of the query of interest.
List containing the list of operations.
get_queries_id_answers()
List answers to a query
List the indices of all the available answers resulting from a query/retrieve operation on some DICOM modality, whose identifier is provided in the URL
Orthanc$get_queries_id_answers(id, params = NULL)
id(character) Identifier of the query of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, retrieve detailed information about the individual answers
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
List containing the indices of the answers, or
detailed information about the reported answers (if expand
argument is provided).
get_queries_id_answers_index()
List operations on an answer
List the available operations on an answer associated with the query/retrieve operation whose identifier is provided in the URL
Orthanc$get_queries_id_answers_index(id, index)
id(character) Identifier of the query of interest.
index(character) Index of the answer.
List containing the list of operations.
get_queries_id_answers_index_content()
Get one answer
Get the content (DICOM tags) of one answer associated with the query/retrieve operation whose identifier is provided in the URL
Orthanc$get_queries_id_answers_index_content(id, index, params = NULL)
id(character) Identifier of the query of interest.
index(character) Index of the answer.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
JSON object containing the DICOM tags of the answer.
post_queries_id_answers_index_query_instances()
Query the child instances of an answer
Issue a second DICOM C-FIND operation, in order to query the child instances associated with one answer to some query/retrieve operation whose identifiers are provided in the URL
Orthanc$post_queries_id_answers_index_query_instances(id, index, json = NULL)
id(character) Identifier of the query of interest.
index(character) Index of the answer.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Query (list): Associative array containing the filter on the values of the DICOM tags
Timeout (numeric): Timeout for the C-FIND command, in seconds (new in Orthanc 1.9.1)
Nothing, invisibly.
post_queries_id_answers_index_query_series()
Query the child series of an answer
Issue a second DICOM C-FIND operation, in order to query the child series associated with one answer to some query/retrieve operation whose identifiers are provided in the URL
Orthanc$post_queries_id_answers_index_query_series(id, index, json = NULL)
id(character) Identifier of the query of interest.
index(character) Index of the answer.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Query (list): Associative array containing the filter on the values of the DICOM tags
Timeout (numeric): Timeout for the C-FIND command, in seconds (new in Orthanc 1.9.1)
Nothing, invisibly.
post_queries_id_answers_index_query_studies()
Query the child studies of an answer
Issue a second DICOM C-FIND operation, in order to query the child studies associated with one answer to some query/retrieve operation whose identifiers are provided in the URL
Orthanc$post_queries_id_answers_index_query_studies(id, index, json = NULL)
id(character) Identifier of the query of interest.
index(character) Index of the answer.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Query (list): Associative array containing the filter on the values of the DICOM tags
Timeout (numeric): Timeout for the C-FIND command, in seconds (new in Orthanc 1.9.1)
Nothing, invisibly.
post_queries_id_answers_index_retrieve()
Retrieve one answer with a C-MOVE or a C-GET SCU
Start a C-MOVE or a C-GET SCU command as a job, in order to retrieve one answer associated with the query/retrieve operation whose identifiers are provided in the URL: https://orthanc.uclouvain.be/book/users/rest.html#performing-retrieve-c-move
Orthanc$post_queries_id_answers_index_retrieve( id, index, json = NULL, data = NULL )
id(character) Identifier of the query of interest.
index(character) Index of the answer.
json(list) Named-list for request body. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
Full (logical): If set to TRUE, report the DICOM tags
in full format (tags indexed by their hexadecimal format,
associated with their symbolic name and their value)
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
RetrieveMethod (character): Force usage of C-MOVE or C-GET to retrieve the resource. If note defined in the payload, the retrieve method is defined in the DicomDefaultRetrieveMethod configuration or in DicomModalities->..->RetrieveMethod
Simplify (logical): If set to TRUE, report the DICOM tags
in human-readable format (using the symbolic name of the
tags)
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
TargetAet (character): AET of the target modality. By
default, the AET of Orthanc is used, as defined in the
DicomAet configuration option.
Timeout (numeric): Timeout for the C-MOVE command, in seconds
UserData (list): User data that will travel along with the job. Request body: AET of the target modality (text/plain).
Nothing, invisibly.
get_queries_id_level()
Get level of original query
Get the query level (value of the QueryRetrieveLevel tag) of
the query/retrieve operation whose identifier is provided in the
URL
Orthanc$get_queries_id_level(id)
id(character) Identifier of the query of interest.
The level.
get_queries_id_modality()
Get modality of original query
Get the identifier of the DICOM modality that was targeted by the query/retrieve operation whose identifier is provided in the URL
Orthanc$get_queries_id_modality(id)
id(character) Identifier of the query of interest.
The identifier of the DICOM modality.
get_queries_id_query()
Get original query arguments
Get the original DICOM filter associated with the query/retrieve operation whose identifier is provided in the URL
Orthanc$get_queries_id_query(id, params = NULL)
id(character) Identifier of the query of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
Content of the original query.
post_queries_id_retrieve()
Retrieve all answers with C-MOVE SCU
Start a C-MOVE SCU command as a job, in order to retrieve all the answers associated with the query/retrieve operation whose identifier is provided in the URL: https://orthanc.uclouvain.be/book/users/rest.html#performing-retrieve-c-move
Orthanc$post_queries_id_retrieve(id, json = NULL, data = NULL)
id(character) Identifier of the query of interest.
json(list) Named-list for request body. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
Full (logical): If set to TRUE, report the DICOM tags
in full format (tags indexed by their hexadecimal format,
associated with their symbolic name and their value)
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
RetrieveMethod (character): Force usage of C-MOVE or C-GET to retrieve the resource. If note defined in the payload, the retrieve method is defined in the DicomDefaultRetrieveMethod configuration or in DicomModalities->..->RetrieveMethod
Simplify (logical): If set to TRUE, report the DICOM tags
in human-readable format (using the symbolic name of the
tags)
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
TargetAet (character): AET of the target modality. By
default, the AET of Orthanc is used, as defined in the
DicomAet configuration option.
Timeout (numeric): Timeout for the C-MOVE command, in seconds
UserData (list): User data that will travel along with the job. Request body: AET of the target modality (text/plain).
Nothing, invisibly.
get_series()
List the available series
List the Orthanc identifiers of all the available DICOM series
Orthanc$get_series(params = NULL)
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, retrieve detailed information about the individual resources, not only their Orthanc identifiers
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
limit (number): Limit the number of results
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
response-content (string): Defines the content of
response for each returned resource. Allowed values are
MainDicomTags, Metadata, Children, Parent, Labels,
Status, IsStable, IsProtected, Attachments. If not
specified, Orthanc will return MainDicomTags, Metadata,
Children, Parent, Labels, Status, IsStable,
IsProtected.e.g: 'response-content=MainDicomTags;Children
(new in Orthanc 1.12.5 - overrides expand)
short (boolean): If present, report the DICOM tags in hexadecimal format
since (number): Show only the resources since the provided index
List containing either the Orthanc identifiers,
or detailed information about the reported series (if expand
argument is provided).
delete_series_id()
Delete some series
Delete the DICOM series whose Orthanc identifier is provided in the URL
Orthanc$delete_series_id(id)
id(character) Orthanc identifier of the series of interest.
Nothing, invisibly.
get_series_id()
Get information about some series
Get detailed information about the DICOM series whose Orthanc identifier is provided in the URL
Orthanc$get_series_id(id, params = NULL)
id(character) Orthanc identifier of the series of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
Information about the DICOM series.
post_series_id_anonymize()
Anonymize series
Start a job that will anonymize all the DICOM instances within the series whose identifier is provided in the URL. The modified DICOM instances will be stored into a brand new series, whose Orthanc identifiers will be returned by the job. https://orthanc.uclouvain.be/book/users/anonymization.html#anonymization-of-patients-studies-or-series
Orthanc$post_series_id_anonymize(id, json = NULL)
id(character) Orthanc identifier of the series of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
DicomVersion (character): Version of the DICOM standard to
be used for anonymization. Check out configuration option
DeidentifyLogsDicomVersion for possible values.
Force (logical): Allow the modification of tags related to DICOM identifiers, at the risk of breaking the DICOM model of the real world
Keep (list): List of DICOM tags whose value must not be
destroyed by the anonymization. Starting with Orthanc 1.9.4,
paths to subsequences can be provided using the same syntax
as the dcmodify command-line tool (wildcards are supported
as well).
KeepLabels (logical): Keep the labels of all resources level
(defaults to FALSE)
KeepPrivateTags (logical): Keep the private tags from the
DICOM instances (defaults to FALSE)
KeepSource (logical): If set to FALSE, instructs Orthanc
to the remove original resources. By default, the original
resources are kept in Orthanc.
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
PrivateCreator (character): The private creator to be used
for private tags in Replace
Remove (list): List of additional tags to be removed from
the DICOM instances. Starting with Orthanc 1.9.4, paths to
subsequences can be provided using the same syntax as the
dcmodify command-line tool (wildcards are supported as
well).
Replace (list): Associative array to change the value
of some DICOM tags in the DICOM instances. Starting with
Orthanc 1.9.4, paths to subsequences can be provided
using the same syntax as the dcmodify command-line tool
(wildcards are supported as well).
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
Transcode (character): Transcode the DICOM instances to the provided DICOM transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): User data that will travel along with the job.
Nothing, invisibly.
get_series_id_archive()
Create ZIP archive
Synchronously create a ZIP archive containing the DICOM series
whose Orthanc identifier is provided in the URL. This flavor
is synchronous, which might not be desirable to archive large
amount of data, as it might lead to network timeouts. Prefer the
asynchronous version using POST method.
Orthanc$get_series_id_archive(id, params = NULL)
id(character) Orthanc identifier of the series of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
lossy-quality (number): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
transcode (string): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
ZIP file containing the archive.
post_series_id_archive()
Create ZIP archive
Create a ZIP archive containing the DICOM series whose Orthanc identifier is provided in the URL
Orthanc$post_series_id_archive(id, json = NULL)
id(character) Orthanc identifier of the series of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, create the archive in
asynchronous mode, which means that a job is submitted to
create the archive in background.
Filename (character): Filename to set in the "Content-Disposition" HTTP header (including file extension)
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Priority (numeric): In asynchronous mode, the priority of the job. The higher the value, the higher the priority.
Synchronous (logical): If TRUE, create the archive
in synchronous mode, which means that the HTTP answer
will directly contain the ZIP file. This is the default,
easy behavior. However, if global configuration option
"SynchronousZipStream" is set to "false", asynchronous
transfers should be preferred for large amount of data, as
the creation of the temporary file might lead to network
timeouts.
Transcode (character): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): In asynchronous mode, user data that will be attached to the job.
In asynchronous mode, information about the job that has been submitted to generate the archive: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs.
get_series_id_attachments()
List attachments
Get the list of attachments that are associated with the given series
Orthanc$get_series_id_attachments(id, params = NULL)
id(character) Orthanc identifier of the series of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (string): If present, retrieve the attachments list and their numerical ids
List containing the names of the attachments.
delete_series_id_attachments_name()
Delete attachment
Delete an attachment associated with the given DICOM series. This call will fail if trying to delete a system attachment (i.e. whose index is < 1024).
Orthanc$delete_series_id_attachments_name(id, name, headers = NULL)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-Match (string): Revision of the attachment, to check if
its content has not changed and can be deleted. This header
is mandatory if CheckRevisions option is TRUE.
Nothing, invisibly.
get_series_id_attachments_name()
List operations on attachments
Get the list of the operations that are available for attachments associated with the given series
Orthanc$get_series_id_attachments_name(id, name, headers = NULL)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
List of the available operations.
put_series_id_attachments_name()
Set attachment
Attach a file to the given DICOM series. This call will fail if trying to modify a system attachment (i.e. whose index is < 1024).
Orthanc$put_series_id_attachments_name(id, name, headers = NULL, data = NULL)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body: Binary data containing the attachment (application/octet-stream).
Optional headers (headers):
If-Match (string): Revision of the attachment, if this is not the first time this attachment is set.
Empty JSON object in the case of a success.
post_series_id_attachments_name_compress()
Compress attachment
Change the compression scheme that is used to store an attachment.
Orthanc$post_series_id_attachments_name_compress(id, name)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
Nothing, invisibly.
get_series_id_attachments_name_compressed_data()
Get attachment (no decompression)
Get the (binary) content of one attachment associated with
the given series. The attachment will not be decompressed if
StorageCompression is TRUE.
Orthanc$get_series_id_attachments_name_compressed_data( id, name, params = NULL, headers = NULL )
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Content-Range (string): Optional content range to access part of the attachment (new in Orthanc 1.12.5)
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
The attachment.
get_series_id_attachments_name_compressed_md5()
Get MD5 of attachment on disk
Get the MD5 hash of one attachment associated with the given
series, as stored on the disk. This is different from .../md5
iff EnableStorage is TRUE.
Orthanc$get_series_id_attachments_name_compressed_md5(id, name, headers = NULL)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The MD5 of the attachment, as stored on the disk.
get_series_id_attachments_name_compressed_size()
Get size of attachment on disk
Get the size of one attachment associated with the given series,
as stored on the disk. This is different from .../size iff
EnableStorage is TRUE.
Orthanc$get_series_id_attachments_name_compressed_size( id, name, headers = NULL )
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The size of the attachment, as stored on the disk.
get_series_id_attachments_name_data()
Get attachment
Get the (binary) content of one attachment associated with the given series
Orthanc$get_series_id_attachments_name_data( id, name, params = NULL, headers = NULL )
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Content-Range (string): Optional content range to access part of the attachment (new in Orthanc 1.12.5)
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
The attachment.
get_series_id_attachments_name_info()
Get info about the attachment
Get all the information about the attachment associated with the given series
Orthanc$get_series_id_attachments_name_info(id, name, headers = NULL)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
JSON object containing the information about the attachment.
get_series_id_attachments_name_is_compressed()
Is attachment compressed?
Test whether the attachment has been stored as a compressed file on the disk.
Orthanc$get_series_id_attachments_name_is_compressed(id, name, headers = NULL)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
0 if the attachment was stored uncompressed, 1 if it
was compressed.
get_series_id_attachments_name_md5()
Get MD5 of attachment
Get the MD5 hash of one attachment associated with the given series
Orthanc$get_series_id_attachments_name_md5(id, name, headers = NULL)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The MD5 of the attachment.
get_series_id_attachments_name_size()
Get size of attachment
Get the size of one attachment associated with the given series
Orthanc$get_series_id_attachments_name_size(id, name, headers = NULL)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The size of the attachment.
post_series_id_attachments_name_uncompress()
Uncompress attachment
Change the compression scheme that is used to store an attachment.
Orthanc$post_series_id_attachments_name_uncompress(id, name)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
Nothing, invisibly.
post_series_id_attachments_name_verify_md5()
Verify attachment
Verify that the attachment is not corrupted, by validating its MD5 hash
Orthanc$post_series_id_attachments_name_verify_md5(id, name)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
On success, a valid JSON object is returned.
get_series_id_instances()
Get child instances
Get detailed information about the child instances of the DICOM series whose Orthanc identifier is provided in the URL
Orthanc$get_series_id_instances(id, params = NULL)
id(character) Orthanc identifier of the series of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If false or missing, only retrieve the list of child instances
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
List containing information about the child DICOM instances.
get_series_id_instances_tags()
Get tags of instances
Get the tags of all the child instances of the DICOM series whose Orthanc identifier is provided in the URL
Orthanc$get_series_id_instances_tags(id, params = NULL)
id(character) Orthanc identifier of the series of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
ignore-length (array): Also include the DICOM tags that are provided in this list, even if their associated value is long
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
JSON object associating the Orthanc identifiers of the instances, with the values of their DICOM tags.
get_series_id_labels()
List labels
Get the labels that are associated with the given series (new in Orthanc 1.12.0)
Orthanc$get_series_id_labels(id)
id(character) Orthanc identifier of the series of interest.
List containing the names of the labels.
delete_series_id_labels_label()
Remove label
Remove a label associated with a series
Orthanc$delete_series_id_labels_label(id, label)
id(character) Orthanc identifier of the series of interest.
label(character) The label to be removed.
Nothing, invisibly.
get_series_id_labels_label()
Test label
Test whether the series is associated with the given label
Orthanc$get_series_id_labels_label(id, label)
id(character) Orthanc identifier of the series of interest.
label(character) The label of interest.
Empty string is returned in the case of presence, error 404 in the case of absence.
put_series_id_labels_label()
Add label
Associate a label with a series
Orthanc$put_series_id_labels_label(id, label)
id(character) Orthanc identifier of the series of interest.
label(character) The label to be added.
Nothing, invisibly.
get_series_id_media()
Create DICOMDIR media
Synchronously create a DICOMDIR media containing the DICOM series
whose Orthanc identifier is provided in the URL. This flavor
is synchronous, which might not be desirable to archive large
amount of data, as it might lead to network timeouts. Prefer the
asynchronous version using POST method.
Orthanc$get_series_id_media(id, params = NULL)
id(character) Orthanc identifier of the series of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
extended (string): If present, will include additional
tags such as SeriesDescription, leading to a so-called
extended DICOMDIR
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
lossy-quality (number): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
transcode (string): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
ZIP file containing the archive.
post_series_id_media()
Create DICOMDIR media
Create a DICOMDIR media containing the DICOM series whose Orthanc identifier is provided in the URL
Orthanc$post_series_id_media(id, json = NULL)
id(character) Orthanc identifier of the series of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, create the archive in
asynchronous mode, which means that a job is submitted to
create the archive in background.
Extended (logical): If TRUE, will include additional
tags such as SeriesDescription, leading to a so-called
extended DICOMDIR. Default value is FALSE.
Filename (character): Filename to set in the "Content-Disposition" HTTP header (including file extension)
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Priority (numeric): In asynchronous mode, the priority of the job. The higher the value, the higher the priority.
Synchronous (logical): If TRUE, create the archive
in synchronous mode, which means that the HTTP answer
will directly contain the ZIP file. This is the default,
easy behavior. However, if global configuration option
"SynchronousZipStream" is set to "false", asynchronous
transfers should be preferred for large amount of data, as
the creation of the temporary file might lead to network
timeouts.
Transcode (character): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): In asynchronous mode, user data that will be attached to the job.
In asynchronous mode, information about the job that has been submitted to generate the archive: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs.
get_series_id_metadata()
List metadata
Get the list of metadata that are associated with the given series
Orthanc$get_series_id_metadata(id, params = NULL)
id(character) Orthanc identifier of the series of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, also retrieve the value of the individual metadata
numeric (string): If present, use the numeric identifier of the metadata instead of its symbolic name
List containing the names of the available
metadata, or List mapping metadata to their
values (if expand argument is provided).
delete_series_id_metadata_name()
Delete metadata
Delete some metadata associated with the given DICOM series. This call will fail if trying to delete a system metadata (i.e. whose index is < 1024).
Orthanc$delete_series_id_metadata_name(id, name, headers = NULL)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-Match (string): Revision of the metadata, to check if its
content has not changed and can be deleted. This header is
mandatory if CheckRevisions option is TRUE.
Nothing, invisibly.
get_series_id_metadata_name()
Get metadata
Get the value of a metadata that is associated with the given series
Orthanc$get_series_id_metadata_name(id, name, headers = NULL)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the metadata, to check if its content has changed
Value of the metadata.
put_series_id_metadata_name()
Set metadata
Set the value of some metadata in the given DICOM series. This call will fail if trying to modify a system metadata (i.e. whose index is < 1024).
Orthanc$put_series_id_metadata_name(id, name, headers = NULL, data = NULL)
id(character) Orthanc identifier of the series of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body: String value of the metadata (text/plain).
Optional headers (headers):
If-Match (string): Revision of the metadata, if this is not the first time this metadata is set.
Nothing, invisibly.
post_series_id_modify()
Modify series
Start a job that will modify all the DICOM instances within the series whose identifier is provided in the URL. The modified DICOM instances will be stored into a brand new series, whose Orthanc identifiers will be returned by the job. https://orthanc.uclouvain.be/book/users/anonymization.html#modification-of-studies-or-series
Orthanc$post_series_id_modify(id, json = NULL)
id(character) Orthanc identifier of the series of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
Force (logical): Allow the modification of tags related to DICOM identifiers, at the risk of breaking the DICOM model of the real world
Keep (list): Keep the original value of the specified
tags, to be chosen among the StudyInstanceUID,
SeriesInstanceUID and SOPInstanceUID tags. Avoid this
feature as much as possible, as this breaks the DICOM model
of the real world.
KeepSource (logical): If set to FALSE, instructs Orthanc
to the remove original resources. By default, the original
resources are kept in Orthanc.
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
PrivateCreator (character): The private creator to be used
for private tags in Replace
Remove (list): List of tags that must be removed from the
DICOM instances. Starting with Orthanc 1.9.4, paths to
subsequences can be provided using the same syntax as the
dcmodify command-line tool (wildcards are supported as
well).
RemovePrivateTags (logical): Remove the private tags from
the DICOM instances (defaults to FALSE)
Replace (list): Associative array to change the value
of some DICOM tags in the DICOM instances. Starting with
Orthanc 1.9.4, paths to subsequences can be provided
using the same syntax as the dcmodify command-line tool
(wildcards are supported as well).
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
Transcode (character): Transcode the DICOM instances to the provided DICOM transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): User data that will travel along with the job.
Nothing, invisibly.
get_series_id_module()
Get series module
Get the series module of the DICOM series whose Orthanc identifier is provided in the URL
Orthanc$get_series_id_module(id, params = NULL)
id(character) Orthanc identifier of the series of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
ignore-length (array): Also include the DICOM tags that are provided in this list, even if their associated value is long
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
Information about the DICOM series.
get_series_id_numpy()
Decode series for numpy
Decode the given DICOM series, for use with numpy in Python. The numpy array has 4 dimensions: (frame, height, width, color channel).
Orthanc$get_series_id_numpy(id, params = NULL)
id(character) Orthanc identifier of the DICOM resource of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
compress (boolean): Compress the file as .npz
rescale (boolean): On grayscale images, apply the rescaling and return floating-point values
Numpy file: https://numpy.org/devdocs/reference/generated/numpy.lib.format.html.
get_series_id_patient()
Get parent patient
Get detailed information about the parent patient of the DICOM series whose Orthanc identifier is provided in the URL
Orthanc$get_series_id_patient(id, params = NULL)
id(character) Orthanc identifier of the series of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
Information about the parent DICOM patient.
post_series_id_reconstruct()
Reconstruct tags & optionally files of series
Reconstruct the main DICOM tags in DB of the series whose Orthanc identifier is provided in the URL. This is useful if child studies/series/instances have inconsistent values for higher-level tags, in order to force Orthanc to use the value from the resource of interest. Beware that this is a time-consuming operation, as all the children DICOM instances will be parsed again, and the Orthanc index will be updated accordingly.
Orthanc$post_series_id_reconstruct(id, json = NULL)
id(character) Orthanc identifier of the series of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
LimitToThisLevelMainDicomTags (logical): Only reconstruct this level MainDicomTags by re-reading them from a random child instance of the resource. This option is much faster than a full reconstruct and is useful e.g. if you have modified the 'ExtraMainDicomTags' at the Study level to optimize the speed of some C-Find. 'false' by default. (New in Orthanc 1.12.4)
ReconstructFiles (logical): Also reconstruct the files of the resources (e.g: apply IngestTranscoding, StorageCompression). 'false' by default. (New in Orthanc 1.11.0)
Nothing, invisibly.
get_series_id_shared_tags()
Get shared tags
Extract the DICOM tags whose value is constant across all the child instances of the DICOM series whose Orthanc identifier is provided in the URL
Orthanc$get_series_id_shared_tags(id, params = NULL)
id(character) Orthanc identifier of the series of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
JSON object containing the values of the DICOM tags.
get_series_id_statistics()
Get series statistics
Get statistics about the given series
Orthanc$get_series_id_statistics(id)
id(character) Orthanc identifier of the series of interest.
Nothing, invisibly.
get_series_id_study()
Get parent study
Get detailed information about the parent study of the DICOM series whose Orthanc identifier is provided in the URL
Orthanc$get_series_id_study(id, params = NULL)
id(character) Orthanc identifier of the series of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
Information about the parent DICOM study.
get_statistics()
Get database statistics
Get statistics related to the database of Orthanc
Orthanc$get_statistics()
Nothing, invisibly.
get_storage_commitment_id()
Get storage commitment report
Get the storage commitment report whose identifier is provided in the URL: https://orthanc.uclouvain.be/book/users/storage-commitment.html#storage-commitment-scu
Orthanc$get_storage_commitment_id(id)
id(character) Identifier of the storage commitment report.
Nothing, invisibly.
post_storage_commitment_id_remove()
Remove after storage commitment
Remove out of Orthanc, the DICOM instances that have
been reported to have been properly received in the
storage commitment report whose identifier is provided
in the URL. This is only possible if the Status
of the storage commitment report is Success.
https://orthanc.uclouvain.be/book/users/storage-commitment.html#removing-the-instances
Orthanc$post_storage_commitment_id_remove(id)
id(character) Identifier of the storage commitment report.
Nothing, invisibly.
get_studies()
List the available studies
List the Orthanc identifiers of all the available DICOM studies
Orthanc$get_studies(params = NULL)
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, retrieve detailed information about the individual resources, not only their Orthanc identifiers
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
limit (number): Limit the number of results
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
response-content (string): Defines the content of
response for each returned resource. Allowed values are
MainDicomTags, Metadata, Children, Parent, Labels,
Status, IsStable, IsProtected, Attachments. If not
specified, Orthanc will return MainDicomTags, Metadata,
Children, Parent, Labels, Status, IsStable,
IsProtected.e.g: 'response-content=MainDicomTags;Children
(new in Orthanc 1.12.5 - overrides expand)
short (boolean): If present, report the DICOM tags in hexadecimal format
since (number): Show only the resources since the provided index
List containing either the Orthanc identifiers, or
detailed information about the reported studies (if expand
argument is provided).
delete_studies_id()
Delete some study
Delete the DICOM study whose Orthanc identifier is provided in the URL
Orthanc$delete_studies_id(id)
id(character) Orthanc identifier of the study of interest.
Nothing, invisibly.
get_studies_id()
Get information about some study
Get detailed information about the DICOM study whose Orthanc identifier is provided in the URL
Orthanc$get_studies_id(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
Information about the DICOM study.
post_studies_id_anonymize()
Anonymize study
Start a job that will anonymize all the DICOM instances within the study whose identifier is provided in the URL. The modified DICOM instances will be stored into a brand new study, whose Orthanc identifiers will be returned by the job. https://orthanc.uclouvain.be/book/users/anonymization.html#anonymization-of-patients-studies-or-series
Orthanc$post_studies_id_anonymize(id, json = NULL)
id(character) Orthanc identifier of the study of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
DicomVersion (character): Version of the DICOM standard to
be used for anonymization. Check out configuration option
DeidentifyLogsDicomVersion for possible values.
Force (logical): Allow the modification of tags related to DICOM identifiers, at the risk of breaking the DICOM model of the real world
Keep (list): List of DICOM tags whose value must not be
destroyed by the anonymization. Starting with Orthanc 1.9.4,
paths to subsequences can be provided using the same syntax
as the dcmodify command-line tool (wildcards are supported
as well).
KeepLabels (logical): Keep the labels of all resources level
(defaults to FALSE)
KeepPrivateTags (logical): Keep the private tags from the
DICOM instances (defaults to FALSE)
KeepSource (logical): If set to FALSE, instructs Orthanc
to the remove original resources. By default, the original
resources are kept in Orthanc.
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
PrivateCreator (character): The private creator to be used
for private tags in Replace
Remove (list): List of additional tags to be removed from
the DICOM instances. Starting with Orthanc 1.9.4, paths to
subsequences can be provided using the same syntax as the
dcmodify command-line tool (wildcards are supported as
well).
Replace (list): Associative array to change the value
of some DICOM tags in the DICOM instances. Starting with
Orthanc 1.9.4, paths to subsequences can be provided
using the same syntax as the dcmodify command-line tool
(wildcards are supported as well).
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
Transcode (character): Transcode the DICOM instances to the provided DICOM transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): User data that will travel along with the job.
Nothing, invisibly.
get_studies_id_archive()
Create ZIP archive
Synchronously create a ZIP archive containing the DICOM study
whose Orthanc identifier is provided in the URL. This flavor
is synchronous, which might not be desirable to archive large
amount of data, as it might lead to network timeouts. Prefer the
asynchronous version using POST method.
Orthanc$get_studies_id_archive(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
lossy-quality (number): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
transcode (string): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
ZIP file containing the archive.
post_studies_id_archive()
Create ZIP archive
Create a ZIP archive containing the DICOM study whose Orthanc identifier is provided in the URL
Orthanc$post_studies_id_archive(id, json = NULL)
id(character) Orthanc identifier of the study of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, create the archive in
asynchronous mode, which means that a job is submitted to
create the archive in background.
Filename (character): Filename to set in the "Content-Disposition" HTTP header (including file extension)
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Priority (numeric): In asynchronous mode, the priority of the job. The higher the value, the higher the priority.
Synchronous (logical): If TRUE, create the archive
in synchronous mode, which means that the HTTP answer
will directly contain the ZIP file. This is the default,
easy behavior. However, if global configuration option
"SynchronousZipStream" is set to "false", asynchronous
transfers should be preferred for large amount of data, as
the creation of the temporary file might lead to network
timeouts.
Transcode (character): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): In asynchronous mode, user data that will be attached to the job.
In asynchronous mode, information about the job that has been submitted to generate the archive: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs.
get_studies_id_attachments()
List attachments
Get the list of attachments that are associated with the given study
Orthanc$get_studies_id_attachments(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (string): If present, retrieve the attachments list and their numerical ids
List containing the names of the attachments.
delete_studies_id_attachments_name()
Delete attachment
Delete an attachment associated with the given DICOM study. This call will fail if trying to delete a system attachment (i.e. whose index is < 1024).
Orthanc$delete_studies_id_attachments_name(id, name, headers = NULL)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-Match (string): Revision of the attachment, to check if
its content has not changed and can be deleted. This header
is mandatory if CheckRevisions option is TRUE.
Nothing, invisibly.
get_studies_id_attachments_name()
List operations on attachments
Get the list of the operations that are available for attachments associated with the given study
Orthanc$get_studies_id_attachments_name(id, name, headers = NULL)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
List of the available operations.
put_studies_id_attachments_name()
Set attachment
Attach a file to the given DICOM study. This call will fail if trying to modify a system attachment (i.e. whose index is < 1024).
Orthanc$put_studies_id_attachments_name(id, name, headers = NULL, data = NULL)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body: Binary data containing the attachment (application/octet-stream).
Optional headers (headers):
If-Match (string): Revision of the attachment, if this is not the first time this attachment is set.
Empty JSON object in the case of a success.
post_studies_id_attachments_name_compress()
Compress attachment
Change the compression scheme that is used to store an attachment.
Orthanc$post_studies_id_attachments_name_compress(id, name)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
Nothing, invisibly.
get_studies_id_attachments_name_compressed_data()
Get attachment (no decompression)
Get the (binary) content of one attachment associated with
the given study. The attachment will not be decompressed if
StorageCompression is TRUE.
Orthanc$get_studies_id_attachments_name_compressed_data( id, name, params = NULL, headers = NULL )
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Content-Range (string): Optional content range to access part of the attachment (new in Orthanc 1.12.5)
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
The attachment.
get_studies_id_attachments_name_compressed_md5()
Get MD5 of attachment on disk
Get the MD5 hash of one attachment associated with the given
study, as stored on the disk. This is different from .../md5
iff EnableStorage is TRUE.
Orthanc$get_studies_id_attachments_name_compressed_md5( id, name, headers = NULL )
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The MD5 of the attachment, as stored on the disk.
get_studies_id_attachments_name_compressed_size()
Get size of attachment on disk
Get the size of one attachment associated with the given study,
as stored on the disk. This is different from .../size iff
EnableStorage is TRUE.
Orthanc$get_studies_id_attachments_name_compressed_size( id, name, headers = NULL )
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The size of the attachment, as stored on the disk.
get_studies_id_attachments_name_data()
Get attachment
Get the (binary) content of one attachment associated with the given study
Orthanc$get_studies_id_attachments_name_data( id, name, params = NULL, headers = NULL )
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
params(list) Named-list of optional query parameters. See Details.
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
Content-Range (string): Optional content range to access part of the attachment (new in Orthanc 1.12.5)
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
The attachment.
get_studies_id_attachments_name_info()
Get info about the attachment
Get all the information about the attachment associated with the given study
Orthanc$get_studies_id_attachments_name_info(id, name, headers = NULL)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
JSON object containing the information about the attachment.
get_studies_id_attachments_name_is_compressed()
Is attachment compressed?
Test whether the attachment has been stored as a compressed file on the disk.
Orthanc$get_studies_id_attachments_name_is_compressed(id, name, headers = NULL)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
0 if the attachment was stored uncompressed, 1 if it
was compressed.
get_studies_id_attachments_name_md5()
Get MD5 of attachment
Get the MD5 hash of one attachment associated with the given study
Orthanc$get_studies_id_attachments_name_md5(id, name, headers = NULL)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The MD5 of the attachment.
get_studies_id_attachments_name_size()
Get size of attachment
Get the size of one attachment associated with the given study
Orthanc$get_studies_id_attachments_name_size(id, name, headers = NULL)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the attachment, to check if its content has changed
The size of the attachment.
post_studies_id_attachments_name_uncompress()
Uncompress attachment
Change the compression scheme that is used to store an attachment.
Orthanc$post_studies_id_attachments_name_uncompress(id, name)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
Nothing, invisibly.
post_studies_id_attachments_name_verify_md5()
Verify attachment
Verify that the attachment is not corrupted, by validating its MD5 hash
Orthanc$post_studies_id_attachments_name_verify_md5(id, name)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the attachment, or its index
(cf. UserContentType configuration option).
On success, a valid JSON object is returned.
get_studies_id_instances()
Get child instances
Get detailed information about the child instances of the DICOM study whose Orthanc identifier is provided in the URL
Orthanc$get_studies_id_instances(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If false or missing, only retrieve the list of child instances
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
List containing information about the child DICOM instances.
get_studies_id_instances_tags()
Get tags of instances
Get the tags of all the child instances of the DICOM study whose Orthanc identifier is provided in the URL
Orthanc$get_studies_id_instances_tags(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
ignore-length (array): Also include the DICOM tags that are provided in this list, even if their associated value is long
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
JSON object associating the Orthanc identifiers of the instances, with the values of their DICOM tags.
get_studies_id_labels()
List labels
Get the labels that are associated with the given study (new in Orthanc 1.12.0)
Orthanc$get_studies_id_labels(id)
id(character) Orthanc identifier of the study of interest.
List containing the names of the labels.
delete_studies_id_labels_label()
Remove label
Remove a label associated with a study
Orthanc$delete_studies_id_labels_label(id, label)
id(character) Orthanc identifier of the study of interest.
label(character) The label to be removed.
Nothing, invisibly.
get_studies_id_labels_label()
Test label
Test whether the study is associated with the given label
Orthanc$get_studies_id_labels_label(id, label)
id(character) Orthanc identifier of the study of interest.
label(character) The label of interest.
Empty string is returned in the case of presence, error 404 in the case of absence.
put_studies_id_labels_label()
Add label
Associate a label with a study
Orthanc$put_studies_id_labels_label(id, label)
id(character) Orthanc identifier of the study of interest.
label(character) The label to be added.
Nothing, invisibly.
get_studies_id_media()
Create DICOMDIR media
Synchronously create a DICOMDIR media containing the DICOM study
whose Orthanc identifier is provided in the URL. This flavor
is synchronous, which might not be desirable to archive large
amount of data, as it might lead to network timeouts. Prefer the
asynchronous version using POST method.
Orthanc$get_studies_id_media(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
extended (string): If present, will include additional
tags such as SeriesDescription, leading to a so-called
extended DICOMDIR
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
lossy-quality (number): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
transcode (string): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
ZIP file containing the archive.
post_studies_id_media()
Create DICOMDIR media
Create a DICOMDIR media containing the DICOM study whose Orthanc identifier is provided in the URL
Orthanc$post_studies_id_media(id, json = NULL)
id(character) Orthanc identifier of the study of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, create the archive in
asynchronous mode, which means that a job is submitted to
create the archive in background.
Extended (logical): If TRUE, will include additional
tags such as SeriesDescription, leading to a so-called
extended DICOMDIR. Default value is FALSE.
Filename (character): Filename to set in the "Content-Disposition" HTTP header (including file extension)
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Priority (numeric): In asynchronous mode, the priority of the job. The higher the value, the higher the priority.
Synchronous (logical): If TRUE, create the archive
in synchronous mode, which means that the HTTP answer
will directly contain the ZIP file. This is the default,
easy behavior. However, if global configuration option
"SynchronousZipStream" is set to "false", asynchronous
transfers should be preferred for large amount of data, as
the creation of the temporary file might lead to network
timeouts.
Transcode (character): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): In asynchronous mode, user data that will be attached to the job.
In asynchronous mode, information about the job that has been submitted to generate the archive: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs.
post_studies_id_merge()
Merge study
Start a new job so as to move some DICOM resources into the DICOM study whose Orthanc identifier is provided in the URL: https://orthanc.uclouvain.be/book/users/anonymization.html#merging
Orthanc$post_studies_id_merge(id, json = NULL)
id(character) Orthanc identifier of the study of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
KeepSource (logical): If set to TRUE, instructs Orthanc to
keep a copy of the original resources in their source study.
By default, the original resources are deleted from Orthanc.
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
Resources (list): The list of DICOM resources (studies, series, and/or instances) to be merged into the study of interest (mandatory option)
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
UserData (list): User data that will travel along with the job.
Nothing, invisibly.
get_studies_id_metadata()
List metadata
Get the list of metadata that are associated with the given study
Orthanc$get_studies_id_metadata(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If present, also retrieve the value of the individual metadata
numeric (string): If present, use the numeric identifier of the metadata instead of its symbolic name
List containing the names of the available
metadata, or List mapping metadata to their
values (if expand argument is provided).
delete_studies_id_metadata_name()
Delete metadata
Delete some metadata associated with the given DICOM study. This call will fail if trying to delete a system metadata (i.e. whose index is < 1024).
Orthanc$delete_studies_id_metadata_name(id, name, headers = NULL)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-Match (string): Revision of the metadata, to check if its
content has not changed and can be deleted. This header is
mandatory if CheckRevisions option is TRUE.
Nothing, invisibly.
get_studies_id_metadata_name()
Get metadata
Get the value of a metadata that is associated with the given study
Orthanc$get_studies_id_metadata_name(id, name, headers = NULL)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
Optional headers (headers):
If-None-Match (string): Optional revision of the metadata, to check if its content has changed
Value of the metadata.
put_studies_id_metadata_name()
Set metadata
Set the value of some metadata in the given DICOM study. This call will fail if trying to modify a system metadata (i.e. whose index is < 1024).
Orthanc$put_studies_id_metadata_name(id, name, headers = NULL, data = NULL)
id(character) Orthanc identifier of the study of interest.
name(character) The name of the metadata, or its index
(cf. UserMetadata configuration option).
headers(list) Named-list of optional header parameters. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body: String value of the metadata (text/plain).
Optional headers (headers):
If-Match (string): Revision of the metadata, if this is not the first time this metadata is set.
Nothing, invisibly.
post_studies_id_modify()
Modify study
Start a job that will modify all the DICOM instances within the study whose identifier is provided in the URL. The modified DICOM instances will be stored into a brand new study, whose Orthanc identifiers will be returned by the job. https://orthanc.uclouvain.be/book/users/anonymization.html#modification-of-studies-or-series
Orthanc$post_studies_id_modify(id, json = NULL)
id(character) Orthanc identifier of the study of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
Force (logical): Allow the modification of tags related to DICOM identifiers, at the risk of breaking the DICOM model of the real world
Keep (list): Keep the original value of the specified
tags, to be chosen among the StudyInstanceUID,
SeriesInstanceUID and SOPInstanceUID tags. Avoid this
feature as much as possible, as this breaks the DICOM model
of the real world.
KeepSource (logical): If set to FALSE, instructs Orthanc
to the remove original resources. By default, the original
resources are kept in Orthanc.
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
PrivateCreator (character): The private creator to be used
for private tags in Replace
Remove (list): List of tags that must be removed from the
DICOM instances. Starting with Orthanc 1.9.4, paths to
subsequences can be provided using the same syntax as the
dcmodify command-line tool (wildcards are supported as
well).
RemovePrivateTags (logical): Remove the private tags from
the DICOM instances (defaults to FALSE)
Replace (list): Associative array to change the value
of some DICOM tags in the DICOM instances. Starting with
Orthanc 1.9.4, paths to subsequences can be provided
using the same syntax as the dcmodify command-line tool
(wildcards are supported as well).
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
Transcode (character): Transcode the DICOM instances to the provided DICOM transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): User data that will travel along with the job.
Nothing, invisibly.
get_studies_id_module()
Get study module
Get the study module of the DICOM study whose Orthanc identifier is provided in the URL
Orthanc$get_studies_id_module(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
ignore-length (array): Also include the DICOM tags that are provided in this list, even if their associated value is long
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
Information about the DICOM study.
get_studies_id_module_patient()
Get patient module of study
Get the patient module of the DICOM study whose Orthanc identifier is provided in the URL
Orthanc$get_studies_id_module_patient(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
ignore-length (array): Also include the DICOM tags that are provided in this list, even if their associated value is long
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
Information about the DICOM study.
get_studies_id_patient()
Get parent patient
Get detailed information about the parent patient of the DICOM study whose Orthanc identifier is provided in the URL
Orthanc$get_studies_id_patient(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
Information about the parent DICOM patient.
post_studies_id_reconstruct()
Reconstruct tags & optionally files of study
Reconstruct the main DICOM tags in DB of the study whose Orthanc identifier is provided in the URL. This is useful if child studies/series/instances have inconsistent values for higher-level tags, in order to force Orthanc to use the value from the resource of interest. Beware that this is a time-consuming operation, as all the children DICOM instances will be parsed again, and the Orthanc index will be updated accordingly.
Orthanc$post_studies_id_reconstruct(id, json = NULL)
id(character) Orthanc identifier of the study of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
LimitToThisLevelMainDicomTags (logical): Only reconstruct this level MainDicomTags by re-reading them from a random child instance of the resource. This option is much faster than a full reconstruct and is useful e.g. if you have modified the 'ExtraMainDicomTags' at the Study level to optimize the speed of some C-Find. 'false' by default. (New in Orthanc 1.12.4)
ReconstructFiles (logical): Also reconstruct the files of the resources (e.g: apply IngestTranscoding, StorageCompression). 'false' by default. (New in Orthanc 1.11.0)
Nothing, invisibly.
get_studies_id_series()
Get child series
Get detailed information about the child series of the DICOM study whose Orthanc identifier is provided in the URL
Orthanc$get_studies_id_series(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
expand (string): If false or missing, only retrieve the list of child series
full (boolean): If present, report the DICOM tags in full format (tags indexed by their hexadecimal format, associated with their symbolic name and their value)
requested-tags (string): If present, list the DICOM Tags you want to list in the response. This argument is a semi-column separated list of DICOM Tags identifiers; e.g: 'requested-tags=0010,0010;PatientBirthDate'. The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
short (boolean): If present, report the DICOM tags in hexadecimal format
List containing information about the child DICOM series.
get_studies_id_shared_tags()
Get shared tags
Extract the DICOM tags whose value is constant across all the child instances of the DICOM study whose Orthanc identifier is provided in the URL
Orthanc$get_studies_id_shared_tags(id, params = NULL)
id(character) Orthanc identifier of the study of interest.
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
short (boolean): If present, report the DICOM tags in hexadecimal format
simplify (boolean): If present, report the DICOM tags in human-readable format (using the symbolic name of the tags)
JSON object containing the values of the DICOM tags.
post_studies_id_split()
Split study
Start a new job so as to split the DICOM study whose
Orthanc identifier is provided in the URL, by taking some
of its children series or instances out of it and putting
them into a brand new study (this new study is created by
setting the StudyInstanceUID tag to a random identifier):
https://orthanc.uclouvain.be/book/users/anonymization.html#splitting
Orthanc$post_studies_id_split(id, json = NULL)
id(character) Orthanc identifier of the study of interest.
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
Instances (list): The list of instances to be separated from the parent study. These instances must all be children of the same source study, that is specified in the URI.
KeepLabels (logical): Keep the labels of all resources level
(defaults to FALSE)
KeepSource (logical): If set to TRUE, instructs Orthanc to
keep a copy of the original series/instances in the source
study. By default, the original series/instances are deleted
from Orthanc.
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
Remove (list): List of tags that must be removed in the new
study (from the same modules as in the Replace option)
Replace (list): Associative array to change the value of some DICOM tags in the new study. These tags must be part of the "Patient Module Attributes" or the "General Study Module Attributes", as specified by the DICOM 2011 standard in Tables C.7-1 and C.7-3.
Series (list): The list of series to be separated from the parent study. These series must all be children of the same source study, that is specified in the URI.
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
UserData (list): User data that will travel along with the job.
Nothing, invisibly.
get_studies_id_statistics()
Get study statistics
Get statistics about the given study
Orthanc$get_studies_id_statistics(id)
id(character) Orthanc identifier of the study of interest.
Nothing, invisibly.
get_system()
Get system information
Get system information about Orthanc
Orthanc$get_system()
Nothing, invisibly.
get_tools()
List operations
List the available operations under URI /tools/
Orthanc$get_tools()
List of the available operations.
get_tools_accepted_sop_classes()
Get accepted SOPClassUID
Get the list of SOP Class UIDs that are accepted by Orthanc
C-STORE SCP. This corresponds to the configuration options
AcceptedSopClasses and RejectedSopClasses.
Orthanc$get_tools_accepted_sop_classes()
List containing the SOP Class UIDs.
get_tools_accepted_transfer_syntaxes()
Get accepted transfer syntaxes
Get the list of UIDs of the DICOM transfer syntaxes that
are accepted by Orthanc C-STORE SCP. This corresponds to
the configuration options AcceptedTransferSyntaxes and
XXXTransferSyntaxAccepted.
Orthanc$get_tools_accepted_transfer_syntaxes()
List containing the transfer syntax UIDs.
put_tools_accepted_transfer_syntaxes()
Set accepted transfer syntaxes
Set the DICOM transfer syntaxes that accepted by Orthanc C-STORE SCP
Orthanc$put_tools_accepted_transfer_syntaxes(json = NULL, data = NULL)
json(list) Named-list for request body. See Details.
data(bytes or character) Raw data for request body. See Details.
Request body JSON schema (application/json):
(list): JSON array containing a list of transfer syntax UIDs
to be accepted. Wildcards ? and * are accepted.
Request body: UID of the transfer syntax to be accepted.
Wildcards ? and * are accepted. (text/plain).
List containing the now-accepted transfer syntax UIDs.
post_tools_bulk_anonymize()
Anonymize a set of resources
Start a job that will anonymize all the DICOM patients, studies,
series or instances whose identifiers are provided in the
Resources field.
Orthanc$post_tools_bulk_anonymize(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
DicomVersion (character): Version of the DICOM standard to
be used for anonymization. Check out configuration option
DeidentifyLogsDicomVersion for possible values.
Force (logical): Allow the modification of tags related to DICOM identifiers, at the risk of breaking the DICOM model of the real world
Keep (list): List of DICOM tags whose value must not be
destroyed by the anonymization. Starting with Orthanc 1.9.4,
paths to subsequences can be provided using the same syntax
as the dcmodify command-line tool (wildcards are supported
as well).
KeepLabels (logical): Keep the labels of all resources level
(defaults to FALSE)
KeepPrivateTags (logical): Keep the private tags from the
DICOM instances (defaults to FALSE)
KeepSource (logical): If set to FALSE, instructs Orthanc
to the remove original resources. By default, the original
resources are kept in Orthanc.
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
PrivateCreator (character): The private creator to be used
for private tags in Replace
Remove (list): List of additional tags to be removed from
the DICOM instances. Starting with Orthanc 1.9.4, paths to
subsequences can be provided using the same syntax as the
dcmodify command-line tool (wildcards are supported as
well).
Replace (list): Associative array to change the value
of some DICOM tags in the DICOM instances. Starting with
Orthanc 1.9.4, paths to subsequences can be provided
using the same syntax as the dcmodify command-line tool
(wildcards are supported as well).
Resources (list): List of the Orthanc identifiers of the patients/studies/series/instances of interest.
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
Transcode (character): Transcode the DICOM instances to the provided DICOM transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): User data that will travel along with the job.
The list of all the resources that have been created by this anonymization.
post_tools_bulk_content()
Describe a set of resources
Get the content all the DICOM patients, studies, series or
instances whose identifiers are provided in the Resources
field, in one single call.
Orthanc$post_tools_bulk_content(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Full (logical): If set to TRUE, report the DICOM tags
in full format (tags indexed by their hexadecimal format,
associated with their symbolic name and their value)
Level (character): This optional argument specifies the
level of interest (can be Patient, Study, Series
or Instance). Orthanc will loop over the items inside
Resources, and explore upward or downward in the DICOM
hierarchy in order to find the level of interest.
Metadata (logical): If set to TRUE (default value),
the metadata associated with the resources will also be
retrieved.
Resources (list): List of the Orthanc identifiers of the patients/studies/series/instances of interest.
Short (logical): If set to TRUE, report the DICOM tags in
hexadecimal format
Nothing, invisibly.
post_tools_bulk_delete()
Delete a set of resources
Delete all the DICOM patients, studies, series or instances whose
identifiers are provided in the Resources field.
Orthanc$post_tools_bulk_delete(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Resources (list): List of the Orthanc identifiers of the patients/studies/series/instances of interest.
Nothing, invisibly.
post_tools_bulk_modify()
Modify a set of resources
Start a job that will modify all the DICOM patients, studies,
series or instances whose identifiers are provided in the
Resources field.
Orthanc$post_tools_bulk_modify(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, run the job in
asynchronous mode, which means that the REST API call will
immediately return, reporting the identifier of a job.
Prefer this flavor wherever possible.
Force (logical): Allow the modification of tags related to DICOM identifiers, at the risk of breaking the DICOM model of the real world
Keep (list): Keep the original value of the specified
tags, to be chosen among the StudyInstanceUID,
SeriesInstanceUID and SOPInstanceUID tags. Avoid this
feature as much as possible, as this breaks the DICOM model
of the real world.
KeepSource (logical): If set to FALSE, instructs Orthanc
to the remove original resources. By default, the original
resources are kept in Orthanc.
Level (character): Level of the modification (Patient,
Study, Series or Instance). If absent, the level
defaults to Instance, but is set to Patient if
PatientID is modified, to Study if StudyInstanceUID
is modified, or to Series if SeriesInstancesUID is
modified. (new in Orthanc 1.9.7)
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Permissive (logical): If TRUE, ignore errors during the
individual steps of the job. Default value is FALSE.
Priority (numeric): In asynchronous mode, the priority of
the job. The higher the value, the higher the priority.
Default value is 0
PrivateCreator (character): The private creator to be used
for private tags in Replace
Remove (list): List of tags that must be removed from the
DICOM instances. Starting with Orthanc 1.9.4, paths to
subsequences can be provided using the same syntax as the
dcmodify command-line tool (wildcards are supported as
well).
RemovePrivateTags (logical): Remove the private tags from
the DICOM instances (defaults to FALSE)
Replace (list): Associative array to change the value
of some DICOM tags in the DICOM instances. Starting with
Orthanc 1.9.4, paths to subsequences can be provided
using the same syntax as the dcmodify command-line tool
(wildcards are supported as well).
Resources (list): List of the Orthanc identifiers of the patients/studies/series/instances of interest.
Synchronous (logical): If TRUE, run the job in synchronous
mode, which means that the HTTP answer will directly contain
the result of the job. This is the default, easy behavior,
but it is not desirable for long jobs, as it might lead to
network timeouts.
Transcode (character): Transcode the DICOM instances to the provided DICOM transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): User data that will travel along with the job.
The list of all the resources that have been altered by this modification.
post_tools_count_resources()
Count local resources
This URI can be used to count the resources that are matching criteria on the content of the local Orthanc server, in a way that is similar to tools/find
Orthanc$post_tools_count_resources(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Full (logical): If set to TRUE, report the DICOM tags
in full format (tags indexed by their hexadecimal format,
associated with their symbolic name and their value)
Labels (list): List of strings specifying which labels to look for in the resources (new in Orthanc 1.12.0)
LabelsConstraint (character): Constraint on the labels,
can be All, Any, or None (defaults to All, new in
Orthanc 1.12.0)
Level (character): Level of the query (Patient, Study,
Series or Instance)
MetadataQuery (list): Associative array containing the filter on the values of the metadata (new in Orthanc 1.12.5)
ParentPatient (character): Limit the reported resources to descendants of this patient (new in Orthanc 1.12.5)
ParentSeries (character): Limit the reported resources to descendants of this series (new in Orthanc 1.12.5)
ParentStudy (character): Limit the reported resources to descendants of this study (new in Orthanc 1.12.5)
Query (list): Associative array containing the filter on the values of the DICOM tags
Short (logical): If set to TRUE, report the DICOM tags in
hexadecimal format
A JSON object with the Count of matching resources.
get_tools_create_archive()
Create ZIP archive
Create a ZIP archive containing the DICOM resources (patients, studies, series, or instances) whose Orthanc identifiers are provided in the 'resources' argument
Orthanc$get_tools_create_archive(resources = NULL, params = NULL)
resources(character) A comma separated list of Orthanc resource identifiers to include in the ZIP archive..
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
lossy-quality (number): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
transcode (string): If present, the DICOM files will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
Nothing, invisibly.
post_tools_create_archive()
Create ZIP archive
Create a ZIP archive containing the DICOM resources (patients, studies, series, or instances) whose Orthanc identifiers are provided in the body
Orthanc$post_tools_create_archive(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, create the archive in
asynchronous mode, which means that a job is submitted to
create the archive in background.
Filename (character): Filename to set in the "Content-Disposition" HTTP header (including file extension)
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Priority (numeric): In asynchronous mode, the priority of the job. The higher the value, the higher the priority.
Resources (list): The list of Orthanc identifiers of interest.
Synchronous (logical): If TRUE, create the archive
in synchronous mode, which means that the HTTP answer
will directly contain the ZIP file. This is the default,
easy behavior. However, if global configuration option
"SynchronousZipStream" is set to "false", asynchronous
transfers should be preferred for large amount of data, as
the creation of the temporary file might lead to network
timeouts.
Transcode (character): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): In asynchronous mode, user data that will be attached to the job.
In asynchronous mode, information about the job that has been submitted to generate the archive: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs.
post_tools_create_dicom()
Create one DICOM instance
Create one DICOM instance, and store it into Orthanc
Orthanc$post_tools_create_dicom(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Content (character): This field can be used to
embed an image (pixel data encoded as PNG or JPEG),
a PDF, or a 3D manufactoring model (MTL/OBJ/STL)
inside the created DICOM instance. The file to be
encapsulated must be provided using its data URI scheme encoding.
This field can possibly contain a JSON array, in which case
a DICOM series is created containing one DICOM instance for
each item in the Content field.
Encapsulate (logical): If set to TRUE, encapsulate the
binary data of ContentData as such, using a compressed
transfer syntax. Only applicable if ContentData contains
a grayscale or color JPEG image in 8bpp, in which case the
transfer syntax is set to "1.2.840.10008.1.2.4.50". (new in
Orthanc 1.12.7)
Force (logical): Avoid the consistency checks for the
DICOM tags that enforce the DICOM model of the real-world.
You can notably use this flag if you need to manually
set the tags StudyInstanceUID, SeriesInstanceUID, or
SOPInstanceUID. Be careful with this feature.
InterpretBinaryTags (logical): If some
value in the Tags associative array is
formatted according to some data URI scheme encoding,
whether this value is decoded to a binary value or kept as
such (TRUE by default)
Parent (character): If present, the newly created instance will be attached to the parent DICOM resource whose Orthanc identifier is contained in this field. The DICOM tags of the parent modules in the DICOM hierarchy will be automatically copied to the newly created instance.
PrivateCreator (character): The private creator to be used
for private tags in Tags
Tags (list): Associative array containing the tags of the new instance to be created
Nothing, invisibly.
get_tools_create_media()
Create DICOMDIR media
Create a DICOMDIR media containing the DICOM resources (patients, studies, series, or instances) whose Orthanc identifiers are provided in the 'resources' argument
Orthanc$get_tools_create_media(resources = NULL, params = NULL)
resources(character) A comma separated list of Orthanc resource identifiers to include in the DICOMDIR media..
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
lossy-quality (number): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
transcode (string): If present, the DICOM files will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
Nothing, invisibly.
post_tools_create_media()
Create DICOMDIR media
Create a DICOMDIR media containing the DICOM resources (patients, studies, series, or instances) whose Orthanc identifiers are provided in the body
Orthanc$post_tools_create_media(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, create the archive in
asynchronous mode, which means that a job is submitted to
create the archive in background.
Extended (logical): If TRUE, will include additional
tags such as SeriesDescription, leading to a so-called
extended DICOMDIR. Default value is FALSE.
Filename (character): Filename to set in the "Content-Disposition" HTTP header (including file extension)
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Priority (numeric): In asynchronous mode, the priority of the job. The higher the value, the higher the priority.
Resources (list): The list of Orthanc identifiers of interest.
Synchronous (logical): If TRUE, create the archive
in synchronous mode, which means that the HTTP answer
will directly contain the ZIP file. This is the default,
easy behavior. However, if global configuration option
"SynchronousZipStream" is set to "false", asynchronous
transfers should be preferred for large amount of data, as
the creation of the temporary file might lead to network
timeouts.
Transcode (character): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): In asynchronous mode, user data that will be attached to the job.
In asynchronous mode, information about the job that has been submitted to generate the archive: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs.
get_tools_create_media_extended()
Create DICOMDIR media
Create a DICOMDIR media containing the DICOM resources (patients, studies, series, or instances) whose Orthanc identifiers are provided in the 'resources' argument
Orthanc$get_tools_create_media_extended(resources = NULL, params = NULL)
resources(character) A comma separated list of Orthanc resource identifiers to include in the DICOMDIR media..
params(list) Named-list of optional query parameters. See Details.
Optional query parameters (params):
filename (string): Filename to set in the "Content-Disposition" HTTP header (including file extension)
lossy-quality (number): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
transcode (string): If present, the DICOM files will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
Nothing, invisibly.
post_tools_create_media_extended()
Create DICOMDIR media
Create a DICOMDIR media containing the DICOM resources (patients, studies, series, or instances) whose Orthanc identifiers are provided in the body
Orthanc$post_tools_create_media_extended(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
Asynchronous (logical): If TRUE, create the archive in
asynchronous mode, which means that a job is submitted to
create the archive in background.
Extended (logical): If TRUE, will include additional
tags such as SeriesDescription, leading to a so-called
extended DICOMDIR. Default value is TRUE.
Filename (character): Filename to set in the "Content-Disposition" HTTP header (including file extension)
LossyQuality (numeric): If transcoding to a lossy transfer syntax, this entry defines the quality as an integer between 1 and 100. If not provided, the value is defined by the "DicomLossyTranscodingQuality" configuration. (new in v1.12.7)
Priority (numeric): In asynchronous mode, the priority of the job. The higher the value, the higher the priority.
Resources (list): The list of Orthanc identifiers of interest.
Synchronous (logical): If TRUE, create the archive
in synchronous mode, which means that the HTTP answer
will directly contain the ZIP file. This is the default,
easy behavior. However, if global configuration option
"SynchronousZipStream" is set to "false", asynchronous
transfers should be preferred for large amount of data, as
the creation of the temporary file might lead to network
timeouts.
Transcode (character): If present, the DICOM files in the archive will be transcoded to the provided transfer syntax: https://orthanc.uclouvain.be/book/faq/transcoding.html
UserData (list): In asynchronous mode, user data that will be attached to the job.
In asynchronous mode, information about the job that has been submitted to generate the archive: https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs.
get_tools_default_encoding()
Get default encoding
Get the default encoding that is used by Orthanc if parsing
a DICOM instance without the SpecificCharacterEncoding tag,
or during C-FIND. This corresponds to the configuration option
DefaultEncoding.
Orthanc$get_tools_default_encoding()
The name of the encoding.
put_tools_default_encoding()
Set default encoding
Change the default encoding that is used by Orthanc if parsing
a DICOM instance without the SpecificCharacterEncoding tag,
or during C-FIND. This corresponds to the configuration option
DefaultEncoding.
Orthanc$put_tools_default_encoding(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: The name of the encoding. Check out
configuration option DefaultEncoding for the allowed values.
(text/plain).
Nothing, invisibly.
get_tools_dicom_conformance()
Get DICOM conformance
Get the DICOM conformance statement of Orthanc
Orthanc$get_tools_dicom_conformance()
The DICOM conformance statement.
post_tools_dicom_echo()
Trigger C-ECHO SCU
Trigger C-ECHO SCU command against a DICOM modality described in
the POST body, without having to register the modality in some
/modalities/{id} (new in Orthanc 1.8.1)
Orthanc$post_tools_dicom_echo(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
AET (character): AET of the remote DICOM modality
CheckFind (logical): Issue a dummy C-FIND command after the
C-GET SCU, in order to check whether the remote modality
knows about Orthanc. This field defaults to the value of the
DicomEchoChecksFind configuration option. New in Orthanc
1.8.1.
Host (character): Host address of the remote DICOM modality (typically, an IP address)
LocalAet (character): Whether to override the default DicomAet in the SCU connection initiated by Orthanc to this modality
Manufacturer (character): Manufacturer of the remote DICOM
modality (check configuration option DicomModalities for
possible values
Port (numeric): TCP port of the remote DICOM modality
Timeout (numeric): Whether to override the default DicomScuTimeout in the SCU connection initiated by Orthanc to this modality
UseDicomTls (logical): Whether to use DICOM TLS in the SCU connection initiated by Orthanc (new in Orthanc 1.9.0)
Nothing, invisibly.
post_tools_execute_script()
Execute Lua script
Execute the provided Lua script by the Orthanc server. This is
very insecure for Orthanc servers that are remotely accessible.
Since Orthanc 1.5.8, this route is disabled by default and can be
enabled thanks to the ExecuteLuaEnabled configuration.
Orthanc$post_tools_execute_script(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: The Lua script to be executed (text/plain).
Output of the Lua script.
post_tools_find()
Look for local resources
This URI can be used to perform a search on the content of the local Orthanc server, in a way that is similar to querying remote DICOM modalities using C-FIND SCU: https://orthanc.uclouvain.be/book/users/rest.html#performing-finds-within-orthanc
Orthanc$post_tools_find(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
CaseSensitive (logical): Enable case-sensitive search for
PN value representations (defaults to configuration option
CaseSensitivePN)
Expand (logical): If set to "true", retrieve detailed information about the individual resources, not only their Orthanc identifiers
Full (logical): If set to TRUE, report the DICOM tags
in full format (tags indexed by their hexadecimal format,
associated with their symbolic name and their value)
Labels (list): List of strings specifying which labels to look for in the resources (new in Orthanc 1.12.0)
LabelsConstraint (character): Constraint on the labels,
can be All, Any, or None (defaults to All, new in
Orthanc 1.12.0)
Level (character): Level of the query (Patient, Study,
Series or Instance)
Limit (numeric): Limit the number of reported resources
MetadataQuery (list): Associative array containing the filter on the values of the metadata (new in Orthanc 1.12.5)
OrderBy (list): Array of associative arrays containing the requested ordering (new in Orthanc 1.12.5)
ParentPatient (character): Limit the reported resources to descendants of this patient (new in Orthanc 1.12.5)
ParentSeries (character): Limit the reported resources to descendants of this series (new in Orthanc 1.12.5)
ParentStudy (character): Limit the reported resources to descendants of this study (new in Orthanc 1.12.5)
Query (list): Associative array containing the filter on the values of the DICOM tags
RequestedTags (list): A list of DICOM tags to include in the response (applicable only if "Expand" is set to true). The tags requested tags are returned in the 'RequestedTags' field in the response. Note that, if you are requesting tags that are not listed in the Main Dicom Tags stored in DB, building the response might be slow since Orthanc will need to access the DICOM files. If not specified, Orthanc will return all Main Dicom Tags to keep backward compatibility with Orthanc prior to 1.11.0.
ResponseContent (list): Defines the content of response for
each returned resource. (this field, if present, overrides
the "Expand" field). Allowed values are MainDicomTags,
Metadata, Children, Parent, Labels, Status,
IsStable, IsProtected, Attachments. If not specified,
Orthanc will return MainDicomTags, Metadata, Children,
Parent, Labels, Status, IsStable, IsProtected.(new
in Orthanc 1.12.5)
Short (logical): If set to TRUE, report the DICOM tags in
hexadecimal format
Since (numeric): Show only the resources since the provided
index (in conjunction with Limit)
List containing either the Orthanc identifiers, or
detailed information about the reported resources (if Expand
argument is TRUE).
get_tools_generate_uid()
Generate an identifier
Generate a random DICOM identifier
Orthanc$get_tools_generate_uid(level = NULL)
level(character) Type of DICOM resource among: patient,
study, series or instance.
The generated identifier.
post_tools_invalidate_tags()
Invalidate DICOM-as-JSON summaries
Remove all the attachments of the type "DICOM-as-JSON"
that are associated will all the DICOM instances stored
in Orthanc. These summaries will be automatically
re-created on the next access. This is notably useful
after changes to the Dictionary configuration option.
https://orthanc.uclouvain.be/book/faq/orthanc-storage.html#storage-area
Orthanc$post_tools_invalidate_tags()
Nothing, invisibly.
get_tools_labels()
Get all the used labels
List all the labels that are associated with any resource of the Orthanc database
Orthanc$get_tools_labels()
List containing the labels.
get_tools_log_level()
Get main log level
Get the main log level of Orthanc
Orthanc$get_tools_log_level()
Possible values: default, verbose or trace.
put_tools_log_level()
Set main log level
Set the main log level of Orthanc
Orthanc$put_tools_log_level(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: Possible values: default, verbose or trace
(text/plain).
Nothing, invisibly.
get_tools_log_level_dicom()
Get log level for dicom
Get the log level of the log category dicom
Orthanc$get_tools_log_level_dicom()
Possible values: default, verbose or trace.
put_tools_log_level_dicom()
Set log level for dicom
Set the log level of the log category dicom
Orthanc$put_tools_log_level_dicom(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: Possible values: default, verbose or trace
(text/plain).
Nothing, invisibly.
get_tools_log_level_generic()
Get log level for generic
Get the log level of the log category generic
Orthanc$get_tools_log_level_generic()
Possible values: default, verbose or trace.
put_tools_log_level_generic()
Set log level for generic
Set the log level of the log category generic
Orthanc$put_tools_log_level_generic(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: Possible values: default, verbose or trace
(text/plain).
Nothing, invisibly.
get_tools_log_level_http()
Get log level for http
Get the log level of the log category http
Orthanc$get_tools_log_level_http()
Possible values: default, verbose or trace.
put_tools_log_level_http()
Set log level for http
Set the log level of the log category http
Orthanc$put_tools_log_level_http(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: Possible values: default, verbose or trace
(text/plain).
Nothing, invisibly.
get_tools_log_level_jobs()
Get log level for jobs
Get the log level of the log category jobs
Orthanc$get_tools_log_level_jobs()
Possible values: default, verbose or trace.
put_tools_log_level_jobs()
Set log level for jobs
Set the log level of the log category jobs
Orthanc$put_tools_log_level_jobs(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: Possible values: default, verbose or trace
(text/plain).
Nothing, invisibly.
get_tools_log_level_lua()
Get log level for lua
Get the log level of the log category lua
Orthanc$get_tools_log_level_lua()
Possible values: default, verbose or trace.
put_tools_log_level_lua()
Set log level for lua
Set the log level of the log category lua
Orthanc$put_tools_log_level_lua(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: Possible values: default, verbose or trace
(text/plain).
Nothing, invisibly.
get_tools_log_level_plugins()
Get log level for plugins
Get the log level of the log category plugins
Orthanc$get_tools_log_level_plugins()
Possible values: default, verbose or trace.
put_tools_log_level_plugins()
Set log level for plugins
Set the log level of the log category plugins
Orthanc$put_tools_log_level_plugins(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: Possible values: default, verbose or trace
(text/plain).
Nothing, invisibly.
get_tools_log_level_sqlite()
Get log level for sqlite
Get the log level of the log category sqlite
Orthanc$get_tools_log_level_sqlite()
Possible values: default, verbose or trace.
put_tools_log_level_sqlite()
Set log level for sqlite
Set the log level of the log category sqlite
Orthanc$put_tools_log_level_sqlite(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: Possible values: default, verbose or trace
(text/plain).
Nothing, invisibly.
post_tools_lookup()
Look for DICOM identifiers
This URI can be used to convert one DICOM identifier to a list of matching Orthanc resources
Orthanc$post_tools_lookup(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: The DICOM identifier of interest (i.e. the value
of PatientID, StudyInstanceUID, SeriesInstanceUID, or
SOPInstanceUID) (text/plain).
List containing a list of matching Orthanc
resources, each item in the list corresponding to a JSON object
with the fields Type, ID and Path identifying one DICOM
resource that is stored by Orthanc.
get_tools_metrics()
Are metrics collected?
Returns a Boolean specifying whether Prometheus metrics are
collected and exposed at /tools/metrics-prometheus
Orthanc$get_tools_metrics()
1 if metrics are collected, 0 if metrics are
disabled.
put_tools_metrics()
Enable collection of metrics
Enable or disable the collection and publication of metrics at
/tools/metrics-prometheus
Orthanc$put_tools_metrics(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: 1 if metrics are collected, 0 if metrics are
disabled (text/plain).
Nothing, invisibly.
get_tools_metrics_prometheus()
Get usage metrics
Get usage metrics of Orthanc in the Prometheus file format (OpenMetrics): https://orthanc.uclouvain.be/book/users/advanced-rest.html#instrumentation-with-prometheus
Orthanc$get_tools_metrics_prometheus()
Nothing, invisibly.
get_tools_now()
Get UTC time
Get UTC time
Orthanc$get_tools_now()
The UTC time.
get_tools_now_local()
Get local time
Get local time
Orthanc$get_tools_now_local()
The local time.
post_tools_reconstruct()
Reconstruct all the index
Reconstruct the index of all the tags of all the DICOM instances that are stored in Orthanc. This is notably useful after the deletion of resources whose children resources have inconsistent values with their sibling resources. Beware that this is a highly time-consuming operation, as all the DICOM instances will be parsed again, and as all the Orthanc index will be regenerated. If you have a large database to process, it is advised to use the Housekeeper plugin to perform this action resource by resource
Orthanc$post_tools_reconstruct(json = NULL)
json(list) Named-list for request body. See Details.
Request body JSON schema (application/json):
ReconstructFiles (logical): Also reconstruct the files of the resources (e.g: apply IngestTranscoding, StorageCompression). 'false' by default. (New in Orthanc 1.11.0)
Nothing, invisibly.
post_tools_reset()
Restart Orthanc
Restart Orthanc
Orthanc$post_tools_reset()
Nothing, invisibly.
post_tools_shutdown()
Shutdown Orthanc
Shutdown Orthanc
Orthanc$post_tools_shutdown()
Nothing, invisibly.
get_tools_unknown_sop_class_accepted()
Is unknown SOP class accepted?
Shall Orthanc C-STORE SCP accept DICOM instances with an unknown SOP class UID?
Orthanc$get_tools_unknown_sop_class_accepted()
1 if accepted, 0 if not accepted.
put_tools_unknown_sop_class_accepted()
Set unknown SOP class accepted
Set whether Orthanc C-STORE SCP should accept DICOM instances with an unknown SOP class UID
Orthanc$put_tools_unknown_sop_class_accepted(data = NULL)
data(bytes or character) Raw data for request body. See Details.
Request body: 1 if accepted, 0 if not accepted
(text/plain).
Nothing, invisibly.
clone()
The objects of this class are cloneable with this method.
Orthanc$clone(deep = FALSE)
deepWhether to make a deep clone.
Orthanc is an open-source, lightweight DICOM server for healthcare and
medical research. This R6 generator creates a client to access
Orthanc's RESTful API. More details about the Orthanc REST API can be
found here: https://orthanc.uclouvain.be/book/users/rest.html.
The full documentation of the Orthanc API can be found here: https://orthanc.uclouvain.be/api/.
See Orthanc for more information.
An OrthancAsync instance.
orthanc::Orthanc -> OrthancAsync
orthanc::Orthanc$DELETE()orthanc::Orthanc$GET()orthanc::Orthanc$POST()orthanc::Orthanc$PUT()orthanc::Orthanc$delete_changes()orthanc::Orthanc$delete_exports()orthanc::Orthanc$delete_instances_id()orthanc::Orthanc$delete_instances_id_attachments_name()orthanc::Orthanc$delete_instances_id_labels_label()orthanc::Orthanc$delete_instances_id_metadata_name()orthanc::Orthanc$delete_jobs_id()orthanc::Orthanc$delete_jobs_id_key()orthanc::Orthanc$delete_modalities_id()orthanc::Orthanc$delete_patients_id()orthanc::Orthanc$delete_patients_id_attachments_name()orthanc::Orthanc$delete_patients_id_labels_label()orthanc::Orthanc$delete_patients_id_metadata_name()orthanc::Orthanc$delete_peers_id()orthanc::Orthanc$delete_queries_id()orthanc::Orthanc$delete_series_id()orthanc::Orthanc$delete_series_id_attachments_name()orthanc::Orthanc$delete_series_id_labels_label()orthanc::Orthanc$delete_series_id_metadata_name()orthanc::Orthanc$delete_studies_id()orthanc::Orthanc$delete_studies_id_attachments_name()orthanc::Orthanc$delete_studies_id_labels_label()orthanc::Orthanc$delete_studies_id_metadata_name()orthanc::Orthanc$get_changes()orthanc::Orthanc$get_exports()orthanc::Orthanc$get_instances()orthanc::Orthanc$get_instances_id()orthanc::Orthanc$get_instances_id_attachments()orthanc::Orthanc$get_instances_id_attachments_name()orthanc::Orthanc$get_instances_id_attachments_name_compressed_data()orthanc::Orthanc$get_instances_id_attachments_name_compressed_md5()orthanc::Orthanc$get_instances_id_attachments_name_compressed_size()orthanc::Orthanc$get_instances_id_attachments_name_data()orthanc::Orthanc$get_instances_id_attachments_name_info()orthanc::Orthanc$get_instances_id_attachments_name_is_compressed()orthanc::Orthanc$get_instances_id_attachments_name_md5()orthanc::Orthanc$get_instances_id_attachments_name_size()orthanc::Orthanc$get_instances_id_content_path()orthanc::Orthanc$get_instances_id_file()orthanc::Orthanc$get_instances_id_frames()orthanc::Orthanc$get_instances_id_frames_frame()orthanc::Orthanc$get_instances_id_frames_frame_image_int16()orthanc::Orthanc$get_instances_id_frames_frame_image_uint16()orthanc::Orthanc$get_instances_id_frames_frame_image_uint8()orthanc::Orthanc$get_instances_id_frames_frame_matlab()orthanc::Orthanc$get_instances_id_frames_frame_numpy()orthanc::Orthanc$get_instances_id_frames_frame_preview()orthanc::Orthanc$get_instances_id_frames_frame_raw()orthanc::Orthanc$get_instances_id_frames_frame_raw.gz()orthanc::Orthanc$get_instances_id_frames_frame_rendered()orthanc::Orthanc$get_instances_id_header()orthanc::Orthanc$get_instances_id_image_int16()orthanc::Orthanc$get_instances_id_image_uint16()orthanc::Orthanc$get_instances_id_image_uint8()orthanc::Orthanc$get_instances_id_labels()orthanc::Orthanc$get_instances_id_labels_label()orthanc::Orthanc$get_instances_id_matlab()orthanc::Orthanc$get_instances_id_metadata()orthanc::Orthanc$get_instances_id_metadata_name()orthanc::Orthanc$get_instances_id_module()orthanc::Orthanc$get_instances_id_numpy()orthanc::Orthanc$get_instances_id_patient()orthanc::Orthanc$get_instances_id_pdf()orthanc::Orthanc$get_instances_id_preview()orthanc::Orthanc$get_instances_id_rendered()orthanc::Orthanc$get_instances_id_series()orthanc::Orthanc$get_instances_id_simplified_tags()orthanc::Orthanc$get_instances_id_statistics()orthanc::Orthanc$get_instances_id_study()orthanc::Orthanc$get_instances_id_tags()orthanc::Orthanc$get_jobs()orthanc::Orthanc$get_jobs_id()orthanc::Orthanc$get_jobs_id_key()orthanc::Orthanc$get_modalities()orthanc::Orthanc$get_modalities_id()orthanc::Orthanc$get_modalities_id_configuration()orthanc::Orthanc$get_patients()orthanc::Orthanc$get_patients_id()orthanc::Orthanc$get_patients_id_archive()orthanc::Orthanc$get_patients_id_attachments()orthanc::Orthanc$get_patients_id_attachments_name()orthanc::Orthanc$get_patients_id_attachments_name_compressed_data()orthanc::Orthanc$get_patients_id_attachments_name_compressed_md5()orthanc::Orthanc$get_patients_id_attachments_name_compressed_size()orthanc::Orthanc$get_patients_id_attachments_name_data()orthanc::Orthanc$get_patients_id_attachments_name_info()orthanc::Orthanc$get_patients_id_attachments_name_is_compressed()orthanc::Orthanc$get_patients_id_attachments_name_md5()orthanc::Orthanc$get_patients_id_attachments_name_size()orthanc::Orthanc$get_patients_id_instances()orthanc::Orthanc$get_patients_id_instances_tags()orthanc::Orthanc$get_patients_id_labels()orthanc::Orthanc$get_patients_id_labels_label()orthanc::Orthanc$get_patients_id_media()orthanc::Orthanc$get_patients_id_metadata()orthanc::Orthanc$get_patients_id_metadata_name()orthanc::Orthanc$get_patients_id_module()orthanc::Orthanc$get_patients_id_protected()orthanc::Orthanc$get_patients_id_series()orthanc::Orthanc$get_patients_id_shared_tags()orthanc::Orthanc$get_patients_id_statistics()orthanc::Orthanc$get_patients_id_studies()orthanc::Orthanc$get_peers()orthanc::Orthanc$get_peers_id()orthanc::Orthanc$get_peers_id_configuration()orthanc::Orthanc$get_peers_id_system()orthanc::Orthanc$get_plugins()orthanc::Orthanc$get_plugins_explorer.js()orthanc::Orthanc$get_plugins_id()orthanc::Orthanc$get_queries()orthanc::Orthanc$get_queries_id()orthanc::Orthanc$get_queries_id_answers()orthanc::Orthanc$get_queries_id_answers_index()orthanc::Orthanc$get_queries_id_answers_index_content()orthanc::Orthanc$get_queries_id_level()orthanc::Orthanc$get_queries_id_modality()orthanc::Orthanc$get_queries_id_query()orthanc::Orthanc$get_series()orthanc::Orthanc$get_series_id()orthanc::Orthanc$get_series_id_archive()orthanc::Orthanc$get_series_id_attachments()orthanc::Orthanc$get_series_id_attachments_name()orthanc::Orthanc$get_series_id_attachments_name_compressed_data()orthanc::Orthanc$get_series_id_attachments_name_compressed_md5()orthanc::Orthanc$get_series_id_attachments_name_compressed_size()orthanc::Orthanc$get_series_id_attachments_name_data()orthanc::Orthanc$get_series_id_attachments_name_info()orthanc::Orthanc$get_series_id_attachments_name_is_compressed()orthanc::Orthanc$get_series_id_attachments_name_md5()orthanc::Orthanc$get_series_id_attachments_name_size()orthanc::Orthanc$get_series_id_instances()orthanc::Orthanc$get_series_id_instances_tags()orthanc::Orthanc$get_series_id_labels()orthanc::Orthanc$get_series_id_labels_label()orthanc::Orthanc$get_series_id_media()orthanc::Orthanc$get_series_id_metadata()orthanc::Orthanc$get_series_id_metadata_name()orthanc::Orthanc$get_series_id_module()orthanc::Orthanc$get_series_id_numpy()orthanc::Orthanc$get_series_id_patient()orthanc::Orthanc$get_series_id_shared_tags()orthanc::Orthanc$get_series_id_statistics()orthanc::Orthanc$get_series_id_study()orthanc::Orthanc$get_statistics()orthanc::Orthanc$get_storage_commitment_id()orthanc::Orthanc$get_studies()orthanc::Orthanc$get_studies_id()orthanc::Orthanc$get_studies_id_archive()orthanc::Orthanc$get_studies_id_attachments()orthanc::Orthanc$get_studies_id_attachments_name()orthanc::Orthanc$get_studies_id_attachments_name_compressed_data()orthanc::Orthanc$get_studies_id_attachments_name_compressed_md5()orthanc::Orthanc$get_studies_id_attachments_name_compressed_size()orthanc::Orthanc$get_studies_id_attachments_name_data()orthanc::Orthanc$get_studies_id_attachments_name_info()orthanc::Orthanc$get_studies_id_attachments_name_is_compressed()orthanc::Orthanc$get_studies_id_attachments_name_md5()orthanc::Orthanc$get_studies_id_attachments_name_size()orthanc::Orthanc$get_studies_id_instances()orthanc::Orthanc$get_studies_id_instances_tags()orthanc::Orthanc$get_studies_id_labels()orthanc::Orthanc$get_studies_id_labels_label()orthanc::Orthanc$get_studies_id_media()orthanc::Orthanc$get_studies_id_metadata()orthanc::Orthanc$get_studies_id_metadata_name()orthanc::Orthanc$get_studies_id_module()orthanc::Orthanc$get_studies_id_module_patient()orthanc::Orthanc$get_studies_id_patient()orthanc::Orthanc$get_studies_id_series()orthanc::Orthanc$get_studies_id_shared_tags()orthanc::Orthanc$get_studies_id_statistics()orthanc::Orthanc$get_system()orthanc::Orthanc$get_tools()orthanc::Orthanc$get_tools_accepted_sop_classes()orthanc::Orthanc$get_tools_accepted_transfer_syntaxes()orthanc::Orthanc$get_tools_create_archive()orthanc::Orthanc$get_tools_create_media()orthanc::Orthanc$get_tools_create_media_extended()orthanc::Orthanc$get_tools_default_encoding()orthanc::Orthanc$get_tools_dicom_conformance()orthanc::Orthanc$get_tools_generate_uid()orthanc::Orthanc$get_tools_labels()orthanc::Orthanc$get_tools_log_level()orthanc::Orthanc$get_tools_log_level_dicom()orthanc::Orthanc$get_tools_log_level_generic()orthanc::Orthanc$get_tools_log_level_http()orthanc::Orthanc$get_tools_log_level_jobs()orthanc::Orthanc$get_tools_log_level_lua()orthanc::Orthanc$get_tools_log_level_plugins()orthanc::Orthanc$get_tools_log_level_sqlite()orthanc::Orthanc$get_tools_metrics()orthanc::Orthanc$get_tools_metrics_prometheus()orthanc::Orthanc$get_tools_now()orthanc::Orthanc$get_tools_now_local()orthanc::Orthanc$get_tools_unknown_sop_class_accepted()orthanc::Orthanc$initialize()orthanc::Orthanc$post_instances()orthanc::Orthanc$post_instances_id_anonymize()orthanc::Orthanc$post_instances_id_attachments_name_compress()orthanc::Orthanc$post_instances_id_attachments_name_uncompress()orthanc::Orthanc$post_instances_id_attachments_name_verify_md5()orthanc::Orthanc$post_instances_id_export()orthanc::Orthanc$post_instances_id_modify()orthanc::Orthanc$post_instances_id_reconstruct()orthanc::Orthanc$post_jobs_id_cancel()orthanc::Orthanc$post_jobs_id_pause()orthanc::Orthanc$post_jobs_id_resubmit()orthanc::Orthanc$post_jobs_id_resume()orthanc::Orthanc$post_modalities_id_echo()orthanc::Orthanc$post_modalities_id_find_worklist()orthanc::Orthanc$post_modalities_id_get()orthanc::Orthanc$post_modalities_id_move()orthanc::Orthanc$post_modalities_id_query()orthanc::Orthanc$post_modalities_id_storage_commitment()orthanc::Orthanc$post_modalities_id_store()orthanc::Orthanc$post_modalities_id_store_straight()orthanc::Orthanc$post_patients_id_anonymize()orthanc::Orthanc$post_patients_id_archive()orthanc::Orthanc$post_patients_id_attachments_name_compress()orthanc::Orthanc$post_patients_id_attachments_name_uncompress()orthanc::Orthanc$post_patients_id_attachments_name_verify_md5()orthanc::Orthanc$post_patients_id_media()orthanc::Orthanc$post_patients_id_modify()orthanc::Orthanc$post_patients_id_reconstruct()orthanc::Orthanc$post_peers_id_store()orthanc::Orthanc$post_peers_id_store_straight()orthanc::Orthanc$post_queries_id_answers_index_query_instances()orthanc::Orthanc$post_queries_id_answers_index_query_series()orthanc::Orthanc$post_queries_id_answers_index_query_studies()orthanc::Orthanc$post_queries_id_answers_index_retrieve()orthanc::Orthanc$post_queries_id_retrieve()orthanc::Orthanc$post_series_id_anonymize()orthanc::Orthanc$post_series_id_archive()orthanc::Orthanc$post_series_id_attachments_name_compress()orthanc::Orthanc$post_series_id_attachments_name_uncompress()orthanc::Orthanc$post_series_id_attachments_name_verify_md5()orthanc::Orthanc$post_series_id_media()orthanc::Orthanc$post_series_id_modify()orthanc::Orthanc$post_series_id_reconstruct()orthanc::Orthanc$post_storage_commitment_id_remove()orthanc::Orthanc$post_studies_id_anonymize()orthanc::Orthanc$post_studies_id_archive()orthanc::Orthanc$post_studies_id_attachments_name_compress()orthanc::Orthanc$post_studies_id_attachments_name_uncompress()orthanc::Orthanc$post_studies_id_attachments_name_verify_md5()orthanc::Orthanc$post_studies_id_media()orthanc::Orthanc$post_studies_id_merge()orthanc::Orthanc$post_studies_id_modify()orthanc::Orthanc$post_studies_id_reconstruct()orthanc::Orthanc$post_studies_id_split()orthanc::Orthanc$post_tools_bulk_anonymize()orthanc::Orthanc$post_tools_bulk_content()orthanc::Orthanc$post_tools_bulk_delete()orthanc::Orthanc$post_tools_bulk_modify()orthanc::Orthanc$post_tools_count_resources()orthanc::Orthanc$post_tools_create_archive()orthanc::Orthanc$post_tools_create_dicom()orthanc::Orthanc$post_tools_create_media()orthanc::Orthanc$post_tools_create_media_extended()orthanc::Orthanc$post_tools_dicom_echo()orthanc::Orthanc$post_tools_execute_script()orthanc::Orthanc$post_tools_find()orthanc::Orthanc$post_tools_invalidate_tags()orthanc::Orthanc$post_tools_lookup()orthanc::Orthanc$post_tools_reconstruct()orthanc::Orthanc$post_tools_reset()orthanc::Orthanc$post_tools_shutdown()orthanc::Orthanc$put_instances_id_attachments_name()orthanc::Orthanc$put_instances_id_labels_label()orthanc::Orthanc$put_instances_id_metadata_name()orthanc::Orthanc$put_modalities_id()orthanc::Orthanc$put_patients_id_attachments_name()orthanc::Orthanc$put_patients_id_labels_label()orthanc::Orthanc$put_patients_id_metadata_name()orthanc::Orthanc$put_patients_id_protected()orthanc::Orthanc$put_peers_id()orthanc::Orthanc$put_series_id_attachments_name()orthanc::Orthanc$put_series_id_labels_label()orthanc::Orthanc$put_series_id_metadata_name()orthanc::Orthanc$put_studies_id_attachments_name()orthanc::Orthanc$put_studies_id_labels_label()orthanc::Orthanc$put_studies_id_metadata_name()orthanc::Orthanc$put_tools_accepted_transfer_syntaxes()orthanc::Orthanc$put_tools_default_encoding()orthanc::Orthanc$put_tools_log_level()orthanc::Orthanc$put_tools_log_level_dicom()orthanc::Orthanc$put_tools_log_level_generic()orthanc::Orthanc$put_tools_log_level_http()orthanc::Orthanc$put_tools_log_level_jobs()orthanc::Orthanc$put_tools_log_level_lua()orthanc::Orthanc$put_tools_log_level_plugins()orthanc::Orthanc$put_tools_log_level_sqlite()orthanc::Orthanc$put_tools_metrics()orthanc::Orthanc$put_tools_unknown_sop_class_accepted()orthanc::Orthanc$stream()print()
Print method for OrthancAsync.
OrthancAsync$print(x, ...)
xObject to print.
...Further arguments passed to or from other methods.
clone()
The objects of this class are cloneable with this method.
OrthancAsync$clone(deep = FALSE)
deepWhether to make a deep clone.
An abstract class for a DICOM Patient resource.
An R6 instance of class "Patient".
orthanc::Resource -> Patient
patient_idPatient ID
namePatient Name
birth_datePatient Birth Date
sexPatient Sex
other_patient_idsOther Patient IDs
is_stableIs stable?
last_updateLast Update
labelsGet or add labels
protectedGet or set if patient is protected against recycling
studiesStudies
studies_idsStudies identifiers
seriesSeries
series_idsSeries identifiers
instancesInstances
instances_idsInstances identifiers
instances_tagsInstances tags
num_studiesNumber of studies
num_seriesNumber of series
num_instancesNumber of instances
shared_tagsShared tags
statisticsStatistics
get_main_information()
Get patient information.
Patient$get_main_information()
add_label()
Add label to resource.
Patient$add_label(label)
labelLabel.
has_label()
Test if resource has label.
Patient$has_label(label)
labelLabel.
remove_label()
Delete label from resource.
Patient$remove_label(label)
labelLabel.
get_zip_archive_content()
Get bytes of the zip archive.
Patient$get_zip_archive_content()
download_archive()
Download zip archive to path.
Patient$download_archive(path, stream = FALSE)
pathPath on disk.
streamShould the resource be streamed and written to disk in
chunks? Default is FALSE, which means the resource file contents are
retrieved in their entirety and written to disk all at once.
get_patient_module()
Get patient module in a simplified version
Patient$get_patient_module()
anonymize()
Anonymize Patient
Patient$anonymize( remove = list(), replace = list(), keep = list(), keep_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE, dicom_version = NULL )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
keep_private_tagsKeep private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
dicom_versionVersion of the DICOM standard to use for anonymization.
anonymize_as_job()
Anonymize Patient
Patient$anonymize_as_job( remove = list(), replace = list(), keep = list(), keep_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE, dicom_version = NULL )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
keep_private_tagsKeep private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
dicom_versionVersion of the DICOM standard to use for anonymization.
modify()
Modify Patient
Patient$modify( remove = list(), replace = list(), keep = list(), remove_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
remove_private_tagsRemove private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
modify_as_job()
Modify Patient
Patient$modify_as_job( remove = list(), replace = list(), keep = list(), remove_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
remove_private_tagsRemove private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
get_shared_tags()
Retrieve the shared tags of the patient.
Patient$get_shared_tags()
remove_empty_studies()
Remove empty studies from patient.
Patient$remove_empty_studies()
clone()
The objects of this class are cloneable with this method.
Patient$clone(deep = FALSE)
deepWhether to make a deep clone.
Query data in the Orthanc server
query_orthanc( client, level, query = list(), labels = character(), labels_constraint = "All", limit = 1000L, since = 0L, retrieve_all_resources = TRUE, lock_children = FALSE )query_orthanc( client, level, query = list(), labels = character(), labels_constraint = "All", limit = 1000L, since = 0L, retrieve_all_resources = TRUE, lock_children = FALSE )
client |
Orthanc API client. |
level |
Level of the query ('Patient', 'Study', 'Series', 'Instance'). |
query |
Named-list that specifies the filters on the level related DICOM tags. |
labels |
Character vector of labels to look for in resources. |
labels_constraint |
Contraint on the labels ('All', 'Any', 'None'). |
limit |
Limit the number of reported instances (default is |
since |
Show only the resources since the index specified in the |
retrieve_all_resources |
Retrieve all resources since the index
specified in the |
lock_children |
If |
A list of resources.
client <- Orthanc$new("https://orthanc.uclouvain.be/demo") query_orthanc(client, "Patient", list(PatientName = "HN_P001"))client <- Orthanc$new("https://orthanc.uclouvain.be/demo") query_orthanc(client, "Patient", list(PatientName = "HN_P001"))
Wrapper around Orthanc API when dealing with a remote modality
An instance of RemoteModality.
orthanc::Modality -> RemoteModality
An abstract class for a DICOM Resource
An R6 instance of class "Resource".
identifierOrthanc identifier of the resource.
main_dicom_tagsMain DICOM tags for the resource.
is_lockedGet or set whether resource is locked.
new()
Create a new Resource.
Resource$new(id, client, lock_children = FALSE)
idOrthanc identifier of the resource.
clientOrthanc client.
lock_childrenIf lock_children is TRUE, the resource children
(e.g., instances of a series via Series$instances) will be cached at
the first query rather than queried every time. This is useful when you
want to filter the children of a resource and want to maintain the
filter result.
get_main_information()
Get main information for the resource.
Resource$get_main_information()
print()
Print a Resource object.
Resource$print(...)
...Not currently used.
set_child_resources()
Set child resources.
Resource$set_child_resources(resources)
resourcesList of resources.
clone()
The objects of this class are cloneable with this method.
Resource$clone(deep = FALSE)
deepWhether to make a deep clone.
Retrieve the NIfTI file or ZIP Archive contents for a list of resources and
write them to a path on disk. If mirai::daemons() has been used to set
persistent background processes, these functions will write resources to
disk in parallel using all available processes.
retrieve_and_write_nifti( resources, path, compress = TRUE, stream = FALSE, progress = rlang::is_interactive() ) retrieve_and_write_archives( resources, path, stream = FALSE, progress = rlang::is_interactive() ) retrieve_and_write_images(resources, path, progress = rlang::is_interactive())retrieve_and_write_nifti( resources, path, compress = TRUE, stream = FALSE, progress = rlang::is_interactive() ) retrieve_and_write_archives( resources, path, stream = FALSE, progress = rlang::is_interactive() ) retrieve_and_write_images(resources, path, progress = rlang::is_interactive())
resources |
List of resources. |
path |
Path where you want to write the resources. |
compress |
Compress to gzip ( |
stream |
Should the resource be streamed and written to disk in
chunks? Default is |
progress |
Whether to show progress bars. By default, progress bars are
enabled in interactive sessions (i.e., if |
Nothing, invisibly.
## Not run: client <- Orthanc$new("https://orthanc.uclouvain.be/demo") study_id <- client$get_studies()[[1]] study <- Study$new(study_id, client) retrieve_and_write_nifti(study$series, tempdir()) retrieve_and_write_archives(study$series, tempdir()) retrieve_and_write_images(study$instances, tempdir()) ## End(Not run)## Not run: client <- Orthanc$new("https://orthanc.uclouvain.be/demo") study_id <- client$get_studies()[[1]] study <- Study$new(study_id, client) retrieve_and_write_nifti(study$series, tempdir()) retrieve_and_write_archives(study$series, tempdir()) retrieve_and_write_images(study$instances, tempdir()) ## End(Not run)
Retrieve the DICOM file contents for a list of Patients and write them
to a path on disk. DICOM files are saved to disk in a directory structure
of Patient -> Study -> Series -> File. If mirai::daemons() has
been used to set persistent background processes, this function will write
patients to disk in parallel using all available processes.
retrieve_and_write_patients( patients, path, stream = FALSE, progress = rlang::is_interactive() )retrieve_and_write_patients( patients, path, stream = FALSE, progress = rlang::is_interactive() )
patients |
List of Patients. |
path |
Path where you want to write the patients (files). |
stream |
Should the resources be streamed and written to disk in
chunks? Default is |
progress |
Whether to show progress bars. By default, progress bars are
enabled in interactive sessions (i.e., if |
Nothing, invisibly.
## Not run: client <- Orthanc$new("https://orthanc.uclouvain.be/demo") patients <- find_patients(client, query = list(PatientName = "HN_P001")) retrieve_and_write_patients(patients, tempdir()) ## End(Not run)## Not run: client <- Orthanc$new("https://orthanc.uclouvain.be/demo") patients <- find_patients(client, query = list(PatientName = "HN_P001")) retrieve_and_write_patients(patients, tempdir()) ## End(Not run)
An abstract class for a DICOM Series resource.
An R6 instance of class "Series".
orthanc::Resource -> Series
instancesInstances
instances_idsInstances identifiers
num_instancesNumber of instances
instances_tagsInstances tags
uidSeriesInstanceUID
manufacturerManufacturer
dateSeries Date
modalityModality
series_numberSeries Number
performed_procedure_step_descriptionPerformed Procedure Step Description
protocol_nameProtocol Name
station_nameStation Name
descriptionSeries Description
body_part_examinedBody Part Examined
sequence_nameSequence Name
cardiac_number_of_imagesCardiac Number of Images
image_in_acquisitionImages in Acquisition
number_of_temporal_positionsNumber of Temporal Positions
number_of_slicesNumber of Slices
number_of_time_slicesNumber of Time Slices
image_orientation_patientImage Orientation Patient
series_typeSeries Type
operators_nameOperators Name
acquisition_device_processing_descriptionAcquisition Device Processing Description
contrast_bolus_agentContrast Bolus Agent
is_stableIs stable?
last_updateLast Update
labelsGet or add labels
study_identifierParent study identifier
parent_studyParent study
parent_patientParent patient
shared_tagsShared tags
statisticsStatistics
get_main_information()
Get series information.
Series$get_main_information()
add_label()
Add label to resource.
Series$add_label(label)
labelLabel.
has_label()
Test if resource has label.
Series$has_label(label)
labelLabel.
remove_label()
Delete label from resource.
Series$remove_label(label)
labelLabel.
anonymize()
Anonymize Series
Series$anonymize( remove = list(), replace = list(), keep = list(), keep_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE, dicom_version = NULL )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
keep_private_tagsKeep private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
dicom_versionVersion of the DICOM standard to use for anonymization.
anonymize_as_job()
Anonymize Series
Series$anonymize_as_job( remove = list(), replace = list(), keep = list(), keep_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE, dicom_version = NULL )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
keep_private_tagsKeep private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
dicom_versionVersion of the DICOM standard to use for anonymization.
modify()
Modify Series
Series$modify( remove = list(), replace = list(), keep = list(), remove_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
remove_private_tagsRemove private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
modify_as_job()
Modify Series
Series$modify_as_job( remove = list(), replace = list(), keep = list(), remove_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
remove_private_tagsRemove private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
get_zip_archive_content()
Get bytes of the zip archive.
Series$get_zip_archive_content()
download_archive()
Download zip archive to path.
Series$download_archive(path, stream = FALSE)
pathPath on disk.
streamShould the resource be streamed and written to disk in
chunks? Default is FALSE, which means the resource file contents are
retrieved in their entirety and written to disk all at once.
get_shared_tags()
Retrieve the shared tags of the series.
Series$get_shared_tags()
remove_empty_instances()
Remove empty instances from series.
Series$remove_empty_instances()
get_nifti_file_content()
Get bytes of NIfTI file content.
Series$get_nifti_file_content(compress = TRUE)
compressCompress to gzip (nii.gz) Default is TRUE.
download_nifti()
Download series as NIfTI.
Series$download_nifti(path, compress = TRUE, stream = FALSE)
pathPath on disk.
compressCompress to gzip (nii.gz) Default is TRUE.
streamShould the resource be streamed and written to disk in
chunks? Default is FALSE, which means the resource contents are
retrieved in their entirety and written to disk all at once.
clone()
The objects of this class are cloneable with this method.
Series$clone(deep = FALSE)
deepWhether to make a deep clone.
An abstract class for a DICOM Study resource.
An R6 instance of class "Study".
orthanc::Resource -> Study
patient_identifierParent patient identifier
parent_patientParent patient
referring_physician_nameReferring Physician Name
requesting_physicianRequesting Physician
dateStudy Date
study_idStudy ID
uidStudyInstanceUID
patient_informationPatient Main DICOM Tags
seriesSeries
series_idsSeries identifiers
instancesInstances
instances_idsInstances identifiers
num_seriesNumber of series
num_instancesNumber of instances
instances_tagsInstances tags
accession_numberAccession Number
descriptionDescription
institution_nameInstitution Name
requested_procedure_descriptionRequested Procedure Description.
is_stableIs stable?
last_updateLast Update
labelsGet or add labels
shared_tagsShared Tags
statisticsStatistics
get_main_information()
Get study information.
Study$get_main_information()
add_label()
Add label to resource.
Study$add_label(label)
labelLabel.
has_label()
Test if resource has label.
Study$has_label(label)
labelLabel.
remove_label()
Delete label from resource.
Study$remove_label(label)
labelLabel.
anonymize()
Anonymize Study
Study$anonymize( remove = list(), replace = list(), keep = list(), keep_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE, dicom_version = NULL )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
keep_private_tagsKeep private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
dicom_versionVersion of the DICOM standard to use for anonymization.
anonymize_as_job()
Anonymize Study
Study$anonymize_as_job( remove = list(), replace = list(), keep = list(), keep_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE, dicom_version = NULL )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
keep_private_tagsKeep private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
dicom_versionVersion of the DICOM standard to use for anonymization.
modify()
Modify Study
Study$modify( remove = list(), replace = list(), keep = list(), remove_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
remove_private_tagsRemove private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
modify_as_job()
Modify Study as Job
Study$modify_as_job( remove = list(), replace = list(), keep = list(), remove_private_tags = FALSE, keep_source = TRUE, priority = 0L, permissive = FALSE, private_creator = NULL, force = FALSE )
removeList of tags to remove.
replaceNamed-list of tags to replce.
keepList of tags to keep unchanged.
remove_private_tagsRemove private tags from DICOM instance.
keep_sourceKeep original resource.
priorityPriority of the job.
permissiveIgnore errors during individual steps of the job?
private_creatorPrivate creator to be used for private tags in replace.
forceForce tags to be changed.
get_zip_archive_content()
Get bytes of the zip archive.
Study$get_zip_archive_content()
download_archive()
Download zip archive to path.
Study$download_archive(path, stream = FALSE)
pathPath on disk.
streamShould the resource be streamed and written to disk in
chunks? Default is FALSE, which means the resource file contents are
retrieved in their entirety and written to disk all at once.
get_shared_tags()
Retrieve the shared tags of the study.
Study$get_shared_tags()
remove_empty_series()
Remove empty series from study.
Study$remove_empty_series()
clone()
The objects of this class are cloneable with this method.
Study$clone(deep = FALSE)
deepWhether to make a deep clone.