Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.hitsp.tests.PayersSectionTest

NameTestsErrorsFailuresTime(s)Time StampHost
PayersSectionTest4000.0442013-01-31T13:34:35JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateHITSPPayersSectionTemplateId

Constraint

This section SHALL include entries from the Insurance Provider module when this information is known.

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.101"/>
<templateId root="2.16.840.1.113883.10.20.1.9"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.5.3.7"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment sources"/>
</section>

0.008
testValidateHITSPPayersSectionInsuranceProvider

Constraint

This section SHALL include entries from the Insurance Provider module when this information is known.

OCL

self.entry->exists(entry : cda::Entry | not entry.act.oclIsUndefined() and entry.act.oclIsKindOf(hitsp::InsuranceProvider))

SuccessInvalid XML


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

Valid XML


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

0.016
testGetInsuranceProviders

Constraint

OCL

SuccessInvalid XML

Valid XML

0.017
Properties »