Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
ProcedureDispositionSectionTest6000.2132013-01-31T13:36:06JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateProcedureDispositionSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8070, CONF:10466 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.18.2.12"

OCL

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

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.18.2.12"/>
<code code="59775-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Disposition"/>
</section>

0.013
testValidateProcedureDispositionSectionCode

Constraint

Consol Procedure Disposition Section SHALL contain exactly one [1..1] code (CONF:15413)/@code="59775-7" Procedure Disposition (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15414)

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 = '59775-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.18.2.12"/>
<code code="59775-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Disposition"/>
</section>

0.095
testValidateProcedureDispositionSectionCodeP

Constraint

Consol Procedure Disposition Section SHALL contain exactly one [1..1] code (CONF:15413)/@code="59775-7" Procedure Disposition (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15414)

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.18.2.12"/>
<code code="59775-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Disposition"/>
</section>

0.042
testValidateProcedureDispositionSectionText

Constraint

Consol Procedure Disposition Section SHALL contain exactly one [1..1] text (CONF:8073)

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.18.2.12"/>
<code code="59775-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Disposition"/>
<text/>
</section>

0.014
testValidateProcedureDispositionSectionTitle

Constraint

Consol Procedure Disposition Section SHALL contain exactly one [1..1] title (CONF:8072)

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.18.2.12"/>
<code code="59775-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Disposition"/>
<title>title</title>
</section>

0.045
Properties »