Constraint Descriptor : hl7ips2101 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@3c220740 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@5e0a1997 (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Vocabulary)

Constraint : hl7ips2101

Constraint Name
hl7ips2101 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@3c220740 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@5e0a1997 (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Vocabulary)
Constraint Class
IPSEntryAllergyOrIntolerance
Package
hl7ips
Description
In IPS Allergy or Intolerance, the code of /hl7:observation[hl7:templateId/@root='2.16.840.1.113883.10.22.4.1']/hl7:participant/hl7:participantRole/hl7:playingEntity/hl7:code MAY be from the valueSet 2.16.840.1.113883.11.22.11 (flexibility : dynamic)
OCL
self.participant.participantRole.playingEntity.code->forAll( (not nullFlavor.oclIsUndefined()) or ((not code.oclIsUndefined()) and CommonOperationsStatic::matchesValueSet('2.16.840.1.113883.11.22.11', code, codeSystem, null, null)))