Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
ProcedureImplantsSectionTest6000.2122013-01-31T13:36:07JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateProcedureImplantsSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8178, CONF:10444 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.40"

OCL

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

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.40"/>
<code code="59771-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Implants"/>
</section>

0.013
testValidateProcedureImplantsSectionCode

Constraint

Consol Procedure Implants Section SHALL contain exactly one [1..1] code (CONF:15373)/@code="59771-6" Procedure Implants (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15374)

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 = '59771-6' 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.40"/>
<code code="59771-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Implants"/>
</section>

0.096
testValidateProcedureImplantsSectionCodeP

Constraint

Consol Procedure Implants Section SHALL contain exactly one [1..1] code (CONF:15373)/@code="59771-6" Procedure Implants (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15374)

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.40"/>
<code code="59771-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Implants"/>
</section>

0.041
testValidateProcedureImplantsSectionText

Constraint

Consol Procedure Implants Section SHALL contain exactly one [1..1] text (CONF:8181)

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.40"/>
<code code="59771-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Implants"/>
<text/>
</section>

0.014
testValidateProcedureImplantsSectionTitle

Constraint

Consol Procedure Implants Section SHALL contain exactly one [1..1] title (CONF:8180)

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.40"/>
<code code="59771-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Implants"/>
<title>title</title>
</section>

0.045
Properties »