Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
HighestPressureUlcerStageTest8000.1942013-01-31T13:35:15JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateHighestPressureUlcerStageTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:14728, CONF:14729 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.77"

OCL

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

SuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.77"/>
<code code="420905001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Highest Pressure Ulcer Stage"/>
</observation>

0.010
testValidateHighestPressureUlcerStageClassCode

Constraint

Consol Highest Pressure Ulcer Stage SHALL contain exactly one [1..1] @classCode="OBS" Observation (CodeSystem: 2.16.840.1.113883.5.6 HL7ActClass) (CONF:14726)

OCL

self.classCode=vocab::ActClassObservation::OBS

SuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.77"/>
<code code="420905001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Highest Pressure Ulcer Stage"/>
</observation>

0.007
testValidateHighestPressureUlcerStageMoodCode

Constraint

Consol Highest Pressure Ulcer Stage SHALL contain exactly one [1..1] @moodCode="EVN" Event (CodeSystem: 2.16.840.1.113883.5.1001 HL7ActMood) (CONF:14727)

OCL

self.moodCode=vocab::x_ActMoodDocumentObservation::EVN

SuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.77"/>
<code code="420905001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Highest Pressure Ulcer Stage"/>
</observation>

0.006
testValidateHighestPressureUlcerStageId

Constraint

Consol Highest Pressure Ulcer Stage SHALL contain at least one [1..*] id (CONF:14730)

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" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.77"/>
<id/>
<code code="420905001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Highest Pressure Ulcer Stage"/>
</observation>

0.033
testValidateHighestPressureUlcerStageCodeP

Constraint

Consol Highest Pressure Ulcer Stage SHALL contain exactly one [1..1] code (CONF:14731)/@code="420905001" Highest Pressure Ulcer Stage (CodeSystem: 2.16.840.1.113883.6.96 SNOMEDCT) (CONF:14732)

OCL

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

SuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.77"/>
<code code="420905001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Highest Pressure Ulcer Stage"/>
</observation>

0.030
testValidateHighestPressureUlcerStageCode

Constraint

Consol Highest Pressure Ulcer Stage SHALL contain exactly one [1..1] code (CONF:14731)/@code="420905001" Highest Pressure Ulcer Stage (CodeSystem: 2.16.840.1.113883.6.96 SNOMEDCT) (CONF:14732)

OCL

(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined() and self.code.oclIsKindOf(datatypes::CD) and let value : datatypes::CD = self.code.oclAsType(datatypes::CD) in value.code = '420905001' and value.codeSystem = '2.16.840.1.113883.6.96')

SuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.77"/>
<code code="420905001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Highest Pressure Ulcer Stage"/>
</observation>

0.068
testValidateHighestPressureUlcerStageValue

Constraint

Consol Highest Pressure Ulcer Stage SHALL contain exactly one [1..1] value (CONF:14733)

OCL

(self.value->isEmpty() or self.value->exists(element | element.isNullFlavorUndefined())) implies (self.value->size() = 1)

SuccessInvalid XML


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

Valid XML


<observation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.77"/>
<code code="420905001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Highest Pressure Ulcer Stage"/>
<value xsi:type="CD"/>
</observation>

0.035
Properties »