Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
ScanOriginalAuthorTest4000.0132013-01-31T13:34:27JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateScanOriginalAuthorHasAssignedAuthorId

Constraint

IHE Scan Original Author SHOULD satisfy: The assignedAuthor/id element if known shall include both the root and the extension attributes. Refer to PCC TF-2: 4.1.1 for more details.

OCL

self.assignedAuthor.id->forAll(ident : datatypes::II | not ident.root.oclIsUndefined() and not ident.extension.oclIsUndefined())

SuccessInvalid XML


<author xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.2.20.1"/>
<assignedAuthor>
<id/>
</assignedAuthor>
</author>

Valid XML


<author xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.2.20.1"/>
<assignedAuthor>
<id root="root" extension="ext"/>
</assignedAuthor>
</author>

0.004
testValidateScanOriginalAuthorHasAssignedAuthorRepresentedOrganizationId

Constraint

IHE Scan Original Author SHOULD satisfy: The assignedAuthor/representedOrganization/id element if known shall include both the root and the extension attributes. Refer to PCC TF-2: 4.1.1 for more details.

OCL

self.assignedAuthor.representedOrganization.id->forAll(ident : datatypes::II | not ident.root.oclIsUndefined() and not ident.extension.oclIsUndefined())

SuccessInvalid XML


<author xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.2.20.1"/>
<assignedAuthor>
<representedOrganization>
<id/>
</representedOrganization>
</assignedAuthor>
</author>

Valid XML


<author xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.2.20.1"/>
<assignedAuthor>
<representedOrganization>
<id root="root" extension="ext"/>
</representedOrganization>
</assignedAuthor>
</author>

0.003
testValidateScanOriginalAuthorTemplateId

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.2.20.1"

OCL

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

SuccessInvalid XML


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

Valid XML


<author xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.2.20.1"/>
</author>

0.003
Properties »