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

Constraint : asipstructmin1274

Constraint Name
asipstructmin1274 (type: ERROR, kind: Cardinality)
Constraint Class
CDASupply
Package
asipstructmin
Description
In CDA Supply, in /hl7:supply[hl7:templateId/@root='2.16.840.1.113883.10.12.309']/hl7:entryRelationship/hl7:regionOfInterest/hl7:templateId[@root='2.16.840.1.113883.10.12.307'], the attribute root SHALL be present
OCL
self.entryRelationship.regionOfInterest.templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.10.12.307')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined()))