Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.ihe.tests.DischargeDiagnosisSectionTest

NameTestsErrorsFailuresTime(s)Time StampHost
DischargeDiagnosisSectionTest5000.0642013-01-31T13:34:22JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateDischargeDiagnosisSectionTemplateId

Constraint

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

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.7"/>
<code code="11535-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HOSPITAL DISCHARGE DX"/>
</section>

0.007
testValidateDischargeDiagnosisSectionCode

Constraint

IHE Discharge Diagnosis Section SHALL contain exactly one [1..1] code/@code="11535-2" HOSPITAL DISCHARGE DX (CodeSystem: 2.16.840.1.113883.6.1 LOINC)

OCL

(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined() and self.code.oclIsKindOf(datatypes::CE) and let value : datatypes::CE = self.code.oclAsType(datatypes::CE) in value.code = '11535-2' and value.codeSystem = '2.16.840.1.113883.6.1')

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.7"/>
<code code="11535-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HOSPITAL DISCHARGE DX"/>
</section>

0.027
testValidateDischargeDiagnosisSectionProblemConcernEntry

Constraint

IHE Discharge Diagnosis Section SHALL contain exactly one [1..1] entry Contains exactly one [1..1] Problem Concern Entry (templateId: 1.3.6.1.4.1.19376.1.5.3.1.4.5.2)

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.7"/>
<code code="11535-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HOSPITAL DISCHARGE DX"/>
<entry>
<act/>
</entry>
</section>

0.012
testGetProblemConcernEntry

Constraint

OCL

SuccessInvalid XML

Valid XML

0.013
Properties »