7.1.5.1.1.9. Query

7.1.5.1.1.9.1. Trigger Events

This message is emitted by the archive for queries triggered by UI or by C-FIND on following levels :

  • Patient
  • Study
  • Series
  • Instance
  • Modality Worklist Entry

7.1.5.1.1.9.2. Message Structure

Table 7.49 Entities in Query Audit Message
Event Identification
Active Participant : Initiator
Active Participant : Archive application
Audit Source
Participant Object Identification : C-FIND Query OR Participant Object Identification : QIDO Query
Table 7.50 Event Identification
Field Name Opt Description
EventID M
EV (110112, DCM, ‘Query’)
EventActionCode M
Execute ⇒ ‘E’
EventDateTime M
The time at which the event occurred
EventOutcomeIndicator M
Success ⇒ ‘0’
Minor failure ⇒ ‘4’
EventOutcomeDescription M
Error/Exception message when EventOutcomeIndicator ⇒ ‘4’
Table 7.51 Active Participant : Initiator
Field Name Opt Description
UserID M
Triggered by C-FIND ⇒ ‘Calling AE title in association’
Triggered from UI : Secured Archive ⇒ ‘User name of logged in user’
Triggered from UI : Unsecured Archive ⇒ ‘Remote IP address’
UserIDTypeCode U
Triggered by C-FIND ⇒ EV (110119, DCM, ‘Station AE Title’)
Triggered from UI : Secured archive ⇒ EV (113871, DCM, ‘Person ID’)
Triggered from UI : Unsecured archive ⇒ EV (110182, DCM, ‘Node ID’)
UserTypeCode U
Triggered by C-FIND : Application ⇒ ‘2’
Triggered from UI : Person ⇒ ‘1’
UserIsRequestor M
true
RoleIDCode M
EV (110153, DCM, ‘Source’)
NetworkAccessPointID U
Hostname/IP Address of calling host
NetworkAccessPointTypeCode U
NetworkAccessPointID is host name ⇒ ‘1’
NetworkAccessPointID is an IP address ⇒ ‘2’
Table 7.52 Active Participant : Archive application
Field Name Opt Description
UserID M
Triggered by C-FIND ⇒ ‘Called AE title in association’
Triggered from UI ⇒ ‘Request URI’
UserIDTypeCode U
Triggered by C-FIND ⇒ EV (110119, DCM, ‘Station AE Title’)
Triggered from UI ⇒ EV (12, RFC-3881, ‘URI’)
UserTypeCode U
Application ⇒ ‘2’
AlternativeUserID MC
Process ID of Audit logger
UserIsRequestor M
false
RoleIDCode M
EV (110152, DCM, ‘Destination’)
NetworkAccessPointID U
Hostname/IP Address of the connection referenced by Audit logger
NetworkAccessPointTypeCode U
NetworkAccessPointID is host name ⇒ ‘1’
NetworkAccessPointID is an IP address ⇒ ‘2’
Table 7.53 Participant Object Identification : C-FIND Query
Field Name Opt Description
ParticipantObjectID M
For patient query ⇒ ‘1.2.840.10008.5.1.4.1.2.1.1’
For study/series/instance query ⇒ ‘1.2.840.10008.5.1.4.1.2.2.1’
For MWL query ⇒ ‘1.2.840.10008.5.1.4.31’
ParticipantObjectTypeCode M
SystemObject ⇒ ‘2’
ParticipantObjectTypeCodeRole M
Report ⇒ ‘3’
ParticipantObjectIDTypeCode M
EV (110181, DCM, ‘SOP Class UID’)
ParticipantObjectQuery M
Base64 encoded value of Query keys
ParticipantObjectDetail MC
Base64 encoded value for ImplicitVRLittleEndian ‘1.2.840.10008.1.2’ ⇒ ‘type=TransferSyntax value=MS4yLjg0MC4xMDAwOC4xLjI=’”
Table 7.54 Participant Object Identification : QIDO Query
Field Name Opt Description
ParticipantObjectID M
For patient query ⇒ ‘SearchForPatients’
For study query ⇒ ‘SearchForStudies’
For series query ⇒ ‘SearchForStudySeries’ or ‘SearchForSeries’
For Instance query ⇒ ‘SearchForInstances’ or ‘SearchForStudyInstances’ or ‘SearchForStudySeriesInstances’
For MWL query ⇒ ‘SearchForSPS’
ParticipantObjectTypeCode M
SystemObject ⇒ ‘2’
ParticipantObjectTypeCodeRole M
Query ⇒ ‘24’
ParticipantObjectIDTypeCode M
EV (QIDO, 99DCM4CHEE, ‘QIDO_Query’)
ParticipantObjectQuery M
Base64 encoded value of Request URI plus the Query String
ParticipantObjectDetail MC
Base64 encoded value for ‘UTF-8’ ⇒ ‘type=QueryEncoding value=VVRGLTg=’

7.1.5.1.1.9.3. Sample Message

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AuditMessage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.dcm4che.org/DICOM/audit-message.rnc">

    <EventIdentification EventActionCode="E" EventDateTime="2017-07-27T09:12:21.331+02:00" EventOutcomeIndicator="0">
        <EventID csd-code="110112" codeSystemName="DCM" originalText="Query"/>
    </EventIdentification>

    <ActiveParticipant UserID="127.0.0.1" UserTypeCode="1" UserIsRequestor="true" NetworkAccessPointID="127.0.0.1" NetworkAccessPointTypeCode="2">
        <RoleIDCode csd-code="110153" codeSystemName="DCM" originalText="Source"/>
        <UserIDTypeCode csd-code="110182" codeSystemName="DCM" originalText="Node ID"/>
    </ActiveParticipant>

    <ActiveParticipant UserID="/dcm4chee-arc/aets/DCM4CHEE/rs/patients" AlternativeUserID="3390" UserTypeCode="2" UserIsRequestor="false" NetworkAccessPointID="localhost" NetworkAccessPointTypeCode="1">
        <RoleIDCode csd-code="110152" codeSystemName="DCM" originalText="Destination"/>
        <UserIDTypeCode csd-code="12" codeSystemName="RFC-3881" originalText="URI"/>
    </ActiveParticipant>

    <AuditSourceIdentification AuditSourceID="dcm4chee-arc">
        <AuditSourceTypeCode csd-code="4"/>
    </AuditSourceIdentification>

    <ParticipantObjectIdentification ParticipantObjectID="SearchForPatients" ParticipantObjectTypeCode="2" ParticipantObjectTypeCodeRole="24">
        <ParticipantObjectIDTypeCode csd-code="QIDO" originalText="QIDO_Query" codeSystemName="99DCM4CHEE"/>
        <ParticipantObjectQuery>L2RjbTRjaGVlLWFyYy9hZXRzL0RDTTRDSEVFL3JzL3BhdGllbnRzaW5jbHVkZWZpZWxkPWFsbCZvZmZzZXQ9MCZsaW1pdD0yMSZvcmRlcmJ5PVBhdGllbnROYW1l</ParticipantObjectQuery>
        <ParticipantObjectDetail type="QueryEncoding" value="VVRGLTg="/>
    </ParticipantObjectIdentification>

</AuditMessage>