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

Constraint : plcda1515

Constraint Name
plcda1515 (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:subject/hl7:relatedSubject/hl7:subject/hl7:birthTime shall verify this requirement : Pierwsze 8 cyfr daty urodzenia powinno być w formacie YYYYMMDD.
OCL
self.subject.relatedSubject.subject.birthTime->reject(not nullFlavor.oclIsUndefined())->forAll(aa | CommonOperationsStatic::validateByXPATHV2(aa, 'concat(substring(@value,1,4),\u0027-\u0027,substring(@value,5,2),\u0027-\u0027,substring(@value,7,2)) castable as xs:date') )