Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PlanOfCareActivitySupplyTest5000.1342013-01-31T13:35:40JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidatePlanOfCareActivitySupplyTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8579, CONF:10515 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.43"

OCL

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

SuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3" classCode="SPLY">
<templateId root="2.16.840.1.113883.10.20.22.4.43"/>
</supply>

0.013
testValidatePlanOfCareActivitySupplyId

Constraint

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

OCL

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

SuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3" classCode="SPLY">
<templateId root="2.16.840.1.113883.10.20.22.4.43"/>
<id/>
</supply>

0.039
testValidatePlanOfCareActivitySupplyMoodCode

Constraint

OCL

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

SuccessInvalid XML


Skip Fail Test

Valid XML


<supply xmlns="urn:hl7-org:v3" classCode="SPLY" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.43"/>
</supply>

0.067
testValidatePlanOfCareActivitySupplyClassCode

Constraint

OCL

self.classCode=vocab::ActClassSupply::SPLY

SuccessInvalid XML


Skip Fail Test

Valid XML


<supply xmlns="urn:hl7-org:v3" classCode="SPLY">
<templateId root="2.16.840.1.113883.10.20.22.4.43"/>
</supply>

0.007
Properties »