Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
EncounterPlanOfCareTest3000.0192013-01-31T13:34:23JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidatePlanOfCareActivityEncounterTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8566, CONF:10511 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.40"

OCL

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

SuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC">
<templateId root="2.16.840.1.113883.10.20.22.4.40"/>
</encounter>

0.006
testValidateEncounterPlanOfCareMoodCodeValue

Constraint

The 'EncounterPlanOfCareMoodCodeValue' invariant is violated on 'org.openhealthtools.mdht.uml.cda.ihe.impl.EncounterPlanOfCareImpl@67178fcb{#//}'

OCL

self.moodCode = vocab::x_DocumentEncounterMood::ARQ or self.moodCode = vocab::x_DocumentEncounterMood::PRMS

SuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="ARQ">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.14"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.14"/>
<templateId root="2.16.840.1.113883.10.20.1.25"/>
<code codeSystem="2.16.840.1.113883.5.4" codeSystemName="ActEncounterCode"/>
</encounter>

<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="PRMS">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.14"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.14"/>
<templateId root="2.16.840.1.113883.10.20.1.25"/>
<code codeSystem="2.16.840.1.113883.5.4" codeSystemName="ActEncounterCode"/>
</encounter>

0.010
Properties »