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

Constraint : plcda2316

Constraint Name
plcda2316 (type: ERROR, kind: Cardinality)
Constraint Class
plCdaAttachmentListEntry
Package
plcda
Description
In [4] Lista załączników, in /hl7:organizer[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.31']/hl7:reference/hl7:externalDocument[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.34']/hl7:templateId[@root='2.16.840.1.113883.3.4424.13.10.4.34'], the attribute root SHALL be present
OCL
self.reference.externalDocument->select(templateId.root->exists(aa : String| aa = '2.16.840.1.113883.3.4424.13.10.4.34')).templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.3.4424.13.10.4.34')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined()))