Constraint Descriptor : plcda1246 (type: ERROR, kind: Datatype)

Constraint : plcda1246

Constraint Name
plcda1246 (type: ERROR, kind: Datatype)
Constraint Class
plCdaPrincipalDiagnosis
Package
plcda
Description
In [4] Rozpoznanie główne, in /hl7:entry[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.1']/hl7:templateId[@root='2.16.840.1.113883.3.4424.13.10.4.1'], the attribute root SHALL have the datatype 'oid' if present
OCL
self.templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.3.4424.13.10.4.1')->forAll(root.oclIsUndefined() or CommonOperationsStatic::isOID(root))