Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
SocialHistorySectionTest4000.0462013-01-31T13:34:36JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateHITSPSocialHistorySectionTemplateId

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.126"

OCL

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

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.126"/>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.16"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>

0.008
testValidateHITSPSocialHistorySectionSocialHistory

Constraint

HITSP Social History Section MAY contain zero or more [0..*] entry Contains exactly one [1..1] Social History (templateId: 2.16.840.1.113883.3.88.11.83.19)

OCL

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

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.126"/>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.16"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.19"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13"/>
<templateId root="2.16.840.1.113883.10.20.1.33"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13.4"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.19"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13"/>
<templateId root="2.16.840.1.113883.10.20.1.33"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13.4"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>
</entry>
</section>

0.018
testGetSocialHistories

Constraint

OCL

SuccessInvalid XML

Valid XML

0.017
Properties »