Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidatePlanOfCareActivityEncounterTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8566, CONF:10511 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.40"

OCL

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

SuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC">
<templateId root="2.16.840.1.113883.10.20.22.4.40"/>
</encounter>

0.013
testValidatePlanOfCareActivityEncounterId

Constraint

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

OCL

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

SuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC">
<templateId root="2.16.840.1.113883.10.20.22.4.40"/>
<id/>
</encounter>

0.039
testValidatePlanOfCareActivityEncounterMoodCode

Constraint

OCL

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

SuccessInvalid XML


Skip Fail Test

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.40"/>
</encounter>

0.075
testValidatePlanOfCareActivityEncounterClassCode

Constraint

OCL

self.classCode=vocab::ActClass::ENC

SuccessInvalid XML


Skip Fail Test

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC">
<templateId root="2.16.840.1.113883.10.20.22.4.40"/>
</encounter>

0.007
Properties »