V.2 Substance Administration Query Information Model Definition

The Substance Administration Query Information Model is identified by the SOP Class negotiated at Association establishment time. The SOP Class is composed of both an Information Model and a DIMSE-C Service Group.

Information Model Definitions for standard SOP Classes of the Substance Administration Query Service Class are defined in this Annex. A Substance Administration Query Information Model Definition contains:

— an Entity-Relationship Model Definition

— a Key Attributes Definition.

V.2.1 Entity-Relationship Model Definition

Substance Administration Query Information Models consist of a single level that includes all Matching Key Attributes and all Return Key Attributes that may be sent from the SCU to the SCP in the request, and whose values are expected to be returned from the SCP to the SCU in the response (or Query items). The Matching Key Attribute values in the request specify the Query items that are to be returned in the response. All Key Attributes (the Matching Key Attributes and the Return Key Attributes) in the request determine which Attribute values are returned in the response for that Query.

V.2.2 Attributes Definition

Attributes are defined for each entity in the internal Entity-Relationship Model. An Identifier in a C-FIND request shall contain values to be matched against the Attributes of the Entities in a Substance Administration Query Information Model. For any Query request, the set of entities for which Attributes are returned shall be determined by the set of Matching and Return Key Attributes specified in the Identifier.

V.2.2.1 Attribute Types

All Attributes of entities in a Substance Administration Query Information Model shall be specified both as a Matching Key Attribute (either required or optional) and as a Return Key Attribute.

V.2.2.1.1 Matching Key Attributes

The Matching Key Attributes are Keys, which select Query items to be included in a requested Query.

V.2.2.1.1.1 Required Matching Key Attributes

A Substance Administration Query Service SCP shall support matching based on values of all Required Matching Key Attributes of the C-FIND request.

V.2.2.1.1.2 Optional Matching Key Attributes

In the Substance Administration Query Information Model, a set of Attributes may be defined as Optional Matching Key Attributes. Optional Matching Key Attributes contained in the Identifier of a C-FIND request may induce two different types of behavior depending on support for matching by the SCP. If the SCP

— does not support matching on the Optional Matching Key Attribute, then the Optional Matching Key Attribute shall be ignored for matching but shall be processed in the same manner as a Return Key Attribute.

— supports matching of the Optional Matching Key Attribute, then the Optional Matching Key Attribute shall be processed in the same manner as a Required Matching Key.

Notes: 1. The Conformance Statement of the SCP lists the Optional Matching Key Attributes that are supported for matching.

2. An SCU can not expect the SCP to support a match on an Optional Matching Key.

V.2.2.1.2 Return Key Attributes

The values of Return Key Attributes to be retrieved with the Query are specified with zero-length (universal matching) in the C-FIND request. SCPs shall support Return Key Attributes defined by a Substance Administration Query Information Model according to the Data Element Type (1, 1C, 2, 2C, 3) as defined in PS 3.5.

Every Matching Key Attribute shall also be considered as a Return Key Attribute. Therefore the C-FIND response shall contain, in addition to the values of the requested Return Key Attributes, the values of the requested Matching Key Attributes.

Notes: 1 The Conformance Statement of the SCP lists the Return Key Attributes of Type 3 that are supported.

2. An SCU may choose to supply any subset of Return Key Attributes.

3. An SCU can not expect to receive any Type 3 Return Key Attributes.

4. Return Key attributes with VR of SQ may be specified either with zero-length, or with a zero-length item in the sequence.

V.2.2.2 Attribute Matching

The following types of matching, which are defined by the Query/Retrieve Service Class in Annex C, may be performed on Matching Key Attributes in the Substance Administration Query Service Class. Different Matching Key Attributes may be subject for different matching types. The Substance Administration Query Information Model defines the type of matching for each Required Matching Key Attribute. The Conformance Statement of the SCP shall define the type of matching for each Optional Matching Key Attribute. The types of matching are:

— Single Value Matching

— Sequence Matching

The following type of matching, which is defined by the Query/Retrieve Service Class in Annex C of this Part, shall be performed on Return Key Attributes in the Substance Administration Query Service Class.

— Universal Matching

See Section C.2.2.2 and subsections for specific rules governing of Matching Key Attribute encoding for and performing of different types of matching.

The Specific Character Set (0008,0005) Attribute may be present in the Identifier but is never matched, i.e., it is not considered a Matching Key Attribute. See Section C.2.2.2 for details.