Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PlanOfCareActivityObservationTest5000.0332013-01-31T13:34:17JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidatePlanOfCareActivityObservationMoodCodeValue

Constraint

CCD Plan Of Care Activity Observation SHALL satisfy: moodCodeValue (CONF-490)

OCL

self.moodCode = vocab::x_ActMoodDocumentObservation::INT or self.moodCode = vocab::x_ActMoodDocumentObservation::GOL or self.moodCode = vocab::x_ActMoodDocumentObservation::PRMS or self.moodCode = vocab::x_ActMoodDocumentObservation::PRP or self.moodCode = vocab::x_ActMoodDocumentObservation::RQO

SuccessInvalid XML


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

Valid XML


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

0.012
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.005
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.009
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.004
Properties »