Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidatePlanOfCareActivityProcedureTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8570, CONF:10513 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.41"

OCL

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

SuccessInvalid XML


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

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.41"/>
</procedure>

0.012
testValidatePlanOfCareActivityProcedureId

Constraint

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

OCL

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

SuccessInvalid XML


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

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.41"/>
<id/>
</procedure>

0.039
testValidatePlanOfCareActivityProcedureMoodCode

Constraint

OCL

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

SuccessInvalid XML


Skip Fail Test

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.41"/>
</procedure>

0.077
testValidatePlanOfCareActivityProcedureClassCode

Constraint

OCL

self.classCode=vocab::ActClass::PROC

SuccessInvalid XML


Skip Fail Test

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.41"/>
</procedure>

0.007
Properties »