Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
CoverageEntryTest5000.0422013-01-31T13:34:22JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateCoverageActivityMoodCode

Constraint

Consol Coverage Activity SHALL contain exactly one [1..1] @moodCode="EVN" Event (CodeSystem: 2.16.840.1.113883.5.1001 HL7ActMood) (CONF:8873)

OCL

self.moodCode=vocab::x_DocumentActMood::EVN

SuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.60"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment Sources"/>
<statusCode code="completed"/>
</act>

0.004
testValidateCoverageEntryTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( ) such that it SHALL contain exactly one [1..1] @root="1.3.6.1.4.1.19376.1.5.3.1.4.17"

OCL

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

SuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="DEF">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.17"/>
<templateId root="2.16.840.1.113883.10.20.1.20"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment sources"/>
<statusCode code="completed"/>
</act>

0.007
testValidateCoverageEntryPayerEntry

Constraint

IHE Coverage Entry SHALL contain at least one [1..*] entryRelationship Contains @typeCode="COMP" COMP, and Contains exactly one [1..1] Payer Entry (templateId: 1.3.6.1.4.1.19376.1.5.3.1.4.18)

OCL

self.entryRelationship->exists(entryRelationship : cda::EntryRelationship | not entryRelationship.act.oclIsUndefined() and entryRelationship.act.oclIsKindOf(ihe::PayerEntry) and entryRelationship.typeCode = vocab::x_ActRelationshipEntryRelationship::COMP)

SuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="DEF">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.17"/>
<templateId root="2.16.840.1.113883.10.20.1.20"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment sources"/>
<statusCode code="completed"/>
<entryRelationship typeCode="COMP">
<act/>
</entryRelationship>
</act>

0.016
testGetPayerEntries

Constraint

OCL

SuccessInvalid XML

Valid XML

0.012
Properties »