Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testGetConditions

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
testValidateProblemListSectionTemplateId

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.103"

OCL

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

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.103"/>
<templateId root="2.16.840.1.113883.10.20.1.11"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.6"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem list"/>
</section>

0.007
testValidateProblemListSectionCondition

Constraint

HITSP Problem List Section SHALL contain at least one [1..*] entry (C83-[CT-103-1]) Contains exactly one [1..1] Condition (templateId: 2.16.840.1.113883.3.88.11.83.7)

OCL

self.entry->exists(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.103"/>
<templateId root="2.16.840.1.113883.10.20.1.11"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.6"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem list"/>
<entry>
<act/>
</entry>
</section>

0.016
Properties »