Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PlanOfCareActivityObservationTest5000.1372013-01-31T13:35:39JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidatePlanOfCareActivityObservationTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8583, CONF:10512 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.44"

OCL

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

SuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS">
<templateId root="2.16.840.1.113883.10.20.22.4.44"/>
</observation>

0.014
testValidatePlanOfCareActivityObservationId

Constraint

Consol Plan Of Care Activity Observation SHALL contain at least one [1..*] id (CONF:8584)

OCL

(self.id->isEmpty() or self.id->exists(element | element.isNullFlavorUndefined())) implies (not self.id->isEmpty())

SuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS">
<templateId root="2.16.840.1.113883.10.20.22.4.44"/>
<id/>
</observation>

0.038
testValidatePlanOfCareActivityObservationMoodCode

Constraint

OCL

not self.moodCode.oclIsUndefined() and self.moodCode.oclIsKindOf(vocab::x_ActMoodDocumentObservation) and let value : vocab::x_ActMoodDocumentObservation = self.moodCode.oclAsType(vocab::x_ActMoodDocumentObservation) in value = vocab::x_ActMoodDocumentObservation::INT or value = vocab::x_ActMoodDocumentObservation::GOL or value = vocab::x_ActMoodDocumentObservation::PRMS or value = vocab::x_ActMoodDocumentObservation::PRP or value = vocab::x_ActMoodDocumentObservation::RQO

SuccessInvalid XML


Skip Fail Test

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.44"/>
</observation>

0.076
testValidatePlanOfCareActivityObservationClassCode

Constraint

OCL

self.classCode=vocab::ActClassObservation::OBS

SuccessInvalid XML


Skip Fail Test

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS">
<templateId root="2.16.840.1.113883.10.20.22.4.44"/>
</observation>

0.007
Properties »