Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
CodedAdvanceDirectivesSectionTest4000.0302013-01-31T13:34:21JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateCodedAdvanceDirectivesSectionTemplateId

Constraint

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

OCL

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

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.3.35"/>
<templateId root="2.16.840.1.113883.10.20.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.34"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance directives"/>
</section>

0.006
testValidateCodedAdvanceDirectivesSectionAdvanceDirectivesObservation

Constraint

IHE Coded Advance Directives Section SHOULD contain zero or more [0..*] entry Contains exactly one [1..1] Advance Directive Observation (templateId: 1.3.6.1.4.1.19376.1.5.3.1.4.13.7)

OCL

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

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.3.35"/>
<templateId root="2.16.840.1.113883.10.20.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.34"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance directives"/>
<entry>
<observation/>
</entry>
</section>

0.011
testGetAdvanceDirectivesObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.010
Properties »