Constraint Descriptor : hl7ips2119 (type: ERROR, kind: Cardinality)

Constraint : hl7ips2119

Constraint Name
hl7ips2119 (type: ERROR, kind: Cardinality)
Constraint Class
IPSEntryAllergyOrIntolerance
Package
hl7ips
Description
In IPS Allergy or Intolerance, /hl7:observation[hl7:templateId/@root='2.16.840.1.113883.10.22.4.1'] SHALL contain at most ONE hl7:entryRelationship[hl7:observation/hl7:templateId/@root='2.16.840.1.113883.10.22.10']
OCL
self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '2.16.840.1.113883.10.22.10'))->size()<2