Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
MouthThroatTeethSectionTest5000.0652013-01-31T13:34:25JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testGetProblemEntry

Constraint

OCL

SuccessInvalid XML

Valid XML

0.014
testValidateMouthThroatTeethSectionTemplateId

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

OCL

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

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.1.9.23"/>
<code code="10201-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="MOUTH and THROAT and TEETH"/>
</section>

0.006
testValidateMouthThroatTeethSectionCode

Constraint

IHE Mouth Throat Teeth Section SHALL contain exactly one [1..1] code/@code="10201-2" MOUTH and THROAT and TEETH (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 = '10201-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.1.9.23"/>
<code code="10201-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="MOUTH and THROAT and TEETH"/>
</section>

0.029
testValidateMouthThroatTeethSectionProblemEntry

Constraint

IHE Mouth Throat Teeth Section MAY contain zero or one [0..1] entry Contains exactly one [1..1] Problem Entry (templateId: 1.3.6.1.4.1.19376.1.5.3.1.4.5)

OCL

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

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.9.23"/>
<code code="10201-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="MOUTH and THROAT and TEETH"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.9.23"/>
<code code="10201-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="MOUTH and THROAT and TEETH"/>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5"/>
<templateId root="2.16.840.1.113883.10.20.1.28"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>
</entry>
</section>

0.012
Properties »