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

Constraint : asipstructmin1270

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