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

Constraint : hl7ips2880

Constraint Name
hl7ips2880 (type: ERROR, kind: Fixed value)
Constraint Class
IPSMedicationStatement
Package
hl7ips
Description
In IPS Medication Statement, in /hl7:substanceAdministration[hl7:templateId/@root='2.16.840.1.113883.10.22.4.4']/hl7:entryRelationship[hl7:substanceAdministration/hl7:templateId/@root='2.16.840.1.113883.10.22.4.33'], the attribute typeCode SHALL have the value 'COMP' if present
OCL
self.entryRelationship->select(substanceAdministration.templateId.root->exists(aa : String| aa = '2.16.840.1.113883.10.22.4.33'))->forAll(typeCode.oclIsUndefined() or typeCode=XActRelationshipEntryRelationship::COMP)