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

Constraint : cons_lux_58

Constraint Name
cons_lux_58 (type: ERROR, kind: )
Constraint Class
RecordTargetSpec
Package
luxh
Description
The maritalStatusCode, may be present. If maritalStatusCode, is present, the value @code and @displayName shall be encoded using the subset of the HL7 MartitalStatus vocabulary defined in value set eSanté_MaritalStatus. @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.patient.oclIsUndefined() or 
self.patientRole.patient.maritalStatusCode.oclIsUndefined() or 
(not self.patientRole.patient.maritalStatusCode.nullFlavor.oclIsUndefined()) or 
self.patientRole.patient.maritalStatusCode.matchesValueSet('1.3.182.10.16.1', self.patientRole.patient.maritalStatusCode.code, self.patientRole.patient.maritalStatusCode.codeSystem, null,  null) and
self.patientRole.patient.maritalStatusCode.codeSystem='2.16.840.1.113883.5.2' and
self.patientRole.patient.maritalStatusCode.codeSystemName='HL7:MaritalStatus'