Test
not (/AuditMessage/EventIdentification/EventID) or /AuditMessage/EventIdentification/EventID/@csd-code='110103'E - 1
Description
/AuditMessage/EventIdentification/EventID@csd-code must be '110103' if Event/EventID present ( PS3.15 , A.5.3.6 )
Test
not (/AuditMessage/EventIdentification/@EventActionCode) or matches(/AuditMessage/EventIdentification/@EventActionCode, '^[CRUD]$')E - 2
Description
/AuditMessage/EventIdentification/@EventActionCode must have this form : '^[CRUD]$' if Event/EventActionCode present ( PS3.15 , A.5.3.6 )
Test
count(/AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ])>0E - 3
Description
The number of Studies SHALL be greater than or equal to 1 ( PS3.15 , A.5.3.6 )
Test
count(/AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1' and @ParticipantObjectTypeCodeRole='1'])>0E - 4
Description
The number of Patient SHALL be greater than or equal to 1 ( PS3.15 , A.5.3.6 )
Test
not (/AuditMessage/EventIdentification/EventID) or /AuditMessage/EventIdentification/EventID/@originalText='DICOM Instances Accessed'W - 1
Description
/AuditMessage/EventIdentification/EventID@originalText should be 'DICOM Instances Accessed' if Event/EventID present ( PS3.15 , A.5.3.6 )
Test
every $actpart in (/AuditMessage/ActiveParticipant[]) satisfies count($actpart/RoleIDCode)>0W - 2
Description
Internal error while evaluating the xPath. This condition can not be verified by the validator : Person or Process manipulating the data/RoleIDCode has optionality 'C' ( PS3.15 , A.5.3.6 )
Test
every $actpart in /AuditMessage/ActiveParticipant[] satisfies $actpart/@UserIDW - 3
Description
Internal error while evaluating the xPath. This condition can not be verified by the validator : Person or Process manipulating the data/UserID is mandatory ( PS3.15 , A.5.3.6 )
Test
every $actpart in /AuditMessage/ActiveParticipant[] satisfies $actpart/@UserIsRequestorW - 4
Description
Internal error while evaluating the xPath. This condition can not be verified by the validator : Person or Process manipulating the data/@UserIsRequestor is mandatory ( PS3.15 , A.5.3.6 )
Test
every $actpart in /AuditMessage/ActiveParticipant[] satisfies count($actpart/MediaIdentifier)=0W - 5
Description
Internal error while evaluating the xPath. This condition can not be verified by the validator : Person or Process manipulating the data/MediaIdentifier is prohibited ( PS3.15 , A.5.3.6 )
Test
count(/AuditMessage/ActiveParticipant[])>0W - 6
Description
Internal error while evaluating the xPath. This condition can not be verified by the validator : The number of Person or Process manipulating the data SHALL be greater than or equal to 1 ( PS3.15 , A.5.3.6 )
Test
every $act in /AuditMessage/ActiveParticipant satisfies $act[]W - 7
Description
Internal error while evaluating the xPath. This condition can not be verified by the validator : Allowed ActiveParticipants are Person or Process manipulating the data ( PS3.15 , A.5.3.6 )
Test
/AuditMessage/EventIdentification/EventIDR - 1
Description
Event/EventID is mandatory ( PS3.15 , A.5.3.6 )
Test
not (/AuditMessage/EventIdentification/EventID) or /AuditMessage/EventIdentification/EventID/@codeSystemName='DCM'R - 2
Description
/AuditMessage/EventIdentification/EventID@codeSystemName must be 'DCM' if Event/EventID present ( PS3.15 , A.5.3.6 )
Test
/AuditMessage/EventIdentification/@EventActionCodeR - 3
Description
Event/@EventActionCode is mandatory ( PS3.15 , A.5.3.6 )
Test
/AuditMessage/EventIdentification/@EventDateTimeR - 4
Description
Event/@EventDateTime is mandatory ( PS3.15 , A.5.3.6 )
Test
/AuditMessage/EventIdentification/@EventOutcomeIndicatorR - 5
Description
Event/@EventOutcomeIndicator is mandatory ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ] satisfies $partid/@ParticipantObjectIDR - 6
Description
Studies/ParticipantObjectID is mandatory ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ] satisfies $partid/ParticipantObjectIDTypeCodeR - 7
Description
Studies/ParticipantObjectIDTypeCode is mandatory ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ] satisfies (every $i in $partid/ParticipantObjectIDTypeCode satisfies $i/@csd-code='110180')R - 8
Description
Studies/ParticipantObjectIDTypeCode@csd-code must be '110180' if Studies/ParticipantObjectIDTypeCode present ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ] satisfies (every $i in $partid/ParticipantObjectIDTypeCode satisfies $i/@codeSystemName='DCM')R - 9
Description
Studies/ParticipantObjectIDTypeCode@codeSystemName must be 'DCM' if Studies/ParticipantObjectIDTypeCode present ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ] satisfies (every $i in $partid/ParticipantObjectIDTypeCode satisfies $i/@originalText='Study Instance UID')R - 10
Description
Studies/ParticipantObjectIDTypeCode@originalText should be 'Study Instance UID' if Studies/ParticipantObjectIDTypeCode present ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ] satisfies $partid/@ParticipantObjectTypeCodeR - 11
Description
Studies/ParticipantObjectTypeCode is mandatory ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ] satisfies not($partid/@ParticipantObjectTypeCode) or $partid/@ParticipantObjectTypeCode='2'R - 12
Description
Studies/@ParticipantObjectTypeCode must be '2' if /Studies/@ParticipantObjectTypeCode present ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ] satisfies $partid/@ParticipantObjectTypeCodeRoleR - 13
Description
Studies/ParticipantObjectTypeCodeRole is mandatory ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ] satisfies not($partid/@ParticipantObjectTypeCodeRole) or $partid/@ParticipantObjectTypeCodeRole='3'R - 14
Description
Studies/@ParticipantObjectTypeCodeRole must be '3' if /Studies/@ParticipantObjectTypeCodeRole present ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ] satisfies $partid/SOPClassR - 15
Description
Studies/SOPClass has optionality 'C' ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1' and @ParticipantObjectTypeCodeRole='1'] satisfies $partid/@ParticipantObjectIDR - 16
Description
Patient/ParticipantObjectID is mandatory ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1' and @ParticipantObjectTypeCodeRole='1'] satisfies not($partid/@ParticipantObjectID) or matches($partid/@ParticipantObjectID,'^.+$')R - 17
Description
Patient/@ParticipantObjectID must have this form '^.+$' if Patient/@ParticipantObjectID present ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1' and @ParticipantObjectTypeCodeRole='1'] satisfies $partid/ParticipantObjectIDTypeCodeR - 18
Description
Patient/ParticipantObjectIDTypeCode is mandatory ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1' and @ParticipantObjectTypeCodeRole='1'] satisfies $partid/@ParticipantObjectTypeCodeR - 19
Description
Patient/ParticipantObjectTypeCode is mandatory ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1' and @ParticipantObjectTypeCodeRole='1'] satisfies not($partid/@ParticipantObjectTypeCode) or $partid/@ParticipantObjectTypeCode='1'R - 20
Description
Patient/@ParticipantObjectTypeCode must be '1' if /Patient/@ParticipantObjectTypeCode present ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1' and @ParticipantObjectTypeCodeRole='1'] satisfies $partid/@ParticipantObjectTypeCodeRoleR - 21
Description
Patient/ParticipantObjectTypeCodeRole is mandatory ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1' and @ParticipantObjectTypeCodeRole='1'] satisfies not($partid/@ParticipantObjectTypeCodeRole) or $partid/@ParticipantObjectTypeCodeRole='1'R - 22
Description
Patient/@ParticipantObjectTypeCodeRole must be '1' if /Patient/@ParticipantObjectTypeCodeRole present ( PS3.15 , A.5.3.6 )
Test
/AuditMessage/EventIdentificationR - 23
Description
The cardinality of Event is 1..1 ( PS3.15 , A.5.3.6 )
Test
count(/AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1' and @ParticipantObjectTypeCodeRole='1'])<2R - 24
Description
The number of Patient SHALL be less than or equal to 1 ( PS3.15 , A.5.3.6 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification satisfies $partid[@ParticipantObjectTypeCode='2' and @ParticipantObjectTypeCodeRole='3' ] or $partid[@ParticipantObjectTypeCode='1' and @ParticipantObjectTypeCodeRole='1']R - 25
Description
Allowed ParticipantObjectIdentifications are Studies, Patient ( PS3.15 , A.5.3.6 )