Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.hitsp.tests.HistoryOfPastIllnessSectionTest

NameTestsErrorsFailuresTime(s)Time StampHost
HistoryOfPastIllnessSectionTest4000.0432013-01-31T13:34:32JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testGetCondition

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
testValidateHITSPHistoryOfPastIllnessSectionTemplateId

Constraint

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

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.104"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.8"/>
<templateId root="2.16.840.1.113883.10.20.2.9"/>
<code code="11348-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PAST ILLNESS"/>
</section>

0.007
testValidateHITSPHistoryOfPastIllnessSectionCondition

Constraint

HITSP History Of Past Illness Section SHALL contain exactly one [1..1] entry Contains exactly one [1..1] Condition (templateId: 2.16.840.1.113883.3.88.11.83.7)

OCL

self.entry->one(entry : cda::Entry | not entry.act.oclIsUndefined() and entry.act.oclIsKindOf(hitsp::Condition))

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.104"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.8"/>
<templateId root="2.16.840.1.113883.10.20.2.9"/>
<code code="11348-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PAST ILLNESS"/>
<entry>
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.7"/>
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5.2"/>
<code nullFlavor="NA"/>
</act>
</entry>
</section>

0.015
Properties »