Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.mu2consol.tests.ResultsSectionTest

NameTestsErrorsFailuresTime(s)Time StampHost
ResultsSectionTest4000.1062013-01-31T13:36:43JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateResultsSectionEntriesOptionalTemplateId

Constraint

The 'ResultsSectionEntriesOptionalTemplateId' invariant is violated on 'org.openhealthtools.mdht.uml.cda.mu2consol.impl.ResultsSectionImpl@222f2141{#//}'

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.3"/>
<templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
</section>

0.017
testValidateMu2consolResultsSectionResultOrganizer

Constraint

Mu2consol Results Section SHALL contain at least one [1..*] entry (CONF:7112, CONF:7113) Contains exactly one [1..1] Result Organizer (templateId: 2.16.840.1.113883.10.20.22.4.1)

OCL

self.entry->exists(entry : cda::Entry | not entry.organizer.oclIsUndefined() and entry.organizer.oclIsKindOf(mu2consol::ResultOrganizer))

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.3"/>
<templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.3"/>
<templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
<entry>
<organizer moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
</organizer>
</entry>
</section>

0.041
testGetMu2consolResultOrganizers

Constraint

OCL

SuccessInvalid XML

Valid XML

0.046
Properties »