Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.consol.tests.ComplicationsSectionTest

NameTestsErrorsFailuresTime(s)Time StampHost
ComplicationsSectionTest8000.1562013-01-31T13:34:45JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateComplicationsSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8174, CONF:10384 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.37"

OCL

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

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.37"/>
<code code="55109-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Complications"/>
</section>

0.009
testValidateComplicationsSectionCode

Constraint

Consol Complications Section SHALL contain exactly one [1..1] code (CONF:15453)/@code="55109-3" Complications (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15454)

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 = '55109-3' 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.37"/>
<code code="55109-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Complications"/>
</section>

0.049
testValidateComplicationsSectionCodeP

Constraint

Consol Complications Section SHALL contain exactly one [1..1] code (CONF:15453)/@code="55109-3" Complications (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15454)

OCL

(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined())

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.37"/>
<code code="55109-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Complications"/>
</section>

0.022
testValidateComplicationsSectionTitle

Constraint

Consol Complications Section SHALL contain exactly one [1..1] title (CONF:8176)

OCL

(self.title.oclIsUndefined() or self.title.isNullFlavorUndefined()) implies (not self.title.oclIsUndefined())

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.37"/>
<code code="55109-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Complications"/>
<title>title</title>
</section>

0.024
testValidateComplicationsSectionText

Constraint

Consol Complications Section SHALL contain exactly one [1..1] text (CONF:8177)

OCL

not self.text.oclIsUndefined()

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.37"/>
<code code="55109-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Complications"/>
<text/>
</section>

0.008
testValidateComplicationsSectionProblemObservation

Constraint

Consol Complications Section MAY contain zero or more [0..*] entry (CONF:8795, CONF:8796) Contains exactly one [1..1] Problem Observation (templateId: 2.16.840.1.113883.10.20.22.4.4)

OCL

self.entry->exists(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">
<templateId root="2.16.840.1.113883.10.20.22.2.37"/>
<code code="55109-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Complications"/>
<entry>
<observation/>
</entry>
</section>

0.019
testGetProblemObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.021
Properties »