Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidatePostprocedureDiagnosisSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8167, CONF:10438 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.36"

OCL

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

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.36"/>
<code code="59769-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postprocedure Diagnosis"/>
</section>

0.014
testValidatePostprocedureDiagnosisSectionCodeP

Constraint

Consol Postprocedure Diagnosis Section SHALL contain zero or one [0..1] code (CONF:15403)/@code="59769-0" Postprocedure Diagnosis (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15404)

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.36"/>
<code code="59769-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postprocedure Diagnosis"/>
</section>

0.039
testValidatePostprocedureDiagnosisSectionCode

Constraint

Consol Postprocedure Diagnosis Section SHALL contain zero or one [0..1] code (CONF:15403)/@code="59769-0" Postprocedure Diagnosis (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15404)

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 = '59769-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="2.16.840.1.113883.10.20.22.2.36"/>
<code code="59769-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postprocedure Diagnosis"/>
</section>

0.089
testValidatePostprocedureDiagnosisSectionText

Constraint

Consol Postprocedure Diagnosis Section SHALL contain zero or one [0..1] text (CONF:8171)

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.36"/>
<code code="59769-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postprocedure Diagnosis"/>
<text/>
</section>

0.013
testValidatePostprocedureDiagnosisSectionTitle

Constraint

Consol Postprocedure Diagnosis Section SHALL contain zero or one [0..1] title (CONF:8170)

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.36"/>
<code code="59769-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postprocedure Diagnosis"/>
<title>title</title>
</section>

0.041
testValidatePostprocedureDiagnosisSectionPostprocedureDiagnosis

Constraint

Consol Postprocedure Diagnosis Section SHOULD contain zero or one [0..1] entry (CONF:8762, CONF:8764) Contains exactly one [1..1] Postprocedure Diagnosis (templateId: 2.16.840.1.113883.10.20.22.4.51)

OCL

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

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.36"/>
<code code="59769-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postprocedure Diagnosis"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.36"/>
<code code="59769-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postprocedure Diagnosis"/>
<entry>
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.51"/>
<code code="59769-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Postprocedure Diagnosis"/>
</act>
</entry>
</section>

0.032
testGetPostprocedureDiagnosis

Constraint

OCL

SuccessInvalid XML

Valid XML

0.040
Properties »