Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PostoperativeDiagnosisSectionTest6000.1942013-01-31T13:35:49JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidatePostoperativeDiagnosisSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8101, CONF:10437 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.35"

OCL

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

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.35"/>
<code code="10218-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postoperative Diagnosis"/>
</section>

0.013
testValidatePostoperativeDiagnosisSectionCode

Constraint

Consol Postoperative Diagnosis Section SHALL contain exactly one [1..1] code (CONF:15401)/@code="10218-6" Postoperative Diagnosis (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15402)

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 = '10218-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.35"/>
<code code="10218-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postoperative Diagnosis"/>
</section>

0.087
testValidatePostoperativeDiagnosisSectionCodeP

Constraint

Consol Postoperative Diagnosis Section SHALL contain exactly one [1..1] code (CONF:15401)/@code="10218-6" Postoperative Diagnosis (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15402)

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.35"/>
<code code="10218-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postoperative Diagnosis"/>
</section>

0.038
testValidatePostoperativeDiagnosisSectionText

Constraint

Consol Postoperative Diagnosis Section SHALL contain exactly one [1..1] text (CONF:8104)

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.35"/>
<code code="10218-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postoperative Diagnosis"/>
<text/>
</section>

0.013
testValidatePostoperativeDiagnosisSectionTitle

Constraint

Consol Postoperative Diagnosis Section SHALL contain exactly one [1..1] title (CONF:8103)

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.35"/>
<code code="10218-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postoperative Diagnosis"/>
<title>title</title>
</section>

0.040
Properties »