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

Constraint : asipstructmin261

Constraint Name
asipstructmin261 (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:participant/hl7:functionCode SHALL have code='ADMPHYS'and codeSytem='2.16.840.1.113883.5.88' OR SHALL have code='ATTPHYS'and codeSytem='2.16.840.1.113883.5.88' OR SHALL have code='DISPHYS'and codeSytem='2.16.840.1.113883.5.88' OR SHALL have code='PRISURG'and codeSytem='2.16.840.1.113883.5.88' OR SHALL have code='FASST'and codeSytem='2.16.840.1.113883.5.88' OR SHALL have code='SASST'and codeSytem='2.16.840.1.113883.5.88' OR SHALL have code='NASST'and codeSytem='2.16.840.1.113883.5.88' OR SHALL have code='ANEST'and codeSytem='2.16.840.1.113883.5.88' OR SHALL have code='ANRS'and codeSytem='2.16.840.1.113883.5.88' OR SHALL have code='MDWF'and codeSytem='2.16.840.1.113883.5.88' OR SHALL have code='PCP'and codeSytem='2.16.840.1.113883.5.88' OR SHALL have code='CORRE'and codeSytem='1.2.250.1.213.1.1.4.2.280' OR SHALL have code='REMPL'and codeSytem='1.2.250.1.213.1.1.4.2.280' OR SHALL have code='GYNEC'and codeSytem='1.2.250.1.213.1.1.4.2.280' OR SHALL have code='OPHTA'and codeSytem='1.2.250.1.213.1.1.4.2.280' OR SHALL have code='PSYCH'and codeSytem='1.2.250.1.213.1.1.4.2.280' OR SHALL have code='CARDT'and codeSytem='1.2.250.1.213.1.1.4.2.280' OR SHALL have code='PRELV'and codeSytem='1.2.250.1.213.1.1.4.2.280' OR SHALL have code='ASPEC'and codeSytem='1.2.250.1.213.1.1.4.2.280' OR SHALL have code='APSIN'and codeSytem='1.2.250.1.213.1.1.4.2.280'
OCL
self.participant.functionCode->forAll( (not nullFlavor.oclIsUndefined()) or ((not code.oclIsUndefined()) and code='ADMPHYS' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.88')) or ((not code.oclIsUndefined()) and code='ATTPHYS' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.88')) or ((not code.oclIsUndefined()) and code='DISPHYS' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.88')) or ((not code.oclIsUndefined()) and code='PRISURG' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.88')) or ((not code.oclIsUndefined()) and code='FASST' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.88')) or ((not code.oclIsUndefined()) and code='SASST' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.88')) or ((not code.oclIsUndefined()) and code='NASST' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.88')) or ((not code.oclIsUndefined()) and code='ANEST' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.88')) or ((not code.oclIsUndefined()) and code='ANRS' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.88')) or ((not code.oclIsUndefined()) and code='MDWF' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.88')) or ((not code.oclIsUndefined()) and code='PCP' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.88')) or ((not code.oclIsUndefined()) and code='CORRE' and ((codeSystem.oclIsUndefined()) or codeSystem='1.2.250.1.213.1.1.4.2.280')) or ((not code.oclIsUndefined()) and code='REMPL' and ((codeSystem.oclIsUndefined()) or codeSystem='1.2.250.1.213.1.1.4.2.280')) or ((not code.oclIsUndefined()) and code='GYNEC' and ((codeSystem.oclIsUndefined()) or codeSystem='1.2.250.1.213.1.1.4.2.280')) or ((not code.oclIsUndefined()) and code='OPHTA' and ((codeSystem.oclIsUndefined()) or codeSystem='1.2.250.1.213.1.1.4.2.280')) or ((not code.oclIsUndefined()) and code='PSYCH' and ((codeSystem.oclIsUndefined()) or codeSystem='1.2.250.1.213.1.1.4.2.280')) or ((not code.oclIsUndefined()) and code='CARDT' and ((codeSystem.oclIsUndefined()) or codeSystem='1.2.250.1.213.1.1.4.2.280')) or ((not code.oclIsUndefined()) and code='PRELV' and ((codeSystem.oclIsUndefined()) or codeSystem='1.2.250.1.213.1.1.4.2.280')) or ((not code.oclIsUndefined()) and code='ASPEC' and ((codeSystem.oclIsUndefined()) or codeSystem='1.2.250.1.213.1.1.4.2.280')) or ((not code.oclIsUndefined()) and code='APSIN' and ((codeSystem.oclIsUndefined()) or codeSystem='1.2.250.1.213.1.1.4.2.280')))