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

Constraint : asipstructmin1176

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