Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PlanOfCareActivityActTest5000.0322013-01-31T13:34:16JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidatePlanOfCareActivityActMoodCodeValue

Constraint

CCD Plan Of Care Activity Act SHALL satisfy: moodCodeValue (CONF-488)

OCL

self.moodCode = vocab::x_DocumentActMood::INT or self.moodCode = vocab::x_DocumentActMood::ARQ or self.moodCode = vocab::x_DocumentActMood::PRMS or self.moodCode = vocab::x_DocumentActMood::PRP or self.moodCode = vocab::x_DocumentActMood::RQO

SuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.25"/>
</act>

0.012
testValidatePlanOfCareActivityActTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8544, CONF:10510 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.39"

OCL

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

SuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT">
<templateId root="2.16.840.1.113883.10.20.22.4.39"/>
</act>

0.004
testValidatePlanOfCareActivityActId

Constraint

Consol Plan Of Care Activity Act SHALL contain at least one [1..*] id (CONF:8539)

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">
<templateId root="2.16.840.1.113883.10.20.22.4.39"/>
<id/>
</act>

0.009
testValidatePlanOfCareActivityActMoodCode

Constraint

OCL

not self.moodCode.oclIsUndefined() and self.moodCode.oclIsKindOf(vocab::x_DocumentActMood) and let value : vocab::x_DocumentActMood = self.moodCode.oclAsType(vocab::x_DocumentActMood) in value = vocab::x_DocumentActMood::INT or value = vocab::x_DocumentActMood::ARQ or value = vocab::x_DocumentActMood::PRMS or value = vocab::x_DocumentActMood::PRP or value = vocab::x_DocumentActMood::RQO

SuccessInvalid XML


Skip Fail Test

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.39"/>
</act>

0.003
Properties »