Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
DICOMObjectCatalogSectionTest6000.1322013-01-31T13:34:49JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateDICOMObjectCatalogSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8525, CONF:10454 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.6.1.1"

OCL

self.templateId->exists(id : datatypes::II | id.root = '2.16.840.1.113883.10.20.6.1.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.6.1.1"/>
<code code="121181" codeSystem="1.2.840.10008.2.16.4" codeSystemName="DCM" displayName="Dicom Object Catalog"/>
</section>

0.009
testValidateDICOMObjectCatalogSectionCode

Constraint

Consol DICOM Object Catalog Section SHALL contain exactly one [1..1] code (CONF:15456)/@code="121181" Dicom Object Catalog (CodeSystem: 1.2.840.10008.2.16.4 DCM) (CONF:15457)

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 = '121181' and value.codeSystem = '1.2.840.10008.2.16.4')

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.6.1.1"/>
<code code="121181" codeSystem="1.2.840.10008.2.16.4" codeSystemName="DCM" displayName="Dicom Object Catalog"/>
</section>

0.053
testValidateDICOMObjectCatalogSectionCodeP

Constraint

Consol DICOM Object Catalog Section SHALL contain exactly one [1..1] code (CONF:15456)/@code="121181" Dicom Object Catalog (CodeSystem: 1.2.840.10008.2.16.4 DCM) (CONF:15457)

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.6.1.1"/>
<code code="121181" codeSystem="1.2.840.10008.2.16.4" codeSystemName="DCM" displayName="Dicom Object Catalog"/>
</section>

0.024
testValidateDICOMObjectCatalogSectionStudyAct

Constraint

Consol DICOM Object Catalog Section SHALL contain at least one [1..*] entry (CONF:8530, CONF:15458) Contains exactly one [1..1] Study Act (templateId: 2.16.840.1.113883.10.20.6.2.6)

OCL

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

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.6.1.1"/>
<code code="121181" codeSystem="1.2.840.10008.2.16.4" codeSystemName="DCM" displayName="Dicom Object Catalog"/>
<entry>
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.6.2.6"/>
<code code="113014" codeSystem="1.2.840.10008.2.16.4" codeSystemName="DCM"/>
</act>
</entry>
</section>

0.021
testGetStudyActs

Constraint

OCL

SuccessInvalid XML

Valid XML

0.022
Properties »