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

Constraint : asipstructmin808

Constraint Name
asipstructmin808 (type: ERROR, kind: Cardinality)
Constraint Class
CDAObservationMedia
Package
asipstructmin
Description
In CDA ObservationMedia, in /hl7:observationMedia[hl7:templateId/@root='2.16.840.1.113883.10.12.304']/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()))