Constraint Descriptor : asipstructmin051 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@dd69450 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@2a31749 (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Context)

Constraint : asipstructmin051

Constraint Name
asipstructmin051 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@dd69450 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@2a31749 (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Context)
Constraint Class
SMDS_CDAClinicalDocument
Package
asipstructmin
Description
In Structuration Minimale Documents de Santé, the element defined by /hl7:ClinicalDocument[hl7:templateId/@root='1.2.250.1.213.1.1.1.1']/hl7:recordTarget/hl7:patientRole/hl7:patient/hl7:name/hl7:family shall verify this requirement : Valeur du nom typé par l’attribut qualifier : "BR" pour le nom de famille "SP" pour le nom de d’usage "CL" pour le pseudonyme
OCL
self.recordTarget.patientRole.patient.name.family->reject(not nullFlavor.oclIsUndefined())->forAll(aa | CommonOperationsStatic::validateByXPATHV2(aa, '//cda:recordTarget/cda:patientRole/cda:patient/cda:name/cda:family/@qualifier=\u0027BR\u0027 or //cda:recordTarget/cda:patientRole/cda:patient/cda:name/cda:family/@qualifier=\u0027SP\u0027 or //cda:recordTarget/cda:patientRole/cda:patient/cda:name/cda:family/@qualifier=\u0027CL\u0027') )