Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PlanOfCareSectionTest10000.1582013-01-31T13:34:35JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testGetMedication

Constraint

OCL

SuccessInvalid XML

Valid XML

0.020
testValidateHITSPPlanOfCareSectionTemplateId

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

OCL

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

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.124"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<templateId root="2.16.840.1.113883.10.20.1.10"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.31"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
</section>

0.008
testValidateHITSPPlanOfCareSectionMedication

Constraint

HITSP Plan Of Care Section MAY contain zero or one [0..1] entry Contains exactly one [1..1] Medication (templateId: 2.16.840.1.113883.3.88.11.83.8)

OCL

self.entry->one(entry : cda::Entry | not entry.substanceAdministration.oclIsUndefined() and entry.substanceAdministration.oclIsKindOf(hitsp::Medication))

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.124"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<templateId root="2.16.840.1.113883.10.20.1.10"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.31"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.124"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<templateId root="2.16.840.1.113883.10.20.1.10"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.31"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
<entry>
<substanceAdministration>
<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.7"/>
<templateId root="2.16.840.1.113883.3.88.11.83.8"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.7.1"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<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"/>
</substanceAdministration>
</entry>
</section>

0.018
testValidateHITSPPlanOfCareSectionImmunization

Constraint

HITSP Plan Of Care Section MAY contain zero or one [0..1] entry Contains exactly one [1..1] Immunization (templateId: 2.16.840.1.113883.3.88.11.83.13)

OCL

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

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.124"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<templateId root="2.16.840.1.113883.10.20.1.10"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.31"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.124"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<templateId root="2.16.840.1.113883.10.20.1.10"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.31"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
<entry>
<substanceAdministration 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>
</entry>
</section>

0.017
testValidateHITSPPlanOfCareSectionEncounter

Constraint

HITSP Plan Of Care Section MAY contain zero or one [0..1] entry Contains exactly one [1..1] Encounter (templateId: 2.16.840.1.113883.3.88.11.83.16)

OCL

self.entry->one(entry : cda::Entry | not entry.encounter.oclIsUndefined() and entry.encounter.oclIsKindOf(hitsp::Encounter))

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.124"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<templateId root="2.16.840.1.113883.10.20.1.10"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.31"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.124"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<templateId root="2.16.840.1.113883.10.20.1.10"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.31"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
<entry>
<encounter classCode="ENC">
<templateId root="2.16.840.1.113883.3.88.11.83.16"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.14"/>
<code codeSystem="2.16.840.1.113883.5.4" codeSystemName="ActEncounterCode"/>
</encounter>
</entry>
</section>

0.017
testValidateHITSPPlanOfCareSectionProcedure

Constraint

HITSP Plan Of Care Section MAY contain zero or one [0..1] entry Contains exactly one [1..1] Procedure (templateId: 2.16.840.1.113883.3.88.11.83.17)

OCL

self.entry->one(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.124"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<templateId root="2.16.840.1.113883.10.20.1.10"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.31"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.124"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<templateId root="2.16.840.1.113883.10.20.1.10"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.31"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
<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.016
testGetImmunization

Constraint

OCL

SuccessInvalid XML

Valid XML

0.020
testGetEncounter

Constraint

OCL

SuccessInvalid XML

Valid XML

0.020
testGetProcedure

Constraint

OCL

SuccessInvalid XML

Valid XML

0.019
Properties »