Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PayersSectionTest8000.2492013-01-31T13:35:38JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidatePayersSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:7924, CONF:10434 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.18"

OCL

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

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.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
</section>

0.011
testValidatePayersSectionCode

Constraint

Consol Payers Section SHALL contain exactly one [1..1] code (CONF:15395)/@code="48768-6" Payers (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15396)

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 = '48768-6' 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.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
</section>

0.083
testValidatePayersSectionTitle

Constraint

Consol Payers Section SHALL contain exactly one [1..1] title (CONF:7926)

OCL

(self.title.oclIsUndefined() or self.title.isNullFlavorUndefined()) implies (not self.title.oclIsUndefined())

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.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
<title>title</title>
</section>

0.040
testValidatePayersSectionText

Constraint

Consol Payers Section SHALL contain exactly one [1..1] text (CONF:7927)

OCL

not self.text.oclIsUndefined()

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.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
<text/>
</section>

0.012
testValidatePayersSectionCoverageActivity

Constraint

Consol Payers Section SHOULD contain zero or more [0..*] entry (CONF:7959, CONF:8905) Contains exactly one [1..1] Coverage Activity (templateId: 2.16.840.1.113883.10.20.22.4.60)

OCL

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

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
<entry>
<act 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>
</entry>
</section>

0.030
testGetCoverageActivities

Constraint

OCL

SuccessInvalid XML

Valid XML

0.033
testValidatePayersSectionCodeP

Constraint

Consol Payers Section SHALL contain exactly one [1..1] code (CONF:15395)/@code="48768-6" Payers (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15396)

OCL

(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined())

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.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
</section>

0.036
Properties »