Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
AssessmentAndPlanSectionTest10000.1392013-01-31T13:34:30JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testGetProcedureEntries

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetEncounterEntries

Constraint

OCL

SuccessInvalid XML

Valid XML

0.014
testGetImmunizations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.015
testGetMedications

Constraint

OCL

SuccessInvalid XML

Valid XML

0.015
testValidateHITSPAssessmentAndPlanSectionTemplateId

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

OCL

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

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.123"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.13.2.5"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment + Plan"/>
</section>

0.006
testValidateHITSPAssessmentAndPlanSectionMedication

Constraint

HITSP Assessment And Plan Section MAY contain zero or more [0..*] entry Contains exactly one [1..1] Medication (templateId: 2.16.840.1.113883.3.88.11.83.8)

OCL

self.entry->exists(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.123"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.13.2.5"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment + Plan"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.123"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.13.2.5"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment + Plan"/>
<entry>
<substanceAdministration>
<templateId root="2.16.840.1.113883.3.88.11.83.8"/>
<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"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceAdministration>
</entry>
</section>

0.016
testValidateHITSPAssessmentAndPlanSectionImmunization

Constraint

HITSP Assessment And Plan Section MAY contain zero or more [0..*] entry Contains exactly one [1..1] Immunization (templateId: 2.16.840.1.113883.3.88.11.83.13)

OCL

self.entry->exists(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.123"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.13.2.5"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment + Plan"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.123"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.13.2.5"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment + 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.016
testValidateHITSPAssessmentAndPlanSectionEncounterEntry

Constraint

HITSP Assessment And Plan Section MAY contain zero or more [0..*] entry Contains exactly one [1..1] Encounter (templateId: 2.16.840.1.113883.3.88.11.83.16)

OCL

self.entry->exists(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.123"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.13.2.5"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment + Plan"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.123"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.13.2.5"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment + 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.015
testValidateHITSPAssessmentAndPlanSectionProcedureEntry

Constraint

HITSP Assessment And Plan Section MAY contain zero or more [0..*] entry 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.123"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.13.2.5"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment + Plan"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.123"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.13.2.5"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment + 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.017
Properties »