Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PlanOfCareActivityActTest5000.1372013-01-31T13:35:39JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
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.014
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.039
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.075
testValidatePlanOfCareActivityActClassCode

Constraint

Consol Plan Of Care Activity Act SHALL contain exactly one [1..1] @classCode="ACT" Act (CodeSystem: 2.16.840.1.113883.5.6 HL7ActClass)

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

0.007
Properties »