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

Constraint : constraintHASH_SHA1

Constraint Name
constraintHASH_SHA1 (type: ERROR, kind: )
Constraint Class
XDSStableDocumentEntry
Package
rimihe
Description
hash metadata must have SHA1 structure (IHE_ITI_TF V3, 4.2.3.2.10)
OCL
self.slot->select(sl : SlotType1 | (not sl.name.oclIsUndefined()) and (sl.name = 'hash'))->forAll(sl : SlotType1 | 
	(not sl.valueList.oclIsUndefined()) and 
	sl.valueList.value->forAll(val : String | sl.isSHA1(val)) 
)