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

Constraint : cons_lux_59

Constraint Name
cons_lux_59 (type: ERROR, kind: )
Constraint Class
RecordTargetSpec
Package
luxh
Description
The religiousAffiliationCode may be present. If so, allowed values for @code and @displayName shall be taken from the value set eSanté_ReligiousAffiliation. @codeSystem shall have the constant value =�2.16.840.1.113883.5.1076� and @codeSystemName shall have the constant value =�HL7:ReligiousAffiliation�
OCL
self.patientRole.oclIsUndefined() or 
self.patientRole.patient.oclIsUndefined() or 
self.patientRole.patient.religiousAffiliationCode.oclIsUndefined() or 
(not self.patientRole.patient.religiousAffiliationCode.nullFlavor.oclIsUndefined()) or 
(
	(not self.patientRole.patient.religiousAffiliationCode.code.oclIsUndefined()) and 
	(not self.patientRole.patient.religiousAffiliationCode.codeSystem.oclIsUndefined()) and 
	self.patientRole.patient.religiousAffiliationCode.codeSystem='2.16.840.1.113883.5.1076' and
	(not self.patientRole.patient.religiousAffiliationCode.codeSystemName.oclIsUndefined()) and 
	self.patientRole.patient.religiousAffiliationCode.codeSystemName='HL7:ReligiousAffiliation' and
	(not self.patientRole.patient.religiousAffiliationCode.displayName.oclIsUndefined()) and
	self.patientRole.patient.religiousAffiliationCode.matchesValueSet('1.3.182.10.24.1', self.patientRole.patient.religiousAffiliationCode.code, self.patientRole.patient.religiousAffiliationCode.codeSystem, null,  null)
)