Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
OperativeNoteFluidSectionTest6000.1802013-01-31T13:35:36JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateOperativeNoteFluidSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8030, CONF:10463 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.7.12"

OCL

self.templateId->exists(id : datatypes::II | id.root = '2.16.840.1.113883.10.20.7.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.7.12"/>
<code code="10216-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Operative Note Fluids"/>
</section>

0.012
testValidateOperativeNoteFluidSectionCode

Constraint

Consol Operative Note Fluid Section SHALL contain exactly one [1..1] code (CONF:15391)/@code="10216-0" Operative Note Fluids (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15392)

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 = '10216-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.7.12"/>
<code code="10216-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Operative Note Fluids"/>
</section>

0.081
testValidateOperativeNoteFluidSectionCodeP

Constraint

Consol Operative Note Fluid Section SHALL contain exactly one [1..1] code (CONF:15391)/@code="10216-0" Operative Note Fluids (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15392)

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.7.12"/>
<code code="10216-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Operative Note Fluids"/>
</section>

0.035
testValidateOperativeNoteFluidSectionText

Constraint

Consol Operative Note Fluid Section SHALL contain exactly one [1..1] text (CONF:8033)

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.7.12"/>
<code code="10216-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Operative Note Fluids"/>
<text/>
</section>

0.011
testValidateOperativeNoteFluidSectionTitle

Constraint

Consol Operative Note Fluid Section SHALL contain exactly one [1..1] title (CONF:8032)

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.7.12"/>
<code code="10216-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Operative Note Fluids"/>
<title>title</title>
</section>

0.037
Properties »