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

Constraint : asipstructmin061

Constraint Name
asipstructmin061 (type: ERROR, kind: Vocabulary)
Constraint Class
SMDS_CDAClinicalDocument
Package
asipstructmin
Description
In Structuration Minimale Documents de Santé, the code of /hl7:ClinicalDocument[hl7:templateId/@root='1.2.250.1.213.1.1.1.1']/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')))