Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
MedicationsAdministeredSectionTest3000.0402013-01-31T13:34:25JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
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.007
testValidateMedicationsAdministeredSectionCode

Constraint

Consol Medications Administered Section SHALL contain exactly one [1..1] code (CONF:15383)/@code="29549-3" Medications Administered (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15384)

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

0.029
Properties »