Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidatePlanOfCareActivityProcedureMoodCodeValue

Constraint

CCD Plan Of Care Activity Procedure SHALL satisfy: moodCodeValue (CONF-488)

OCL

self.moodCode = vocab::x_DocumentProcedureMood::INT or self.moodCode = vocab::x_DocumentProcedureMood::ARQ or self.moodCode = vocab::x_DocumentProcedureMood::PRMS or self.moodCode = vocab::x_DocumentProcedureMood::PRP or self.moodCode = vocab::x_DocumentProcedureMood::RQO

SuccessInvalid XML


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

Valid XML


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

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