Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
CodedVitalSignsSectionTest4000.0342013-01-31T13:34:22JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateCodedVitalSignsSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( 6.3.3.4.5 ) such that it SHALL contain exactly one [1..1] @root="1.3.6.1.4.1.19376.1.5.3.1.1.5.3.2"

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.5.3.2"/>
<templateId root="2.16.840.1.113883.10.20.1.16"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.25"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital signs"/>
</section>

0.008
testValidateCodedVitalSignsSectionVitalSignsOrganizer

Constraint

IHE Coded Vital Signs Section SHALL contain at least one [1..*] entry (6.3.3.4.5) Contains exactly one [1..1] Vital Signs Organizer (templateId: 1.3.6.1.4.1.19376.1.5.3.1.4.13.1)

OCL

self.entry->exists(entry : cda::Entry | not entry.organizer.oclIsUndefined() and entry.organizer.oclIsKindOf(ihe::VitalSignsOrganizer))

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.5.3.2"/>
<templateId root="2.16.840.1.113883.10.20.1.16"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.25"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital signs"/>
<entry>
<organizer classCode="CLUSTER" moodCode="EVN">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13.1"/>
<templateId root="2.16.840.1.113883.10.20.1.32"/>
<templateId root="2.16.840.1.113883.10.20.1.35"/>
<code code="46680005" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Vital signs"/>
<statusCode code="completed"/>
</organizer>
</entry>
</section>

0.013
testGetIHEVitalSignsOrganizers

Constraint

OCL

SuccessInvalid XML

Valid XML

0.011
Properties »