Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidatePatientContactParticipantTemplateId

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

OCL

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

SuccessInvalid XML


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

Valid XML


<participant1 xmlns="urn:hl7-org:v3" typeCode="IND">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.2.4"/>
</participant1>

0.005
testValidatePatientContactParticipantTime

Constraint

IHE Patient Contact Participant MAY contain zero or one [0..1] time

OCL

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

SuccessInvalid XML


<participant1 xmlns="urn:hl7-org:v3" typeCode="IND">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.2.4"/>
</participant1>

Valid XML


<participant1 xmlns="urn:hl7-org:v3" typeCode="IND">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.2.4"/>
<time/>
</participant1>

0.003
testValidatePatientContactParticipantTypeCode

Constraint

IHE Patient Contact Participant SHALL contain exactly one [1..1] @typeCode="IND"

OCL

self.typeCode=vocab::ParticipationType::IND

SuccessInvalid XML


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

Valid XML


<participant1 xmlns="urn:hl7-org:v3" typeCode="IND">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.2.4"/>
</participant1>

0.003
Properties »