Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.hitsp.tests.FamilyHistorySectionTest

NameTestsErrorsFailuresTime(s)Time StampHost
FamilyHistorySectionTest4000.0432013-01-31T13:34:32JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateHITSPFamilyHistorySectionTemplateId

Constraint

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

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.125"/>
<templateId root="2.16.840.1.113883.10.20.1.4"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.14"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of family member diseases"/>
</section>

0.008
testValidateHITSPFamilyHistorySectionFamilyHistory

Constraint

HITSP Family History Section SHALL contain at least one [1..*] entry Contains exactly one [1..1] Family History (templateId: 2.16.840.1.113883.3.88.11.83.18)

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.125"/>
<templateId root="2.16.840.1.113883.10.20.1.4"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.14"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of family member diseases"/>
<entry>
<organizer classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.18"/>
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.15"/>
<code codeSystem="2.16.840.1.113883.5.111" codeSystemName="RoleCode"/>
<statusCode code="completed"/>
</organizer>
</entry>
</section>

0.016
testGetFamilyHistories

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
Properties »