Constraint Descriptor : asipd2lmfin035 (type: ERROR, kind: Vocabulary)

Constraint : asipd2lmfin035

Constraint Name
asipd2lmfin035 (type: ERROR, kind: Vocabulary)
Package
asipd2lmfin
Description
In Specifications Techniques De La FIN, the code of /hl7:ClinicalDocument[hl7:templateId/@root='1.2.250.1.213.1.1.1.27']/hl7:recordTarget/hl7:patientRole/hl7:patient/hl7:administrativeGenderCode SHALL have code='M'and codeSytem='2.16.840.1.113883.5.1' OR SHALL have code='F'and codeSytem='2.16.840.1.113883.5.1' OR SHALL have code='U'and codeSytem='2.16.840.1.113883.5.1'
OCL
self.recordTarget.patientRole.patient.administrativeGenderCode->forAll( (not nullFlavor.oclIsUndefined()) or ((not code.oclIsUndefined()) and code='M' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.1')) or ((not code.oclIsUndefined()) and code='F' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.1')) or ((not code.oclIsUndefined()) and code='U' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.1')))