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

Constraint : asipstructmin036

Constraint Name
asipstructmin036 (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:confidentialityCode SHALL have code='N'and codeSytem='2.16.840.1.113883.5.25' OR SHALL have code='R'and codeSytem='2.16.840.1.113883.5.25' OR SHALL have code='V'and codeSytem='2.16.840.1.113883.5.25'
OCL
self.confidentialityCode->forAll( (not nullFlavor.oclIsUndefined()) or ((not code.oclIsUndefined()) and code='N' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.25')) or ((not code.oclIsUndefined()) and code='R' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.25')) or ((not code.oclIsUndefined()) and code='V' and ((codeSystem.oclIsUndefined()) or codeSystem='2.16.840.1.113883.5.25')))