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

Constraint Name
hl7ips2829 (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
IPSMedicationStatement
Package
hl7ips
Description
In IPS Medication Statement, the code of /hl7:substanceAdministration[hl7:templateId/@root='2.16.840.1.113883.10.22.4.4']/@moodCode SHALL be from the valueSet 2.16.840.1.113883.11.20.9.18 (flexibility : dynamic)
OCL
self.moodCode->forAll( aa | aa.oclIsUndefined() or (CommonOperationsStatic::matchesCodeToValueSet('2.16.840.1.113883.11.20.9.18', CommonOperationsStatic::stringValueOf(aa))))