Constraint Descriptor : xdssd052 (type: ERROR, kind: Cardinality)

Constraint : xdssd052

Constraint Name
xdssd052 (type: ERROR, kind: Cardinality)
Constraint Class
XDSSD
Package
xdssd
Description
In Scanned document (XDS-SD), in /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.2.20']/hl7:author[hl7:templateId/@root='1.3.6.1.4.1.19376.1.2.20.1']/hl7:templateId[@root='1.3.6.1.4.1.19376.1.2.20.1'], the attribute root SHALL be present (Item : XDSSDVAL-036)
OCL
self.author->select(templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.2.20.1')).templateId->select((not root.oclIsUndefined()) and root='1.3.6.1.4.1.19376.1.2.20.1')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined()))