Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.mu2consol.tests.MedicationsAdministeredSectionTest

NameTestsErrorsFailuresTime(s)Time StampHost
MedicationsAdministeredSectionTest4000.1032013-01-31T13:36:43JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateMedicationsAdministeredSectionTemplateId

Constraint

The 'MedicationsAdministeredSectionTemplateId' invariant is violated on 'org.openhealthtools.mdht.uml.cda.mu2consol.impl.MedicationsAdministeredSectionImpl@20f96c40{#//}'

OCL

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

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.38"/>
<templateId root="2.16.840.1.113883.10.20.22.2.38"/>
<code code="29549-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medications Administered"/>
</section>

0.015
testValidateMu2consolMedicationsAdministeredSectionMedicationActivity

Constraint

Mu2consol Medications Administered Section SHALL contain at least one [1..*] entry (CONF:8156) Contains exactly one [1..1] Consol Medication Activity (templateId: 2.16.840.1.113883.10.20.22.4.16)

OCL

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

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.38"/>
<templateId root="2.16.840.1.113883.10.20.22.2.38"/>
<code code="29549-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medications Administered"/>
<entry>
<substanceAdministration classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<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.042
testGetMu2consolMedicationActivities

Constraint

OCL

SuccessInvalid XML

Valid XML

0.044
Properties »