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

Constraint : ch_xua_034_SubjectConfNameID

Constraint Name
ch_xua_034_SubjectConfNameID (type: ERROR, kind: )
Constraint Class
CHXUA_AssertionRoleHCP
Package
chxua
Description
The <SubjectConfirmation> element MUST contain a <NameID> child element. The <NameID> element must convey the GLN of the assistant with name qualifier name qualifier attribute set to urn:gs1:gln (Assistant Extension) or the unique ID the technical user is registered within the community and NameQualifier "urn:e-health-suisse:technical-user-id" (Technical User Extension)
OCL
not(self.subject.oclIsUndefined()) and
  			self.subject.subjectConfirmation->forAll(sct : SubjectConfirmationType |
  				(not(sct.nameID.oclIsUndefined()) and
  				not(sct.nameID.nameQualifier.oclIsUndefined())) implies
  				(sct.nameID.nameQualifier = 'urn:e-health-suisse:technical-user-id' or
  				sct.nameID.nameQualifier = 'urn:gs1:gln')
  			)