Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.ccd.tests.ProductInstanceTest

NameTestsErrorsFailuresTime(s)Time StampHost
ProductInstanceTest4000.0142013-01-31T13:34:18JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateProductInstanceHasScopingEntity

Constraint

CCD Product Instance If participantRole in a product instance contains participantRole / id, then participantRole SHOULD also contain participantRole / scopingEntity. (CONF-451)

OCL

self.id->size() > 0 implies self.scopingEntity->size() > 0

SuccessInvalid XML


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

Valid XML


<participantrole xmlns="urn:hl7-org:v3" classCode="MANU">
<templateId root="2.16.840.1.113883.10.20.1.52"/>
<id/>
<id/>
<scopingEntity/>
</participantrole>

0.005
testValidateProductInstanceTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:7901, CONF:10522 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.37"

OCL

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

SuccessInvalid XML


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

Valid XML


<participantrole xmlns="urn:hl7-org:v3" classCode="MANU">
<templateId root="2.16.840.1.113883.10.20.22.4.37"/>
</participantrole>

0.002
testValidateProductInstanceClassCode

Constraint

Consol Product Instance SHALL contain exactly one [1..1] @classCode="MANU" (CONF:7900)

OCL

isDefined('classCode') and self.classCode=vocab::RoleClassRoot::MANU

SuccessInvalid XML


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

Valid XML


<participantrole xmlns="urn:hl7-org:v3" classCode="MANU">
<templateId root="2.16.840.1.113883.10.20.22.4.37"/>
</participantrole>

0.002
Properties »