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

Constraint : plcda2315

Constraint Name
plcda2315 (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.33']/hl7:templateId[@root='2.16.840.1.113883.3.4424.13.10.4.33'], 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.33')).templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.3.4424.13.10.4.33')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined()))