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

Constraint : ch_xua_033_OrganizationId

Constraint Name
ch_xua_033_OrganizationId (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 ID attribute ("urn:oasis:names:tc:xspa:1.0:subject:organization-id") MUST convey the identifiers of the organizations or groups the subject is assigned to. The identifiers MUST be OID in the format of URN as registered in the healthcare provider directory.
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-id' and
  					at.attributeValue->size() > 0 and
  					at.attributeValue->forAll(av : AttributeValueType |  av.getListStringValues()->size()> 0)			
  				)
  			)