Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110153']] satisfies (some $i in $actpart/RoleIDCode satisfies $i/@originalText='Source Role ID')W - 1
Description
Source/RoleIDCode should have @originalText equals to 'Source Role ID' ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']] satisfies (some $i in $actpart/RoleIDCode satisfies $i/@originalText='Destination Role ID')W - 2
Description
Destination/RoleIDCode should have @originalText equals to 'Destination Role ID' ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification satisfies $partid[@ParticipantObjectTypeCode='1']W - 3
Description
Allowed ParticipantObjectIdentifications are Patient ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
false()W - 4
Description
This condition is not checked by the validator : Patient ID for profiles that conforms to Metadata used in Document Sharing profiles (IHE ITI TF Vol3, Cross-Transaction Specifications and Content Specifications) SHALL use the CX HL7 v2.5 Identifier restricted to the use of two components, the ID Number, and the Assigning Authority (AA). The Assigning Authority identifies the "domain" over which the Id Number represents a unique entity. In Document Sharing profiles, the AA is characterized by the ISO Object Identifiers as Universal Id and Type. No other values/modifications in other components or subcomponents are allowed. Specifically, components 2 and 3 shall be empty. ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $cvt in //*[@codeSystemName] satisfies matches($cvt/@codeSystemName, '[0-2]((\.0)|(\.[1-9][0-9]*))*')W - 5
Description
In all elements of the type CodedValueType: whenever the represented code belongs to the Swiss Metadata Value Set, the attribute @codeSystemName shall contain the OID of the corresponding code system instead of its symbolic name. (CH-ATNA-010) ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
/AuditMessage/EventIdentification/EventIDR - 1
Description
Event/EventID is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
not (/AuditMessage/EventIdentification/EventID) or /AuditMessage/EventIdentification/EventID/@csd-code='110110'R - 2
Description
/AuditMessage/EventIdentification/EventID@csd-code must be '110110' if Event/EventID present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
not (/AuditMessage/EventIdentification/EventID) or /AuditMessage/EventIdentification/EventID/@codeSystemName='DCM'R - 3
Description
/AuditMessage/EventIdentification/EventID@codeSystemName must be 'DCM' if Event/EventID present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
not (/AuditMessage/EventIdentification/EventID) or /AuditMessage/EventIdentification/EventID/@originalText='Patient Record'R - 4
Description
/AuditMessage/EventIdentification/EventID@originalText should be 'Patient Record' if Event/EventID present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
/AuditMessage/EventIdentification/@EventActionCodeR - 5
Description
Event/@EventActionCode is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
not (/AuditMessage/EventIdentification/@EventActionCode) or matches(/AuditMessage/EventIdentification/@EventActionCode, '^C|U|D$')R - 6
Description
/AuditMessage/EventIdentification/@EventActionCode must have this form : '^C|U|D$' if Event/EventActionCode present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
/AuditMessage/EventIdentification/@EventDateTimeR - 7
Description
Event/@EventDateTime is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
/AuditMessage/EventIdentification/@EventOutcomeIndicatorR - 8
Description
Event/@EventOutcomeIndicator is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
/AuditMessage/EventIdentification/EventTypeCodeR - 9
Description
Event/EventTypeCode is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
count(/AuditMessage/EventIdentification/EventTypeCode)=0 or (every $i in /AuditMessage/EventIdentification/EventTypeCode satisfies $i/@csd-code='ITI-44')R - 10
Description
Event/EventTypeCode@csd-code must be 'ITI-44' if Event/EventTypeCode present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
count(/AuditMessage/EventIdentification/EventTypeCode)=0 or (every $i in /AuditMessage/EventIdentification/EventTypeCode satisfies $i/@codeSystemName='IHE Transactions')R - 11
Description
Event/EventTypeCode@codeSystemName must be 'IHE Transactions' if Event/EventTypeCode present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
count(/AuditMessage/EventIdentification/EventTypeCode)=0 or (every $i in /AuditMessage/EventIdentification/EventTypeCode satisfies $i/@originalText='Patient Identity Feed')R - 12
Description
Event/EventTypeCode@originalText should be 'Patient Identity Feed' if Event/EventTypeCode present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110153']] satisfies $actpart/@NetworkAccessPointIDR - 13
Description
Source/@NetworkAccessPointID is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110153']] satisfies $actpart/@NetworkAccessPointTypeCodeR - 14
Description
Source/@NetworkAccessPointTypeCode is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110153']] satisfies not($actpart/@NetworkAccessPointTypeCode) or matches($actpart/@NetworkAccessPointTypeCode,'^1|2$')R - 15
Description
Source/@NetworkAccessPointTypeCode must have this form '^1|2$' if Source/@NetworkAccessPointTypeCode present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in (/AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110153']]) satisfies count($actpart/RoleIDCode)>0R - 16
Description
Source/RoleIDCode is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110153']] satisfies (some $i in $actpart/RoleIDCode satisfies $i/@csd-code='110153' and $i/@codeSystemName='DCM')R - 17
Description
Source/RoleIDCode must have @csd-code equals to '110153' and @codeSystemName equals to 'DCM' ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110153']] satisfies count($actpart/MediaIdentifier)=0R - 18
Description
Source/MediaIdentifier is prohibited ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']] satisfies $actpart/@AlternativeUserIDR - 19
Description
Destination/@AlternativeUserID is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']] satisfies $actpart/@NetworkAccessPointIDR - 20
Description
Destination/@NetworkAccessPointID is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']] satisfies $actpart/@NetworkAccessPointTypeCodeR - 21
Description
Destination/@NetworkAccessPointTypeCode is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']] satisfies not($actpart/@NetworkAccessPointTypeCode) or matches($actpart/@NetworkAccessPointTypeCode,'^1|2$')R - 22
Description
Destination/@NetworkAccessPointTypeCode must have this form '^1|2$' if Destination/@NetworkAccessPointTypeCode present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in (/AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']]) satisfies count($actpart/RoleIDCode)>0R - 23
Description
Destination/RoleIDCode is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']] satisfies (some $i in $actpart/RoleIDCode satisfies $i/@csd-code='110152' and $i/@codeSystemName='DCM')R - 24
Description
Destination/RoleIDCode must have @csd-code equals to '110152' and @codeSystemName equals to 'DCM' ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']] satisfies $actpart/@UserIDR - 25
Description
Destination/UserID is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']] satisfies $actpart/@UserIsRequestorR - 26
Description
Destination/@UserIsRequestor is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']] satisfies not($actpart/@UserIsRequestor) or $actpart/@UserIsRequestor='false'R - 27
Description
Destination/@UserIsRequestor must be 'false' if Destination/@UserIsRequestor present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $actpart in /AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']] satisfies count($actpart/MediaIdentifier)=0R - 28
Description
Destination/MediaIdentifier is prohibited ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $as in /AuditMessage/AuditSourceIdentification satisfies $as/@AuditEnterpriseSiteIDR - 29
Description
AuditSource/@AuditEnterpriseSiteID is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $as in /AuditMessage/AuditSourceIdentification satisfies not($as/@AuditEnterpriseSiteID) or matches($as/@AuditEnterpriseSiteID,'[0-2]((\.0)|(\.[1-9][0-9]*))*')R - 30
Description
AuditSource/@AuditEnterpriseSiteID must have this form : '[0-2]((\.0)|(\.[1-9][0-9]*))*' if AuditSource/@AuditEnterpriseSiteID present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $as in /AuditMessage/AuditSourceIdentification satisfies $as/@AuditSourceIDR - 31
Description
AuditSource/@AuditSourceID is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1'] satisfies $partid/ParticipantObjectDetailR - 32
Description
Patient/ParticipantObjectDetail is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1'] satisfies $partid/@ParticipantObjectIDR - 33
Description
Patient/ParticipantObjectID is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1'] satisfies not($partid/@ParticipantObjectID) or matches($partid/@ParticipantObjectID,'^.+?\^\^\^.*?&.+?&ISO(\^.*){0,4}$')R - 34
Description
Patient/@ParticipantObjectID must have this form '^.+?\^\^\^.*?&.+?&ISO(\^.*){0,4}$' if Patient/@ParticipantObjectID present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1'] satisfies $partid/ParticipantObjectIDTypeCodeR - 35
Description
Patient/ParticipantObjectIDTypeCode is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1'] satisfies $partid/@ParticipantObjectTypeCodeR - 36
Description
Patient/ParticipantObjectTypeCode is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1'] satisfies not($partid/@ParticipantObjectTypeCode) or $partid/@ParticipantObjectTypeCode='1'R - 37
Description
Patient/@ParticipantObjectTypeCode must be '1' if /Patient/@ParticipantObjectTypeCode present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1'] satisfies $partid/@ParticipantObjectTypeCodeRoleR - 38
Description
Patient/ParticipantObjectTypeCodeRole is mandatory ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1'] satisfies not($partid/@ParticipantObjectTypeCodeRole) or $partid/@ParticipantObjectTypeCodeRole='1'R - 39
Description
Patient/@ParticipantObjectTypeCodeRole must be '1' if /Patient/@ParticipantObjectTypeCodeRole present ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
count(/AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110153']])<2R - 40
Description
The number of Source SHALL be less than or equal to 1 ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
count(/AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110153']])>0R - 41
Description
The number of Source SHALL be greater than or equal to 1 ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
count(/AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']])<2R - 42
Description
The number of Destination SHALL be less than or equal to 1 ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
count(/AuditMessage/ActiveParticipant[RoleIDCode[@csd-code='110152']])>0R - 43
Description
The number of Destination SHALL be greater than or equal to 1 ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
count(/AuditMessage/AuditSourceIdentification)<2R - 44
Description
The number of AuditSource SHALL be less than or equal to 1 ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
count(/AuditMessage/AuditSourceIdentification)>0R - 45
Description
The number of AuditSource SHALL be greater than or equal to 1 ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
/AuditMessage/EventIdentificationR - 46
Description
The cardinality of Event is 1..1 ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
count(/AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1'])<2R - 47
Description
The number of Patient SHALL be less than or equal to 1 ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
count(/AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1'])>0R - 48
Description
The number of Patient SHALL be greater than or equal to 1 ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $act in /AuditMessage/ActiveParticipant satisfies $act[RoleIDCode[@csd-code='110153']] or $act[RoleIDCode[@csd-code='110152']]R - 49
Description
Allowed ActiveParticipants are Source, Destination ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification[@ParticipantObjectTypeCode='1' and @ParticipantObjectTypeCodeRole='1'] satisfies $partid/ParticipantObjectDetail/@type='II' R - 50
Description
Patient/ParticipantObjectDetail shall have an attribute type with the value II ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 ) ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )
Test
every $partid in /AuditMessage/ParticipantObjectIdentification satisfies ( every $i in $partid/ParticipantObjectIDTypeCode satisfies matches($i/@csd-code, '.'))R - 51
Description
ParticipantObjectIDTypeCode/@csd-code must be present and not null. (CH-ATNA-009) ( IHE IT Infrastructure Technical Framework, Volume 2b (ITI TF-2b): Transactions Part B , 3.44.5.1.2 )