Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
ReasonForReferralSectionTest6000.0802013-01-31T13:34:35JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateCodedReasonForReferralSectionTemplateId

Constraint

The 'CodedReasonForReferralSectionTemplateId' invariant is violated on 'org.openhealthtools.mdht.uml.cda.hitsp.impl.ReasonForReferralSectionImpl@6a23d344{#//}'

OCL

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

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.106"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.2"/>
<templateId root="2.16.840.1.113883.10.20.4.8"/>
<code code="42349-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="REASON FOR REFERRAL"/>
</section>

0.008
testGetResults

Constraint

OCL

SuccessInvalid XML

Valid XML

0.017
testGetConditions

Constraint

OCL

SuccessInvalid XML

Valid XML

0.017
testValidateHITSPReasonForReferralSectionCondition

Constraint

HITSP Reason For Referral Section MAY contain zero or more [0..*] entry Contains exactly one [1..1] Condition (templateId: 2.16.840.1.113883.3.88.11.83.7)

OCL

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

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.106"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.2"/>
<templateId root="2.16.840.1.113883.10.20.4.8"/>
<code code="42349-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="REASON FOR REFERRAL"/>
<entry>
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.7"/>
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5.2"/>
<code nullFlavor="NA"/>
</act>
</entry>
</section>

0.016
testValidateHITSPReasonForReferralSectionResult

Constraint

HITSP Reason For Referral Section MAY contain zero or more [0..*] entry Contains exactly one [1..1] Result (templateId: 2.16.840.1.113883.3.88.11.83.15.1)

OCL

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

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.106"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.2"/>
<templateId root="2.16.840.1.113883.10.20.4.8"/>
<code code="42349-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="REASON FOR REFERRAL"/>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.15.1"/>
<templateId root="2.16.840.1.113883.10.20.1.31"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13"/>
<statusCode code="completed"/>
</observation>
</entry>
</section>

0.016
Properties »