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

Constraint : asipstructmin1172

Constraint Name
asipstructmin1172 (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:organizer/hl7:templateId[@root='2.16.840.1.113883.10.12.305'], the attribute root SHALL be present
OCL
self.entryRelationship.organizer.templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.10.12.305')->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined()))