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

Constraint : asipstructmin333

Constraint Name
asipstructmin333 (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:componentOf/hl7:encompassingEncounter/hl7:code SHALL have code='IMP'and codeSytem='2.16.840.1.113883.5.4' OR SHALL have code='EMER'and codeSytem='2.16.840.1.113883.5.4' OR SHALL have code='AMB'and codeSytem='2.16.840.1.113883.5.4' OR SHALL have code='FLD'and codeSytem='2.16.840.1.113883.5.4' OR SHALL have code='HH'and codeSytem='2.16.840.1.113883.5.4' OR SHALL have code='VR'and codeSytem='2.16.840.1.113883.5.4' OR SHALL have code='EXTERNE'and codeSytem='1.2.250.1.213.1.1.4.2.291' OR SHALL have code='SEANCE'and codeSytem='1.2.250.1.213.1.1.4.2.291'
OCL
self.componentOf.encompassingEncounter.code->forAll( (not nullFlavor.oclIsUndefined()) or ((not code.oclIsUndefined()) and code='IMP' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.4')) or ((not code.oclIsUndefined()) and code='EMER' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.4')) or ((not code.oclIsUndefined()) and code='AMB' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.4')) or ((not code.oclIsUndefined()) and code='FLD' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.4')) or ((not code.oclIsUndefined()) and code='HH' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.4')) or ((not code.oclIsUndefined()) and code='VR' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.4')) or ((not code.oclIsUndefined()) and code='EXTERNE' and ((codeSystem.oclIsUndefined()) or codeSystem='1.2.250.1.213.1.1.4.2.291')) or ((not code.oclIsUndefined()) and code='SEANCE' and ((codeSystem.oclIsUndefined()) or codeSystem='1.2.250.1.213.1.1.4.2.291')))