Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.cdt.tests.ReasonForVisitSectionTest

NameTestsErrorsFailuresTime(s)Time StampHost
ReasonForVisitSectionTest3000.0182013-01-31T13:33:56JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateReasonForVisitSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:7836, CONF:10448 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.12"

OCL

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

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.12"/>
<code code="29299-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for Visit"/>
</section>

0.004
testValidateReasonForVisitSectionCode

Constraint

Consol Reason For Visit Section SHALL contain exactly one [1..1] code (CONF:15429)/@code="29299-5" Reason for Visit (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15430)

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 = '29299-5' 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="2.16.840.1.113883.10.20.22.2.12"/>
<code code="29299-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for Visit"/>
</section>

0.010
Properties »