Constraint Descriptor : plcda1477 (type: ERROR, kind: Context)

Constraint : plcda1477

Constraint Name
plcda1477 (type: ERROR, kind: Context)
Package
plcda
Description
In [4] Zalecenie leku, the element defined by /hl7:substanceAdministration[hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.22']/hl7:text/hl7:reference shall verify this requirement : Referencja musi wskazywać na konkretny element tekstu sekcji o danym ID
OCL
self.text.reference->reject(not nullFlavor.oclIsUndefined())->forAll(aa | CommonOperationsStatic::validateByXPATHV2(aa, 'ancestor::cda:section//*[@ID=substring(current()/@value,2)]') )