Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateOperativeNoteSurgicalProcedureSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8034, CONF:10464 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.7.14"

OCL

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

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.14"/>
<code code="10223-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Operative Note Surgical"/>
</section>

0.012
testValidateOperativeNoteSurgicalProcedureSectionCode

Constraint

Consol Operative Note Surgical Procedure Section SHALL contain exactly one [1..1] code (CONF:15393)/@code="10223-6" Operative Note Surgical (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15394)

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 = '10223-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.7.14"/>
<code code="10223-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Operative Note Surgical"/>
</section>

0.082
testValidateOperativeNoteSurgicalProcedureSectionCodeP

Constraint

Consol Operative Note Surgical Procedure Section SHALL contain exactly one [1..1] code (CONF:15393)/@code="10223-6" Operative Note Surgical (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15394)

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.14"/>
<code code="10223-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Operative Note Surgical"/>
</section>

0.035
testValidateOperativeNoteSurgicalProcedureSectionText

Constraint

Consol Operative Note Surgical Procedure Section SHALL contain exactly one [1..1] text (CONF:8037)

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.14"/>
<code code="10223-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Operative Note Surgical"/>
<text/>
</section>

0.012
testValidateOperativeNoteSurgicalProcedureSectionTitle

Constraint

Consol Operative Note Surgical Procedure Section SHALL contain exactly one [1..1] title (CONF:8036)

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.14"/>
<code code="10223-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Operative Note Surgical"/>
<title>title</title>
</section>

0.038
Properties »