Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.hitsp.tests.SurgeriesSectionTest

NameTestsErrorsFailuresTime(s)Time StampHost
SurgeriesSectionTest4000.0452013-01-31T13:34:36JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateHITSPSurgeriesSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.3.88.11.83.108"

OCL

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

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3"/>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.108"/>
<templateId root="2.16.840.1.113883.10.20.1.12"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.11"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.12"/>
<code code="47519-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of procedures"/>
</section>

0.008
testValidateHITSPSurgeriesSectionProcedureActivity

Constraint

HITSP Surgeries Section SHALL contain at least one [1..*] entry (C83-[CT-108-2]) Contains exactly one [1..1] Procedure (templateId: 2.16.840.1.113883.3.88.11.83.17)

OCL

self.entry->exists(entry : cda::Entry | not entry.procedure.oclIsUndefined() and entry.procedure.oclIsKindOf(hitsp::Procedure))

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.108"/>
<templateId root="2.16.840.1.113883.10.20.1.12"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.11"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.12"/>
<code code="47519-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of procedures"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.108"/>
<templateId root="2.16.840.1.113883.10.20.1.12"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.11"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.12"/>
<code code="47519-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of procedures"/>
<entry>
<procedure classCode="PROC" moodCode="EVN">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.19"/>
<templateId root="2.16.840.1.113883.3.88.11.83.17"/>
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</procedure>
</entry>
</section>

0.017
testGetProcedureActivities

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
Properties »