Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidatePlanOfCareActivitySubstanceAdministrationMoodCodeValue

Constraint

CCD Plan Of Care Activity Substance Administration 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


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

Valid XML


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

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