Constraint Descriptor : hl7ips2099 (type: ERROR, kind: Fixed value)

Constraint : hl7ips2099

Constraint Name
hl7ips2099 (type: ERROR, kind: Fixed value)
Constraint Class
IPSEntryAllergyOrIntolerance
Package
hl7ips
Description
In IPS Allergy or Intolerance, in /hl7:observation[hl7:templateId/@root='2.16.840.1.113883.10.22.4.1']/hl7:participant/hl7:participantRole/hl7:playingEntity, the attribute classCode SHALL have the value 'MMAT' if present
OCL
self.participant.participantRole.playingEntity->forAll(classCode.oclIsUndefined() or classCode=EntityClassRoot::MMAT)