Constraint Descriptor : hl7ips2337 (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 : hl7ips2337

Constraint Name
hl7ips2337 (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)
Package
hl7ips
Description
In IPS Immunization Medication Information, the code of /hl7:manufacturedProduct[hl7:templateId/@root='2.16.840.1.113883.10.22.4.16']/hl7:manufacturedMaterial/hl7:code MAY be from the valueSet 2.16.840.1.113883.11.22.43 (flexibility : dynamic) OR MAY be from the valueSet 2.16.840.1.113883.11.22.44 (flexibility : dynamic)
OCL
self.manufacturedMaterial.code->forAll( (not nullFlavor.oclIsUndefined()) or ((not code.oclIsUndefined()) and CommonOperationsStatic::matchesValueSet('2.16.840.1.113883.11.22.43', code, codeSystem, null, null)) or ((not code.oclIsUndefined()) and CommonOperationsStatic::matchesValueSet('2.16.840.1.113883.11.22.44', code, codeSystem, null, null)))