Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
EncounterActivitiesTest3000.0672013-01-31T13:36:33JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateEncounterActivitiesTemplateId

Constraint

The 'EncounterActivitiesTemplateId' invariant is violated on 'org.openhealthtools.mdht.uml.cda.mu2consol.impl.EncounterActivitiesImpl@40ae6b79{#//}'

OCL

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

SuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.49"/>
<templateId root="2.16.840.1.113883.10.20.22.4.49"/>
<code codeSystem="2.16.840.1.113883.6.12" codeSystemName="CPT-4"/>
</encounter>

0.016
testValidateMu2consolEncounterActivitiesCodeValue

Constraint

Mu2consol Encounter Activities The value for 'code' for encounter activities SHOULD be selected from ICD-10(codeSystem 2.16.840.1.113883.6.3) or SNOMED CT (codeSystem 2.16.840.1.113883.6.96)

OCL

self.code.isNullFlavorDefined() or self.code.codeSystem = '2.16.840.1.113883.6.3' xor self.code.codeSystem = '2.16.840.1.113883.6.96'

SuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.49"/>
<templateId root="2.16.840.1.113883.10.20.22.4.49"/>
<code codeSystem="2.16.840.1.113883.6.3"/>
</encounter>

0.048
Properties »