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

Constraint : ch_xua_031_SubjetNameID

Constraint Name
ch_xua_031_SubjetNameID (type: ERROR, kind: )
Constraint Class
CHXUA_AssertionRoleHCP
Package
chxua
Description
In the Heathcare Professional Extension, the Assistant Extension and the Technical User Extension, The <NameID> child element of the <Subject> element MUST contain the GLN of the subject (responsible healthcare professional) with name qualifier attribute set to urn:gs1:gln.
OCL
not(self.subject.oclIsUndefined()) and
  			not(self.subject.nameID.oclIsUndefined()) and
  			not(self.subject.nameID.nameQualifier.oclIsUndefined()) and
  			not(self.subject.nameID.value.oclIsUndefined()) and
  			self.subject.nameID.nameQualifier = 'urn:gs1:gln' and
  			self.subject.nameID.value.size() = 13