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

Constraint : plcda2243

Constraint Name
plcda2243 (type: ERROR, kind: Datatype)
Constraint Class
plCdaObservationRequest
Package
plcda
Description
In [4] Zalecenie wykonania badania, in /hl7:observation[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.24']/hl7:informant/hl7:relatedEntity/hl7:templateId[@root='2.16.840.1.113883.3.4424.13.10.2.50'], the attribute root SHALL have the datatype 'oid' if present
OCL
self.informant.relatedEntity.templateId->select((not root.oclIsUndefined()) and root='2.16.840.1.113883.3.4424.13.10.2.50')->forAll(root.oclIsUndefined() or CommonOperationsStatic::isOID(root))