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

Constraint : cons_lux_maritalStatusCode

Constraint Name
cons_lux_maritalStatusCode (type: ERROR, kind: )
Constraint Class
RecordTargetSpec
Package
luxh
Description
If patient/maritalStatusCode is present, it shall have a @code, @codeSystem, @displayName and @codeSystemName. @codeSystem shall have the constant value =�2.16.840.1.113883.5.2� and @codeSystemName shall have the constant value =�HL7:MaritalStatus�
OCL
self.patientRole.oclIsUndefined() or 
self.patientRole.patient.oclIsUndefined() or 
self.patientRole.patient.maritalStatusCode.oclIsUndefined() or 
(not self.patientRole.patient.maritalStatusCode.nullFlavor.oclIsUndefined()) or 
(
	(not self.patientRole.patient.maritalStatusCode.code.oclIsUndefined()) and 
	(not self.patientRole.patient.maritalStatusCode.codeSystem.oclIsUndefined()) and 
	self.patientRole.patient.maritalStatusCode.codeSystem='2.16.840.1.113883.5.2' and
	(not self.patientRole.patient.maritalStatusCode.codeSystemName.oclIsUndefined()) and 
	self.patientRole.patient.maritalStatusCode.codeSystemName='HL7:MaritalStatus' and
	(not self.patientRole.patient.maritalStatusCode.displayName.oclIsUndefined()) 
)