Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
ProcedureSpecimensTakenSectionTest6000.2192013-01-31T13:36:12JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateProcedureSpecimensTakenSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8086, CONF:10446 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.31"

OCL

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

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.31"/>
<code code="59773-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Specimens Taken"/>
</section>

0.014
testValidateProcedureSpecimensTakenSectionCode

Constraint

Consol Procedure Specimens Taken Section SHALL contain exactly one [1..1] code (CONF:15421)/@code="59773-2" Procedure Specimens Taken (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15422)

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 = '59773-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="2.16.840.1.113883.10.20.22.2.31"/>
<code code="59773-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Specimens Taken"/>
</section>

0.098
testValidateProcedureSpecimensTakenSectionCodeP

Constraint

Consol Procedure Specimens Taken Section SHALL contain exactly one [1..1] code (CONF:15421)/@code="59773-2" Procedure Specimens Taken (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15422)

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.31"/>
<code code="59773-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Specimens Taken"/>
</section>

0.043
testValidateProcedureSpecimensTakenSectionText

Constraint

Consol Procedure Specimens Taken Section SHALL contain exactly one [1..1] text (CONF:8089)

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.31"/>
<code code="59773-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Specimens Taken"/>
<text/>
</section>

0.014
testValidateProcedureSpecimensTakenSectionTitle

Constraint

Consol Procedure Specimens Taken Section SHALL contain exactly one [1..1] title (CONF:8088)

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.31"/>
<code code="59773-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Specimens Taken"/>
<title>title</title>
</section>

0.046
Properties »