Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
HospitalDischargePhysicalSectionTest6000.1682013-01-31T13:35:20JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateHospitalDischargePhysicalSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:10460 ) such that it SHALL contain exactly one [1..1] @root="1.3.6.1.4.1.19376.1.5.3.1.3.26"

OCL

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

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.26"/>
<code code="10184-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Hospital Discharge Physical"/>
</section>

0.011
testValidateHospitalDischargePhysicalSectionCode

Constraint

Consol Hospital Discharge Physical Section SHALL contain exactly one [1..1] code (CONF:15363)/@code="10184-0" Hospital Discharge Physical (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15364)

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 = '10184-0' 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="1.3.6.1.4.1.19376.1.5.3.1.3.26"/>
<code code="10184-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Hospital Discharge Physical"/>
</section>

0.075
testValidateHospitalDischargePhysicalSectionCodeP

Constraint

Consol Hospital Discharge Physical Section SHALL contain exactly one [1..1] code (CONF:15363)/@code="10184-0" Hospital Discharge Physical (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15364)

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="1.3.6.1.4.1.19376.1.5.3.1.3.26"/>
<code code="10184-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Hospital Discharge Physical"/>
</section>

0.032
testValidateHospitalDischargePhysicalSectionTitle

Constraint

Consol Hospital Discharge Physical Section SHALL contain exactly one [1..1] title (CONF:7973)

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="1.3.6.1.4.1.19376.1.5.3.1.3.26"/>
<code code="10184-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Hospital Discharge Physical"/>
<title>title</title>
</section>

0.035
testValidateHospitalDischargePhysicalSectionText

Constraint

Consol Hospital Discharge Physical Section SHALL contain exactly one [1..1] text (CONF:7974)

OCL

not self.text.oclIsUndefined()

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.26"/>
<code code="10184-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Hospital Discharge Physical"/>
<text/>
</section>

0.011
Properties »