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

Constraint : ch_xua_032_Organization

Constraint Name
ch_xua_032_Organization (type: ERROR, kind: )
Constraint Class
CHXUA_AssertionRoleHCP
Package
chxua
Description
In the Heathcare Professional Extension, the Assistant Extension and the Technical User Extension, The organization attribute ("urn:oasis:names:tc:xspa:1.0:subject:organization") of the <AttributeStatement> MUST convey the name of the organizations or groups the subject is a member of.
OCL
self.attributeStatement->forAll(ast : AttributeStatementType |
  				ast.attribute->size() > 0 and
  				ast.attribute->exists(at : AttributeType |
  					not(at.name.oclIsUndefined()) and 
  					at.name = 'urn:oasis:names:tc:xspa:1.0:subject:organization' and
  					at.attributeValue->size() > 0 and
  					at.attributeValue->forAll(av : AttributeValueType |  av.getListStringValues()->size() > 0)
  				)
  			)