Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.consol.tests.HospitalConsultationsSectionTest

NameTestsErrorsFailuresTime(s)Time StampHost
HospitalConsultationsSectionTest6000.1652013-01-31T13:35:19JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateHospitalConsultationsSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:9915, CONF:10393 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.42"

OCL

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

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.42"/>
<code code="18841-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</section>

0.011
testValidateHospitalConsultationsSectionCode

Constraint

Consol Hospital Consultations Section SHALL contain exactly one [1..1] code (CONF:15485)/@code="18841-7" (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15486)

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 = '18841-7' 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.42"/>
<code code="18841-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</section>

0.074
testValidateHospitalConsultationsSectionCodeP

Constraint

Consol Hospital Consultations Section SHALL contain exactly one [1..1] code (CONF:15485)/@code="18841-7" (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15486)

OCL

(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined())

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.42"/>
<code code="18841-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</section>

0.032
testValidateHospitalConsultationsSectionText

Constraint

Consol Hospital Consultations Section SHALL contain exactly one [1..1] text (CONF:9918)

OCL

not self.text.oclIsUndefined()

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.42"/>
<code code="18841-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<text/>
</section>

0.011
testValidateHospitalConsultationsSectionTitle

Constraint

Consol Hospital Consultations Section SHALL contain exactly one [1..1] title (CONF:9917)

OCL

(self.title.oclIsUndefined() or self.title.isNullFlavorUndefined()) implies (not self.title.oclIsUndefined())

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.42"/>
<code code="18841-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<title>title</title>
</section>

0.034
Properties »