Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
AssessmentSectionTest4000.1332013-01-31T13:36:31JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateAssessmentSectionTemplateId

Constraint

The 'AssessmentSectionTemplateId' invariant is violated on 'org.openhealthtools.mdht.uml.cda.mu2consol.impl.AssessmentSectionImpl@21277bd9{#//}'

OCL

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

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.8"/>
<templateId root="2.16.840.1.113883.10.20.22.2.8"/>
<code code="51848-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessments"/>
</section>

0.039
testGetProblemObservation

Constraint

OCL

SuccessInvalid XML

Valid XML

0.050
testValidateMu2consolAssessmentSectionProblemObservation

Constraint

Mu2consol Assessment Section SHALL contain exactly one [1..1] entry Contains exactly one [1..1] Consol Problem Observation (templateId: 2.16.840.1.113883.10.20.22.4.4)

OCL

self.entry->one(entry : cda::Entry | not entry.observation.oclIsUndefined() and entry.observation.oclIsKindOf(consol::ProblemObservation))

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.4"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>
</entry>
</section>

0.042
Properties »