Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PlannedProcedureSectionTest8000.2542013-01-31T13:35:40JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testGetPlanOfCareActivityProcedures

Constraint

OCL

SuccessInvalid XML

Valid XML

0.036
testValidatePlannedProcedureSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:8082, CONF:10436 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.30"

OCL

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

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.30"/>
<code code="59772-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Planned Procedure"/>
</section>

0.011
testValidatePlannedProcedureSectionCode

Constraint

Consol Planned Procedure Section SHALL contain exactly one [1..1] code (CONF:15399)/@code="59772-4" Planned Procedure (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15400)

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 = '59772-4' 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.30"/>
<code code="59772-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Planned Procedure"/>
</section>

0.084
testValidatePlannedProcedureSectionCodeP

Constraint

Consol Planned Procedure Section SHALL contain exactly one [1..1] code (CONF:15399)/@code="59772-4" Planned Procedure (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15400)

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.30"/>
<code code="59772-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Planned Procedure"/>
</section>

0.037
testValidatePlannedProcedureSectionText

Constraint

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

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.30"/>
<code code="59772-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Planned Procedure"/>
<text/>
</section>

0.012
testValidatePlannedProcedureSectionTitle

Constraint

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

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.30"/>
<code code="59772-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Planned Procedure"/>
<title>title</title>
</section>

0.040
testValidatePlannedProcedureSectionPlanOfCareActivityProcedure

Constraint

Consol Planned Procedure Section MAY contain zero or more [0..*] entry (CONF:8744, CONF:8766) Contains exactly one [1..1] Plan Of Care Activity Procedure (templateId: 2.16.840.1.113883.10.20.22.4.41)

OCL

self.entry->exists(entry : cda::Entry | not entry.procedure.oclIsUndefined() and entry.procedure.oclIsKindOf(consol::PlanOfCareActivityProcedure))

SuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.30"/>
<code code="59772-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Planned Procedure"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.30"/>
<code code="59772-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Planned Procedure"/>
<entry>
<procedure classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.41"/>
</procedure>
</entry>
</section>

0.030
Properties »