Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.hitsp.tests.LanguageSpokenTest

NameTestsErrorsFailuresTime(s)Time StampHost
LanguageSpokenTest4000.0092013-01-31T13:34:33JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateLanguageSpokenNoProficiencyLevelCode

Constraint

HITSP Language Spoken CDA allows for use of proficiencyLevelCode element, but this element SHOULD NOT be used. (C83-[DE-2.01-CDA-5])

OCL

self.proficiencyLevelCode.oclIsUndefined()

SuccessInvalid XML

Valid XML

0.002
testValidateLanguageSpokenTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( C83-[DE-2.01-CDA-2] ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.3.88.11.83.2"

OCL

self.templateId->exists(id : datatypes::II | id.root = '2.16.840.1.113883.3.88.11.83.2')

SuccessInvalid XML

Valid XML

0.002
testValidateLanguageSpokenModeCode

Constraint

HITSP Language Spoken SHALL contain zero or one [0..1] modeCode, where the @code SHALL be selected from ValueSet LanguageAbilityMode 2.16.840.1.113883.1.11.12249 STATIC 1 (C83-[DE-2.01-CDA-4])

OCL

(self.modeCode.oclIsUndefined() or self.modeCode.isNullFlavorUndefined()) implies (not self.modeCode.oclIsUndefined() and self.modeCode.oclIsKindOf(datatypes::CE) and let value : datatypes::CE = self.modeCode.oclAsType(datatypes::CE) in value.codeSystem = '2.16.840.1.113883.5.60' and (value.code = 'ESGN' or value.code = 'ESP' or value.code = 'EWR' or value.code = 'RSGN' or value.code = 'RSP' or value.code = 'RWR'))

SuccessInvalid XML

Valid XML

0.003
Properties »