Unit Test Results.

Designed for use with JUnit and Ant.

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

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

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateProcedureEstimatedBloodLossSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8074, CONF:10467 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.18.2.9"

OCL

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

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.9"/>
<code code="59770-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Estimated Blood Loss"/>
</section>

0.013
testValidateProcedureEstimatedBloodLossSectionCode

Constraint

Consol Procedure Estimated Blood Loss Section SHALL contain exactly one [1..1] code (CONF:15415)/@code="59770-8" Procedure Estimated Blood Loss (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15416)

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 = '59770-8' 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.9"/>
<code code="59770-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Estimated Blood Loss"/>
</section>

0.095
testValidateProcedureEstimatedBloodLossSectionCodeP

Constraint

Consol Procedure Estimated Blood Loss Section SHALL contain exactly one [1..1] code (CONF:15415)/@code="59770-8" Procedure Estimated Blood Loss (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15416)

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.9"/>
<code code="59770-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Estimated Blood Loss"/>
</section>

0.042
testValidateProcedureEstimatedBloodLossSectionText

Constraint

Consol Procedure Estimated Blood Loss Section SHALL contain exactly one [1..1] text (CONF:8077)

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.9"/>
<code code="59770-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Estimated Blood Loss"/>
<text/>
</section>

0.014
testValidateProcedureEstimatedBloodLossSectionTitle

Constraint

Consol Procedure Estimated Blood Loss Section SHALL contain exactly one [1..1] title (CONF:8076)

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.9"/>
<code code="59770-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Procedure Estimated Blood Loss"/>
<title>title</title>
</section>

0.044
Properties »