Constraint Descriptor : constraint_pharmpre_PrescriptionItemEntry_entryRelationship_amountsOfUnitsOfTheConsumable_quality (type: ERROR, kind: )

Constraint : constraint_pharmpre_PrescriptionItemEntry_entryRelationship_amountsOfUnitsOfTheConsumable_quality

Constraint Name
constraint_pharmpre_PrescriptionItemEntry_entryRelationship_amountsOfUnitsOfTheConsumable_quality (type: ERROR, kind: )
Constraint Class
PrescriptionItemEntry
Package
ihepre
Description
An amount of units of the consumable to dispense SHALL contain exactly one supply/quantity. (IHE PRE, 6.3.4.1.3.21)
OCL
self.entryRelationship->exists(enresh : POCDMT000040EntryRelationship |
	not enresh.typeCode.oclIsUndefined() and 
	enresh.typeCode=XActRelationshipEntryRelationship::COMP and
	(not enresh.supply.oclIsUndefined()) and
	(not enresh.supply.quantity.oclIsUndefined())
)