Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.ihe.tests.ImmunizationsSectionTest

NameTestsErrorsFailuresTime(s)Time StampHost
ImmunizationsSectionTest4000.0362013-01-31T13:34:24JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateIHEImmunizationsSectionTemplateId

Constraint

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

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.23"/>
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
</section>

0.007
testValidateIHEImmunizationsSectionImmunization

Constraint

IHE Immunizations Section SHALL contain at least one [1..*] entry Contains exactly one [1..1] Immunization (templateId: 1.3.6.1.4.1.19376.1.5.3.1.4.12)

OCL

self.entry->exists(entry : cda::Entry | not entry.substanceAdministration.oclIsUndefined() and entry.substanceAdministration.oclIsKindOf(ihe::Immunization))

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.23"/>
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.23"/>
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
<entry>
<substanceAdministration moodCode="EVN">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.12"/>
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<code code="IMMUNIZ" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
</substanceAdministration>
</entry>
</section>

0.012
testGetImmunizations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.015
Properties »