Constraint Descriptor : ccda21213 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@7dd92a36 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@531ed68e (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Vocabulary)

Constraint : ccda21213

Constraint Name
ccda21213 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@7dd92a36 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@531ed68e (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Vocabulary)
Constraint Class
USRealmHeaderV3
Package
ccda21
Description
In US Realm Header (V3), the code of /hl7:ClinicalDocument[hl7:templateId/@root='2.16.840.1.113883.10.20.22.1.1']/hl7:legalAuthenticator/hl7:assignedEntity/hl7:code SHOULD be from the valueSet 2.16.840.1.114222.4.11.1066 (flexibility : C-CDA R2.1 2020-07-13) (Item : CONF:1198-17000)
OCL
self.legalAuthenticator.assignedEntity.code->forAll( (not nullFlavor.oclIsUndefined()) or ((not code.oclIsUndefined()) and CommonOperationsStatic::matchesValueSet('2.16.840.1.114222.4.11.1066&version=C-CDA R2.1 2020-07-13', code, codeSystem, null, null)))