Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
HospitalAdmissionDiagnosisSectionTest5000.0592013-01-31T13:34:24JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testGetProblemConcernEntry

Constraint

OCL

SuccessInvalid XML

Valid XML

0.013
testValidateHospitalAdmissionDiagnosisSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:9930, CONF:10391 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.43"

OCL

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

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.43"/>
<code code="46241-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HOSPITAL ADMISSION DX"/>
</section>

0.006
testValidateHospitalAdmissionDiagnosisSectionCode

Constraint

Consol Hospital Admission Diagnosis Section SHALL contain exactly one [1..1] code (CONF:15479)/@code="46241-6" HOSPITAL ADMISSION DX (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15480)

OCL

(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined() and self.code.oclIsKindOf(datatypes::CE) and let value : datatypes::CE = self.code.oclAsType(datatypes::CE) in value.code = '46241-6' and value.codeSystem = '2.16.840.1.113883.6.1')

SuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.43"/>
<code code="46241-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HOSPITAL ADMISSION DX"/>
</section>

0.027
testValidateHospitalAdmissionDiagnosisSectionProblemConcernEntry

Constraint

IHE Hospital Admission Diagnosis Section SHALL contain exactly one [1..1] entry Contains exactly one [1..1] Problem Concern Entry (templateId: 1.3.6.1.4.1.19376.1.5.3.1.4.5.2)

OCL

self.entry->one(entry : cda::Entry | not entry.act.oclIsUndefined() and entry.act.oclIsKindOf(ihe::ProblemConcernEntry))

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.3"/>
<code code="46241-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HOSPITAL ADMISSION DX"/>
<entry>
<act/>
</entry>
</section>

0.010
Properties »