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

Constraint : asipstructmin017

Constraint Name
asipstructmin017 (type: ERROR, kind: Cardinality)
Constraint Class
SMDS_CDAClinicalDocument
Package
asipstructmin
Description
In Structuration Minimale Documents de Santé, in /hl7:ClinicalDocument[hl7:templateId/@root='1.2.250.1.213.1.1.1.1']/hl7:templateId, the attribute root SHALL be present
OCL
self.templateId->select((not ((not root.oclIsUndefined()) and root='2.16.840.1.113883.2.8.2.1')) and (not ((not root.oclIsUndefined()) and root='1.2.250.1.213.1.1.1.1')))->forAll((not nullFlavor.oclIsUndefined()) or (not root.oclIsUndefined()))