Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PlanOfCareActivitySupplyTest5000.0312013-01-31T13:34:17JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidatePlanOfCareActivitySupplyMoodCodeValue

Constraint

CCD Plan Of Care Activity Supply SHALL satisfy: moodCodeValue (CONF-489)

OCL

self.moodCode = vocab::x_DocumentSubstanceMood::INT or self.moodCode = vocab::x_DocumentSubstanceMood::RQO or self.moodCode = vocab::x_DocumentSubstanceMood::PRMS or self.moodCode = vocab::x_DocumentSubstanceMood::PRP

SuccessInvalid XML


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

Valid XML


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

0.010
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.004
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.009
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.004
Properties »