Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.ccd.tests.CoveragePlanDescriptionTest

NameTestsErrorsFailuresTime(s)Time StampHost
CoveragePlanDescriptionTest4000.0222013-01-31T13:34:12JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateCoveragePlanDescriptionClassCode

Constraint

CCD Coverage Plan Description SHALL contain exactly one [1..1] @classCode="ACT" Act (CodeSystem: 2.16.840.1.113883.5.6 HL7ActClass) (CONF-67)

OCL

self.classCode=vocab::x_ActClassDocumentEntryAct::ACT

SuccessInvalid XML


<act xmlns="urn:hl7-org:v3"/>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="DEF"/>

0.005
testValidateCoveragePlanDescriptionId

Constraint

CCD Coverage Plan Description SHALL contain at least one [1..*] id (CONF-68)

OCL

(self.id->isEmpty() or self.id->exists(element | element.isNullFlavorUndefined())) implies (not self.id->isEmpty())

SuccessInvalid XML


<act xmlns="urn:hl7-org:v3"/>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="DEF">
<id/>
</act>

0.007
testValidateCoveragePlanDescriptionMoodCode

Constraint

CCD Coverage Plan Description SHALL contain exactly one [1..1] @moodCode="DEF" (CodeSystem: 2.16.840.1.113883.5.1001 HL7ActMood) (CONF-67)

OCL

self.moodCode=vocab::x_DocumentActMood::DEF

SuccessInvalid XML


<act xmlns="urn:hl7-org:v3"/>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="DEF"/>

0.003
Properties »