Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
ChiefComplaintAndReasonForVisitSectionTest6000.1102013-01-31T13:34:42JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateChiefComplaintAndReasonForVisitSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:7840, CONF:10383 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.13"

OCL

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

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.13"/>
<code code="46239-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Chief Complaint and Reason for Visit"/>
</section>

0.010
testValidateChiefComplaintAndReasonForVisitSectionCode

Constraint

Consol Chief Complaint And Reason For Visit Section SHALL contain exactly one [1..1] code (CONF:15449)/@code="46239-0" Chief Complaint and Reason for Visit (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15450)

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 = '46239-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.22.2.13"/>
<code code="46239-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Chief Complaint and Reason for Visit"/>
</section>

0.047
testValidateChiefComplaintAndReasonForVisitSectionCodeP

Constraint

Consol Chief Complaint And Reason For Visit Section SHALL contain exactly one [1..1] code (CONF:15449)/@code="46239-0" Chief Complaint and Reason for Visit (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:15450)

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.13"/>
<code code="46239-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Chief Complaint and Reason for Visit"/>
</section>

0.021
testValidateChiefComplaintAndReasonForVisitSectionText

Constraint

Consol Chief Complaint And Reason For Visit Section SHALL contain exactly one [1..1] text (CONF:7843)

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.13"/>
<code code="46239-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Chief Complaint and Reason for Visit"/>
<text/>
</section>

0.008
testValidateChiefComplaintAndReasonForVisitSectionTitle

Constraint

Consol Chief Complaint And Reason For Visit Section SHALL contain exactly one [1..1] title (CONF:7842)

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.13"/>
<code code="46239-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Chief Complaint and Reason for Visit"/>
<title>title</title>
</section>

0.022
Properties »