DICOM PS3.18 2019a - Web Services |
---|
DICOM QIDO-RS defines several action types. An implementation shall support the following action types:
This action searches for DICOM Studies that match specified search parameters and returns a list of matching studies and the requested attributes for each study.
This action searches for DICOM Series that match specified search parameters and returns a list of matching series and the requested attributes for each series.
This action searches for DICOM Instances that match specified search parameters and returns a list of matching instances and the requested attributes for each instance.
The specific resources to be used for the search actions shall be as follows:
Each {attributeID} must refer to one of:
Series IE attributes (SearchForSeries or SearchForInstances requests only)
Composite Instance IE attributes (SearchForInstances requests only)
Additional Query/Retrieve Attributes (Section C.3.4 in PS3.4 )
See Section 6.7.1.1.1 for {attributeID} and {value} encoding rules
The “limit” parameter value is an unsigned integer, which specifies the maximum number of results the origin server shall return. If the “limit” parameter is not present the origin server shall return the maximum number of results in a single response that it supports.
The “offset” parameter value is an unsigned integer, which specifies the number of results the origin server shall skip before the first returned result. If the “offset” query parameter is not present, its value is 0.
See Section 6.1.4.
Each {attributeID} query key shall be unique unless the associated DICOM Attribute allows UID List matching (see Section C.2.2.2.2 in PS3.4 ), in which case each {value} will be interpreted to be an element of the UID List.
The acceptable values for {value} are determined by the types of matching allowed by C-FIND for its associated {attributeID} (see Section C.2.2.2 in PS3.4 ). All characters in {value} that are disallowed for URIs shall be percent-encoded. See [RFC3986] for details.
If an {attributeID} is passed as the value of an "includefield" query key this is equivalent to C-FIND Universal matching for the specified attribute (see Section C.2.2.2.3 in PS3.4 ).
{attributeID} can be one of the following:
{dicomTag} is the eight character hexadecimal string corresponding to the Tag of a DICOM Attribute (see Chapter 6 in PS3.6 ).
{dicomKeyword} is the Keyword of a DICOM Attribute (see Chapter 6 in PS3.6 ).
Examples of valid QIDO-RS URLs:
http://dicomrs/studies?PatientID=11235813&StudyDate=20130509
http://dicomrs/studies?00100010=SMITH*&00101002.00100020=11235813&limit=25
http://dicomrs/studies?00100010=SMITH*&OtherPatientIDsSequence.00100020=11235813
http://dicomrs/studies?PatientID=11235813&includefield=00081048&includefield=00081049&includefield=00081060
http://dicomrs/studies?PatientID=11235813&StudyDate=20130509-20130510
http://dicomrs/studies?StudyInstanceUID=1.2.392.200036.9116.2.2.2.2162893313.1029997326.94587%2c1.2.392.200036.9116.2.2.2.2162893313.1029997326.94583
The origin server shall perform the query indicated in the request.
The search requests shall be idempotent, that is, two separate search requests with the same target resource, query parameters, and header fields shall return the same ordered list of results, if the set of matching results on the origin server has not changed.
The results returned in the response are determined as follows:
is the maximum number of results the origin server allows in a single response.
is the value of the "offset" query parameter. It is the index of the first element in results.
is the number of returned results. It is equal to the minimum of:
is the number of remaining matches. It is equal to: matches – (offset + results).
The response is determined as follows:
If (results=0) then there were no matches, and a 204 (No Content) response shall be returned with an empty payload.
Otherwise, a 200 (OK) response shall be returned with a payload containing results
If (remaining > 0) the response shall include a Warning header field (see [RFC7234] Section 5.5) containing the following:
Warning: 299 {+service}: There are <remaining> additional results that can be requested
If the set of matching results has changed due to changes in the origin server contents, then the ordered list of results may be different for subsequent transactions with identical requests, and the results of using the "limit" and "offset" parameters may be inconsistent
The response will be in an Acceptable Media Type.
The matching semantics for each attribute are determined by the types of matching allowed by C-FIND (see Section C.2.2.2 in PS3.4 ).
Matching results shall be generated according to the Hierarchical Search Method described in Section C.4.1.3.1.1 in PS3.4 .
Combined Datetime matching shall be performed (see Section C.2.2.2.5 in PS3.4 ).
If a QIDO-RS provider is acting as a proxy for a C-FIND SCP that does not support combined Datetime matching the QIDO-RS provider will need to perform a C-FIND request using Date only and filter results outside the time range before returning a QIDO-RS response
If the TimezoneOffsetFromUTC / 00080201 query key is included in the request, dates and times in the request are to be interpreted in the specified time zone.
If the "fuzzymatching=true" query key/value is included in the request and it is supported then additional fuzzy semantic matching of person names shall be performed in the manner specified in the DICOM Conformance Statement for the service provider.
If the "fuzzymatching=true" query key/value is included in the request and it is not supported, the response shall include the following HTTP Warning header (see [RFC7234] Section 5.5):
Warning: 299 {SERVICE}: "The fuzzymatching parameter is not supported. Only literal matching has been performed."
where {SERVICE} is the base URL for the QIDO-RS provider. This may be a combination of scheme (http or https), host, port, and application.
The Warning header is separate from the Status Line and does not affect the returned Status Code.
Providers of the SearchForStudies service shall support the search query keys described in Table 6.7.1-1:
Providers of the SearchForSeries service shall support the search query keys described in Table 6.7.1-1a:
If {StudyInstanceUID} is not specified in the URL and this form of Relational Query is supported, all Study-level attributes specified in Table 6.7.1-1 shall also be supported.
Providers of the SearchForInstances service shall support the search query keys described in Table 6.7.1-1b:
If {StudyInstanceUID} is not specified in the URL and this form of Relational Query is supported, all Study-level attributes specified in Table 6.7.1-1 shall also be supported.
If {SeriesInstanceUID} is not specified in the URL and this form of Relational Query is supported, all Series-level attributes specified in Table 6.7.1-1a shall also be supported.
For each matching Study, the QIDO-RS provider shall return all attributes in accordance with Table 6.7.1-2:
Table 6.7.1-2. QIDO-RS STUDY Returned Attributes
Series Level and Instance Level attributes passed as "includefield" query values shall not be returned.
The above list is consistent with those required for IHE RAD-14 (see http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Vol2.pdf Table 4.14-1).
For each matching Series, the QIDO-RS provider shall return all attributes listed in Table 6.7.1-2a:
Table 6.7.1-2a. QIDO-RS SERIES Returned Attributes
Shall be empty if the resource cannot be retrieved via WADO-RS |
||
All other Series Level DICOM Attributes passed as {attributeID} query keys that are supported by the service provider as matching or return attributes |
||
All other Study or Series Level DICOM Attributes passed as "includefield" query values that are supported by the service provider as return attributes |
||
All available Series Level DICOM Attributes if the "includefield" query key is included with a value of "all" |
||
If {StudyInstanceUID} is not specified, all Study-level attributes specified in Table 6.7.1-2 |
Instance Level attributes passed as "includefield" query values shall not be returned.
The above list is consistent with the attributes required for IHE RAD-14 (see http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Vol2.pdf Table 4.14-1).
For each matching instance, the QIDO-RS provider shall return all attributes listed in Table 6.7.1-2b:
Table 6.7.1-2b. QIDO-RS Instance Returned Attributes
Shall be empty if the resource cannot be retrieved via WADO-RS |
||
All other Instance Level DICOM Attributes passed as {attributeID} query keys that are supported by the service provider as matching or return attributes |
||
All other Study, Series or Instance Level DICOM Attributes passed as "includefield" query values that are supported by the service provider as return attributes |
||
All available Instance Level DICOM Attributes if the "includefield" query key is included with a value of "all" |
||
If {StudyInstanceUID} is not specified, all Study-level attributes specified in Table 6.7.1-2 |
||
If {SeriesInstanceUID} is not specified, all Series-level attributes specified in Table 6.7.1-2a |
The above list is consistent with the attributes required for IHE RAD-14 (see http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Vol2.pdf Table 4.14-1 and Table 4.14-2).
The server shall support returning query results as:
The result format used shall depend on the Accept header of the request.
Content-Type: multipart/related; type="application/dicom+xml"
The response is a multipart message body where each part is a DICOM PS3.19 XML NativeDicomModel element containing the attributes for one matching Study, Series or Instance (see Section A.1 in PS3.19 ).
The provider of the QIDO service may use a BulkData reference at its discretion (see Table A.1.5-2 in PS3.19 and Section 6.5.6). For example, this might be done to avoid encoding a large DICOM Value Field, such as an image thumbnail.
If there are no matching results, the message body will be empty.
Each part in the multipart response will contain the following HTTP headers:
Content-Type: application/dicom+json
The response is a DICOM JSON message containing a DICOM JSON property for each matching study, series or instance containing sub-properties describing the matching attributes for each study, series or instance (see Section F.2).
The provider of the QIDO service may use a BulkDataURI reference at its discretion (see Section F.2.6). For example, this might be done to avoid encoding a large DICOM Value Field, such as an image thumbnail.
If there are no matching results, the JSON message is empty.
Table 6.7-1 lists the HTTP status codes that shall be used to report any of the associated error and warning situations. Other error codes may be present for other error and warning situations.
Table 6.7-1. QIDO-RS HTTP Status Codes
DICOM PS3.18 2019a - Web Services |
---|