Constraint Descriptor : hl7ips1089 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@3c220740 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@5e0a1997 (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Context)

Constraint : hl7ips1089

Constraint Name
hl7ips1089 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@3c220740 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@5e0a1997 (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Context)
Constraint Class
HL7IPS
Package
hl7ips
Description
In International Patient Summary, the element defined by /hl7:ClinicalDocument[hl7:templateId/@root='2.16.840.1.113883.10.22.1.1']/hl7:recordTarget/hl7:patientRole/hl7:patient/hl7:languageCommunication/hl7:languageCode shall verify this requirement : The language code SHALL be in the form nn-CC or nnn-CCC, in accordance with BCP 47 (e.g. nn is the ISO country code; CC is ISO language code)
OCL
self.recordTarget.patientRole.patient.languageCommunication.languageCode->reject(not nullFlavor.oclIsUndefined())->forAll(aa | CommonOperationsStatic::validateByXPATHV2(aa, 'matches(@code,\u0027[a-z]{2,3}-[A-Z]{2,3}\u0027)') )