Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
SubjectiveSectionTest6000.2332013-01-31T13:36:26JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateSubjectiveSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:7873, CONF:10470 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.21.2.2"

OCL

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

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.2"/>
<code code="61150-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Subjective"/>
</section>

0.014
testValidateSubjectiveSectionCode

Constraint

Consol Subjective Section SHALL contain exactly one [1..1] code (CONF:15437)/@code="61150-9" Subjective (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15438)

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 = '61150-9' 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.2"/>
<code code="61150-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Subjective"/>
</section>

0.106
testValidateSubjectiveSectionText

Constraint

Consol Subjective Section SHALL contain exactly one [1..1] text (CONF:7876)

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.2"/>
<code code="61150-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Subjective"/>
<text/>
</section>

0.015
testValidateSubjectiveSectionTitle

Constraint

Consol Subjective Section SHALL contain exactly one [1..1] title (CONF:7875)

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.2"/>
<code code="61150-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Subjective"/>
<title>title</title>
</section>

0.049
testValidateSubjectiveSectionCodeP

Constraint

Consol Subjective Section SHALL contain exactly one [1..1] code (CONF:15437)/@code="61150-9" Subjective (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15438)

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.21.2.2"/>
<code code="61150-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Subjective"/>
</section>

0.046
Properties »