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

Constraint : hl7ips3064

Constraint Name
hl7ips3064 (type: ERROR, kind: Fixed value)
Package
hl7ips
Description
In IPS Allergy and Intolerance Concern, in /hl7:act[hl7:templateId/@root='2.16.840.1.113883.10.22.4.5']/hl7:entryRelationship[hl7:observation/hl7:templateId/@root='2.16.840.1.113883.10.22.4.1'], the attribute typeCode SHALL have the value 'SUBJ' if present
OCL
self.entryRelationship->select(observation.templateId.root->exists(aa : String| aa = '2.16.840.1.113883.10.22.4.1'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::SUBJ)