Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
ProcedureContextTest5000.1502013-01-31T13:36:06JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateProcedureContextEffectiveTimeValue

Constraint

Consol Procedure Context effectiveTime, if present, SHALL contain exactly one [1..1] @value (CONF:17173)

OCL

not self.effectiveTime.oclIsUndefined() implies self.effectiveTime.value->size() = 1

SuccessInvalid XML


<act xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.6.2.5"/>
<effectiveTime/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.6.2.5"/>
<effectiveTime value="test"/>
</act>

0.046
testValidateProcedureContextTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:9200, CONF:10530 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.6.2.5"

OCL

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

SuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.6.2.5"/>
</act>

0.013
testValidateProcedureContextCode

Constraint

Consol Procedure Context SHALL contain exactly one [1..1] code (CONF:9201)

OCL

(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined())

SuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.6.2.5"/>
<code/>
</act>

0.040
testValidateProcedureContextEffectiveTime

Constraint

Consol Procedure Context SHOULD contain zero or one [0..1] effectiveTime (CONF:9203)

OCL

(self.effectiveTime.oclIsUndefined() or self.effectiveTime.isNullFlavorUndefined()) implies (not self.effectiveTime.oclIsUndefined())

SuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.6.2.5"/>
<effectiveTime/>
</act>

0.049
Properties »