Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PhysicalExamSectionTest12000.3732013-01-31T13:35:38JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidatePhysicalExamSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:10465 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.2.10"

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL EXAMINATION"/>
</section>

0.012
testGetPressureUlcerObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.033
testGetNumberOfPressureUlcersObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.033
testGetHighestPressureUlcerStages

Constraint

OCL

SuccessInvalid XML

Valid XML

0.033
testValidatePhysicalExamSectionCode

Constraint

Consol Physical Exam Section SHALL contain exactly one [1..1] code (CONF:15397)/@code="29545-1" PHYSICAL EXAMINATION (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15398)

OCL

(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined() and self.code.oclIsKindOf(datatypes::CE) and let value : datatypes::CE = self.code.oclAsType(datatypes::CE) in value.code = '29545-1' and value.codeSystem = '2.16.840.1.113883.6.1')

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL EXAMINATION"/>
</section>

0.082
testValidatePhysicalExamSectionCodeP

Constraint

Consol Physical Exam Section SHALL contain exactly one [1..1] code (CONF:15397)/@code="29545-1" PHYSICAL EXAMINATION (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15398)

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL EXAMINATION"/>
</section>

0.036
testValidatePhysicalExamSectionTitle

Constraint

Consol Physical Exam Section SHALL contain exactly one [1..1] title (CONF:7808)

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL EXAMINATION"/>
<title>title</title>
</section>

0.039
testValidatePhysicalExamSectionText

Constraint

Consol Physical Exam Section SHALL contain exactly one [1..1] text (CONF:7809)

OCL

not self.text.oclIsUndefined()

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL EXAMINATION"/>
<text/>
</section>

0.012
testValidatePhysicalExamSectionPressureUlcerObservation

Constraint

Consol Physical Exam Section MAY contain zero or more [0..*] entry (CONF:17094, CONF:17095) Contains exactly one [1..1] Pressure Ulcer Observation (templateId: 2.16.840.1.113883.10.20.22.4.70)

OCL

self.entry->exists(entry : cda::Entry | not entry.observation.oclIsUndefined() and entry.observation.oclIsKindOf(consol::PressureUlcerObservation))

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL EXAMINATION"/>
<entry>
<observation/>
</entry>
</section>

0.030
testValidatePhysicalExamSectionNumberOfPressureUlcersObservation

Constraint

Consol Physical Exam Section MAY contain zero or more [0..*] entry (CONF:17096, CONF:17097) Contains exactly one [1..1] Number Of Pressure Ulcers Observation (templateId: 2.16.840.1.113883.10.20.22.4.76)

OCL

self.entry->exists(entry : cda::Entry | not entry.observation.oclIsUndefined() and entry.observation.oclIsKindOf(consol::NumberOfPressureUlcersObservation))

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL EXAMINATION"/>
<entry>
<observation/>
</entry>
</section>

0.029
testValidatePhysicalExamSectionHighestPressureUlcerStage

Constraint

Consol Physical Exam Section MAY contain zero or more [0..*] entry (CONF:17098, CONF:17099) Contains exactly one [1..1] Highest Pressure Ulcer Stage (templateId: 2.16.840.1.113883.10.20.22.4.77)

OCL

self.entry->exists(entry : cda::Entry | not entry.observation.oclIsUndefined() and entry.observation.oclIsKindOf(consol::HighestPressureUlcerStage))

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL EXAMINATION"/>
<entry>
<observation/>
</entry>
</section>

0.029
Properties »