Constraint Descriptor : cons_lux_id8 (type: ERROR, kind: )

Constraint : cons_lux_id8

Constraint Name
cons_lux_id8 (type: ERROR, kind: )
Constraint Class
RecordTargetSpec
Package
luxh
Description
The third id of recordTarget/patientRole if present and not nullFlavored, shall have @root=1.3.182.4.4 and @extension representing the national unique person identifier (13 digits)
OCL
self.patientRole.oclIsUndefined() or 
self.patientRole.id->size()<3 or 
(not self.patientRole.id->at(3).nullFlavor.oclIsUndefined()) or 
(
	
	(not self.patientRole.id->at(3).root.oclIsUndefined()) and 
	(not self.patientRole.id->at(3).extension.oclIsUndefined()) and
	self.patientRole.id->at(3).root='1.3.182.4.4' and 
	self.patientRole.id->at(3).matches(self.patientRole.id->at(3).extension, '\\d{13}')
)