Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateHITSPImmunizationRefusalReason

Constraint

HITSP Immunization The reason for refusal SHALL be coded as specified in HITSP/C80 Section 2.2.3.5.3 No Immunization Reason

OCL

self.entryRelationship->select(er | er.typeCode = vocab::x_ActRelationshipEntryRelationship::RSON and er.act.code.codeSystem <> '2.16.840.1.113883.1.11.19717' )->isEmpty()

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.13"/>
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.12"/>
<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"/>
<entryRelationship typeCode="RSON"/>
</substanceadministration>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.13"/>
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.12"/>
<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"/>
<entryRelationship typeCode="RSON">
<act>
<code codeSystem="2.16.840.1.113883.1.11.19717"/>
</act>
</entryRelationship>
</substanceadministration>

0.016
testValidateHITSPImmunizationCodedProductName

Constraint

HITSP Immunization Immunizations SHALL be coded using CVX as specified in HITSP/C80 Section 2.2.3.5.1 Vaccines Administered. (C154-[DE-13.06-1])

OCL

self.consumable.manufacturedProduct.manufacturedMaterial.code.codeSystem='2.16.840.1.113883.6.59'

SuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.13"/>
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.12"/>
<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"/>
<consumable>
<manufacturedProduct classCode="MANU">
<templateId root="2.16.840.1.113883.10.20.1.53"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.7.2"/>
<manufacturedMaterial>
<code code="52" codeSystem="INVALID CODESYSTEM" displayName="Hepatitis A vaccine"/>
</manufacturedMaterial>
</manufacturedProduct>
</consumable>
</substanceadministration>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.13"/>
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.12"/>
<templateId root="2.16.840.1.113883.3.88.11.83.13"/>
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.12"/>
<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"/>
<consumable>
<manufacturedProduct classCode="MANU">
<templateId root="2.16.840.1.113883.10.20.1.53"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.7.2"/>
<manufacturedMaterial>
<code code="52" codeSystem="2.16.840.1.113883.6.59" displayName="Hepatitis A vaccine"/>
</manufacturedMaterial>
</manufacturedProduct>
</consumable>
</substanceadministration>

0.010
testValidateHITSPImmunizationTemplateId

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.13"

OCL

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

SuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.13"/>
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.12"/>
<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>

0.007
Properties »