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

Constraint : cons_lux_56_3

Constraint Name
cons_lux_56_3 (type: ERROR, kind: )
Constraint Class
RecordTargetSpec
Package
luxh
Description
Values for administrativeGenderCode/@code and @displayName SHALL be drawn from the HL7 AdministrativeGender vocabulary subset defined in the value set 'eSanté_AdministrativeGender'. @codeSystem shall have the constant value =�2.16.840.1.113883.5.1� and @codeSystemName shall have the constant value =�HL7:AdministrativeGender�
OCL
self.patientRole.oclIsUndefined() or 
self.patientRole.patient.oclIsUndefined() or 
self.patientRole.patient.administrativeGenderCode.oclIsUndefined() or 
(not self.patientRole.patient.administrativeGenderCode.nullFlavor.oclIsUndefined()) or 
(
	(not self.patientRole.patient.administrativeGenderCode.code.oclIsUndefined()) and 
	(not self.patientRole.patient.administrativeGenderCode.codeSystem.oclIsUndefined()) and 
	self.patientRole.patient.administrativeGenderCode.codeSystem='2.16.840.1.113883.5.1' and
	(not self.patientRole.patient.administrativeGenderCode.codeSystemName.oclIsUndefined()) and 
	self.patientRole.patient.administrativeGenderCode.codeSystemName='HL7:AdministrativeGender' and 
	(not self.patientRole.patient.administrativeGenderCode.displayName.oclIsUndefined()) and
	self.patientRole.patient.administrativeGenderCode.matchesCodeToValueSet('1.3.182.10.3.1',self.patientRole.patient.administrativeGenderCode.code)
)