Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PatientInstructionTest3000.0132013-01-31T13:34:16JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidatePatientInstructionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.1.49"

OCL

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

SuccessInvalid XML


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

Valid XML


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

0.005
testValidatePatientInstructionMoodCode

Constraint

CCD Patient Instruction SHALL contain exactly one [1..1] @moodCode="INT" (CodeSystem: 2.16.840.1.113883.5.1001 HL7ActMood) (CONF-332)

OCL

self.moodCode=vocab::x_DocumentActMood::INT

SuccessInvalid XML


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

Valid XML


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

0.004
Properties »