Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidatePlanOfCareActivitySubstanceAdministrationTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8574, CONF:10514 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.42"

OCL

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

SuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.42"/>
</substanceadministration>

0.012
testValidatePlanOfCareActivitySubstanceAdministrationId

Constraint

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

OCL

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

SuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.42"/>
<id/>
</substanceadministration>

0.039
testValidatePlanOfCareActivitySubstanceAdministrationMoodCode

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


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.42"/>
</substanceadministration>

0.066
testValidatePlanOfCareActivitySubstanceAdministrationClassCode

Constraint

OCL

self.classCode=vocab::ActClass::SBADM

SuccessInvalid XML


Skip Fail Test

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.42"/>
</substanceadministration>

0.007
Properties »