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

Constraint : asipstructmin400

Constraint Name
asipstructmin400 (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:location/hl7:healthCareFacility/hl7:code SHALL be from the valueSet 1.2.250.1.213.1.1.5.3 (flexibility : 2018-01-05T00:00:00)
OCL
self.componentOf.encompassingEncounter.location.healthCareFacility.code->forAll( (not nullFlavor.oclIsUndefined()) or ((not code.oclIsUndefined()) and CommonOperationsStatic::matchesValueSet('1.2.250.1.213.1.1.5.3&version=2018-01-05T00:00:00', code, codeSystem, null, null)))