Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
HistoryOfPresentIllnessSectionTest6000.1652013-01-31T13:35:18JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateHistoryOfPresentIllnessSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:10458 ) such that it SHALL contain exactly one [1..1] @root="1.3.6.1.4.1.19376.1.5.3.1.3.4"

OCL

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

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.4"/>
<code code="10164-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PRESENT ILLNESS"/>
</section>

0.011
testValidateHistoryOfPresentIllnessSectionCode

Constraint

Consol History Of Present Illness Section SHALL contain exactly one [1..1] code (CONF:15477)/@code="10164-2" HISTORY OF PRESENT ILLNESS (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15478)

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 = '10164-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.4"/>
<code code="10164-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PRESENT ILLNESS"/>
</section>

0.074
testValidateHistoryOfPresentIllnessSectionCodeP

Constraint

Consol History Of Present Illness Section SHALL contain exactly one [1..1] code (CONF:15477)/@code="10164-2" HISTORY OF PRESENT ILLNESS (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15478)

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="1.3.6.1.4.1.19376.1.5.3.1.3.4"/>
<code code="10164-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PRESENT ILLNESS"/>
</section>

0.032
testValidateHistoryOfPresentIllnessSectionTitle

Constraint

Consol History Of Present Illness Section SHALL contain exactly one [1..1] title (CONF:7850)

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="1.3.6.1.4.1.19376.1.5.3.1.3.4"/>
<code code="10164-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PRESENT ILLNESS"/>
<title>title</title>
</section>

0.035
testValidateHistoryOfPresentIllnessSectionText

Constraint

Consol History Of Present Illness Section SHALL contain exactly one [1..1] text (CONF:7851)

OCL

not self.text.oclIsUndefined()

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.4"/>
<code code="10164-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PRESENT ILLNESS"/>
<text/>
</section>

0.011
Properties »