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

Constraint : asipstructmin623

Constraint Name
asipstructmin623 (type: ERROR, kind: Cardinality)
Constraint Class
CDAEncounter
Package
asipstructmin
Description
In CDA Encounter, in /hl7:encounter[hl7:templateId/@root='2.16.840.1.113883.10.12.302']/hl7:entryRelationship/hl7:act/hl7:templateId[@root='2.16.840.1.113883.10.12.301'], the attribute root SHALL be present
OCL
self.entryRelationship.act.templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.10.12.301')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined()))