Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateSurgicalDrainsSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8038, CONF:10473 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.7.13"

OCL

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

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.7.13"/>
<code code="11537-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Surgical Drains"/>
</section>

0.016
testValidateSurgicalDrainsSectionCode

Constraint

Consol Surgical Drains Section SHALL contain exactly one [1..1] code (CONF:15441)/@code="11537-8" Surgical Drains (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15442)

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 = '11537-8' 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.7.13"/>
<code code="11537-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Surgical Drains"/>
</section>

0.105
testValidateSurgicalDrainsSectionCodeP

Constraint

Consol Surgical Drains Section SHALL contain exactly one [1..1] code (CONF:15441)/@code="11537-8" Surgical Drains (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15442)

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.7.13"/>
<code code="11537-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Surgical Drains"/>
</section>

0.046
testValidateSurgicalDrainsSectionText

Constraint

Consol Surgical Drains Section SHALL contain exactly one [1..1] text (CONF:8041)

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.7.13"/>
<code code="11537-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Surgical Drains"/>
<text/>
</section>

0.015
testValidateSurgicalDrainsSectionTitle

Constraint

Consol Surgical Drains Section SHALL contain exactly one [1..1] title (CONF:8040)

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.7.13"/>
<code code="11537-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Surgical Drains"/>
<title>title</title>
</section>

0.049
Properties »