V.4 DIMSE-C Service Group

One DIMSE-C Service is used in the construction of SOP Classes of the Substance Administration Query Service Class. The following DIMSE-C operation is used.

— C-FIND

V.4.1 C-FIND Operation

SCPs of SOP Classes of the Substance Administration Query Service Class are capable of processing queries using the C-FIND operation as described in PS 3.7. The C-FIND operation is the mechanism by which queries are performed. Matches against the keys present in the Identifier are returned in C-FIND responses.

V.4.1.1 C-FIND Service Parameters

V.4.1.1.1 SOP Class UID

The SOP Class UID identifies the Substance Administration Query Information Model against which the C-FIND is to be performed. Support for the SOP Class UID is implied by the Abstract Syntax UID of the Presentation Context used by this C-FIND operation.

V.4.1.1.2 Priority

The Priority Attribute defines the requested priority of the C-FIND operation with respect to other DIMSE operations being performed by the same SCP.

Processing of priority requests is not required of SCPs. Whether or not an SCP supports priority processing and the meaning of the different priority levels shall be stated in the Conformance Statement of the SCP.

V.4.1.1.3 Identifier

Both the C-FIND request and response contain an Identifier encoded as a Data Set (see PS 3.5).

V.4.1.1.3.1 Request Identifier Structure

An Identifier in a C-FIND request shall contain

— Key Attributes values to be matched against the values of Attributes specified in that SOP Class.

— Conditionally, the Attribute Specific Character Set (0008,0005). This Attribute shall be included if expanded or replacement character sets may be used in any of the Attributes in the Request Identifier. It shall not be included otherwise.

Note: This means that Specific Character Set (0008,0005) is included if the SCU supports expanded or replacement character sets in the context of this service. It will not be included if expanded or replacement character sets are not supported by the SCU.

The Key Attributes and values allowable for the query shall be defined in the SOP Class definition for the corresponding Substance Administration Query Information Model.

V.4.1.1.3.2 Response Identifier Structure

The C-FIND response shall not contain Attributes that were not in the request or specified in this section.

An Identifier in a C-FIND response shall contain:

— Key Attributes with values corresponding to Key Attributes contained in the Identifier of the request (Key Attributes as defined in V.2.2.1.)

— Conditionally, the Attribute Specific Character Set (0008,0005). This Attribute shall be included if expanded or replacement character sets may be used in any of the Attributes in the Response Identifier. It shall not be included otherwise. The C-FIND SCP is not required to return responses in the Specific Character Set requested by the SCU if that character set is not supported by the SCP. The SCP may return responses with a different Specific Character Set.

Note: This means that Specific Character Set (0008,0005) is included if the SCP supports expanded or replacement character sets in the context of this service. It will not be included if expanded or replacement character sets are not supported by the SCP.

— Conditionally, the Attribute HL7 Structured Document Reference Sequence (0040,A390) and its subsidiary Sequence Items as specified in the SOP Common Module (see PS3.3). This Attribute shall be included if HL7 Structured Documents are referenced within the Identifier, e.g., in the Pertinent Documents Sequence (0038,0100).

V.4.1.1.4 Status

Table V.4.-1 defines the status code values that might be returned in a C-FIND response. Fields related to status code values are defined in PS 3.7.

Table V.4-1C-FIND RESPONSE STATUS VALUES

Service Status Further Meaning Status Codes Related Fields
Failure Refused: Out of Resources A700 (0000,0902)
Identifier Does Not Match SOP Class A900 (0000,0901) (0000,0902)
Unable to process Cxxx (values C000 through CFFF as assigned by the implementation) (0000,0901) (0000,0902)
Cancel Matching terminated due to Cancel request FE00 None
Success Matching is complete - No final Identifier is supplied. 0000 None
Pending Matches are continuing - Current Match is supplied and any Optional Keys were supported in the same manner as Required Keys. FF00 Identifier
Matches are continuing - Warning that one or more Optional Keys were not supported for existence for this Identifier. FF01 Identifier

Note: Status Codes are returned in DIMSE response messages (See PS 3.7). The code values stated in column "Status Codes" are returned in Status Command Element (0000,0900).

V.4.1.2 C-FIND SCU Behavior

All C-FIND SCUs shall be capable of generating query requests that meet the requirements of the Query Search Method (see V.4.1.3.1).

Required Keys and Optional Keys associated with the Query may be contained in the Identifier.

An SCU conveys the following semantics using the C-FIND requests and responses:

— The SCU requests that the SCP perform a match of all keys specified in the Identifier of the request against the information it possesses of the Query specified in the request.

— The SCU shall interpret Pending responses to convey the Attributes of a match of an item.

— The SCU shall interpret a response with a status equal to Success, Failure, or Cancel to convey the end of Pending responses.

— The SCU shall interpret a Failure response to a C-FIND request as an indication that the SCP is unable to process the request.

— The SCU may cancel the C-FIND service by issuing a C-FIND-CANCEL request at any time during the processing of the C-FIND. The SCU shall recognize a status of Cancel to indicate that the C-FIND-CANCEL was successful.

V.4.1.3 C-FIND SCP Behavior

All C-FIND SCPs shall be capable of processing queries that meet the requirements of the Query Search (see V.4.1.3.1).

An SCP conveys the following semantics using the C-FIND requests and responses:

— The SCP is requested to perform a match of all the keys specified in the Identifier of the request, against the information it possesses. Attribute matching is performed using the key values specified in the Identifier of the C-FIND request as defined in Section V.2.

— The SCP generates at most one C-FIND response for a match using the "Query" Search method. Such a response shall contain an Identifier whose Attributes contain values from the match. The response shall contain a status of Pending.

— When matching is complete and any match has been sent, the SCP generates a C-FIND response that contains a status of Success. A status of Success shall indicate that a response has been sent for any match known to the SCP.

Notes: 1. No Identifier is contained in a response with a status of Success. For a complete definition, see PS 3.7.

2. When there are no matches, then no responses with a status of Pending are sent, only a single response with a status of Success.

— The SCP shall generate a response with a status of Failure if it is unable to process the request. A Failure response shall contain no Identifier.

— If the SCP receives a C-FIND-CANCEL indication before it has completed the processing of the matches it shall interrupt the matching process and return a status of Cancel.

V.4.1.3.1 Query Search Method

The following procedure is used to generate matches.

The key match attributes contained in the Identifier of the C-FIND request are matched against the values of the Key Attributes for each Query entity. For each entity for which the Attributes match all of the specified match attributes, construct an Identifier. This Identifier shall contain all of the values of the Attributes for this entity that match those in the C-FIND request. Return a response for each such Identifier. If there are no matching keys, then there are no matches; return a response with a status equal to Success and with no Identifier.