Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateObjectiveSectionHasClinicalStatements

Constraint

CDT Objective Section SHOULD satisfy: Contains clinical statements. (CONF-PRGN-15)

OCL

not self.entry->isEmpty()

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.21.2.1"/>
<code code="OBJEC-X" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="OBJECTIVE DATA"/>
<entry/>
</section>

0.008
testValidateObjectiveSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:7869, CONF:10462 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.21.2.1"

OCL

self.templateId->exists(id : datatypes::II | id.root = '2.16.840.1.113883.10.20.21.2.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.21.2.1"/>
<code code="61149-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Objective"/>
</section>

0.004
testValidateObjectiveSectionCode

Constraint

Consol Objective Section SHALL contain exactly one [1..1] code (CONF:15389)/@code="61149-1" Objective (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15390)

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 = '61149-1' 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.21.2.1"/>
<code code="61149-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Objective"/>
</section>

0.010
testValidateObjectiveSectionText

Constraint

Consol Objective Section SHALL contain exactly one [1..1] text (CONF:7872)

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.21.2.1"/>
<code code="61149-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Objective"/>
<text/>
</section>

0.004
testValidateObjectiveSectionTitle

Constraint

Consol Objective Section SHALL contain exactly one [1..1] title (CONF:7871)

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.21.2.1"/>
<code code="61149-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Objective"/>
<title>title</title>
</section>

0.006
Properties »