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

Constraint : plcda1439

Constraint Name
plcda1439 (type: ERROR, kind: Datatype)
Constraint Class
plCdaManufacturedLabeledDrug
Package
plcda
Description
In [4] Lek gotowy, in /hl7:manufacturedProduct[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.21']/hl7:templateId[@root='2.16.840.1.113883.3.4424.13.10.4.21'], 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.21')->forAll(root.oclIsUndefined() or CommonOperationsStatic::isOID(root))