Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testGetProblemObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.040
testValidateProcedureFindingsSectionTemplateId

Constraint

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

OCL

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

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.28"/>
<code code="59776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Findings"/>
</section>

0.013
testValidateProcedureFindingsSectionCode

Constraint

Consol Procedure Findings Section SHALL contain exactly one [1..1] code (CONF:15417)/@code="59776-5" Procedure Findings (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15418)

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 = '59776-5' 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.28"/>
<code code="59776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Findings"/>
</section>

0.097
testValidateProcedureFindingsSectionCodeP

Constraint

Consol Procedure Findings Section SHALL contain exactly one [1..1] code (CONF:15417)/@code="59776-5" Procedure Findings (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15418)

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.28"/>
<code code="59776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Findings"/>
</section>

0.041
testValidateProcedureFindingsSectionText

Constraint

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

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.28"/>
<code code="59776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Findings"/>
<text/>
</section>

0.013
testValidateProcedureFindingsSectionTitle

Constraint

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

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.28"/>
<code code="59776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Findings"/>
<title>title</title>
</section>

0.044
testValidateProcedureFindingsSectionProblemObservation

Constraint

Consol Procedure Findings Section MAY contain zero or more [0..*] entry (CONF:8090, CONF:8091) Contains exactly one [1..1] Problem Observation (templateId: 2.16.840.1.113883.10.20.22.4.4)

OCL

self.entry->exists(entry : cda::Entry | not entry.observation.oclIsUndefined() and entry.observation.oclIsKindOf(consol::ProblemObservation))

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.28"/>
<code code="59776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Findings"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.28"/>
<code code="59776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Findings"/>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.4"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>
</entry>
</section>

0.034
Properties »