Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
AdvanceDirectiveVerificationTest4000.1032013-01-31T13:34:11JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateAdvanceDirectiveVerificationTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF-92 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.1.58"

OCL

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

SuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="VRF">
<templateId root="2.16.840.1.113883.10.20.1.58"/>
</participant2>

0.003
testValidateAdvanceDirectiveVerificationTypeCode

Constraint

CCD Advance Directive Verification SHALL contain exactly one [1..1] @typeCode="VRF" (CONF-94)

OCL

self.typeCode=vocab::ParticipationType::VRF

SuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="VRF">
<templateId root="2.16.840.1.113883.10.20.1.58"/>
</participant2>

0.004
testValidateAdvanceDirectiveVerificationTime

Constraint

CCD Advance Directive Verification SHOULD contain exactly one [1..1] time (CONF-95)

OCL

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

SuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="VRF">
<templateId root="2.16.840.1.113883.10.20.1.58"/>
<time/>
</participant2>

0.004
Properties »