Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
ImmunizationsSectionTest8000.2352013-01-31T13:35:26JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateImmunizationsSectionCode

Constraint

Consol Immunizations Section SHALL contain exactly one [1..1] code (CONF:15369)/@code="11369-6" (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15370)

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 = '11369-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.2.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.2"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</section>

0.078
testValidateImmunizationsSectionTitle

Constraint

Consol Immunizations Section SHALL contain exactly one [1..1] title (CONF:9017)

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.2.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.2"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<title>title</title>
</section>

0.037
testValidateImmunizationsSectionText

Constraint

Consol Immunizations Section SHALL contain exactly one [1..1] text (CONF:9018)

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.2.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.2"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<text/>
</section>

0.011
testGetImmunizations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.031
testValidateImmunizationsSectionEntriesOptionalTemplateId

Constraint

The 'ImmunizationsSectionEntriesOptionalTemplateId' invariant is violated on 'org.openhealthtools.mdht.uml.cda.consol.impl.ImmunizationsSectionImpl@2ec95da8{#//}'

OCL

self.templateId->exists(id : datatypes::II | id.root = '2.16.840.1.113883.10.20.22.2.2.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.2.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.2"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</section>

0.011
testValidateImmunizationsSectionCodeP

Constraint

Consol Immunizations Section SHALL contain exactly one [1..1] code (CONF:15369)/@code="11369-6" (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15370)

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.2.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.2"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</section>

0.035
testValidateImmunizationsSectionImmunization

Constraint

Consol Immunizations Section SHALL contain at least one [1..*] entry (CONF:9019, CONF:9020) Contains exactly one [1..1] Immunization Activity (templateId: 2.16.840.1.113883.10.20.22.4.52)

OCL

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

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.2.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.2"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<entry>
<substanceAdministration classCode="SBADM" negationInd="false">
<templateId root="2.16.840.1.113883.10.20.22.4.52"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<administrationUnitCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
</substanceAdministration>
</entry>
</section>

0.028
Properties »