Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
FunctionalStatusSectionTest29000.6782013-01-31T13:34:58JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateFunctionalStatusSectionTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( CONF:10389 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.14"

OCL

self.templateId->exists(id : datatypes::II | id.root = '2.16.840.1.113883.10.20.22.2.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.22.2.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
</section>

0.009
testValidateFunctionalStatusSectionCode

Constraint

Consol Functional Status Section SHALL contain exactly one [1..1] code/@code="47420-5" Functional status assessment (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:7921)

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 = '47420-5' 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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
</section>

0.061
testValidateFunctionalStatusSectionTitle

Constraint

Consol Functional Status Section SHALL contain exactly one [1..1] title (CONF:7922)

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<title>title</title>
</section>

0.028
testValidateFunctionalStatusSectionText

Constraint

Consol Functional Status Section SHALL contain exactly one [1..1] text (CONF:7923)

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<text/>
</section>

0.010
testGetNonMedicinalSupplyActivities

Constraint

OCL

SuccessInvalid XML

Valid XML

0.024
testGetCaregiverCharacteristicss

Constraint

OCL

SuccessInvalid XML

Valid XML

0.024
testGetAssessmentScaleObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.024
testGetCognitiveStatusResultObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.024
testGetFunctionalStatusResultObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.024
testValidateFunctionalStatusSectionFunctionalStatusResultOrganizer

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:14414, CONF:14415) Contains exactly one [1..1] Functional Status Result Organizer (templateId: 2.16.840.1.113883.10.20.22.4.66)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<organizer/>
</entry>
</section>

0.023
testValidateFunctionalStatusSectionCognitiveStatusResultOrganizer

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:14416, CONF:14417) Contains exactly one [1..1] Cognitive Status Result Organizer (templateId: 2.16.840.1.113883.10.20.22.4.75)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<organizer/>
</entry>
</section>

0.022
testValidateFunctionalStatusSectionFunctionalStatusResultObservation

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:14418, CONF:14419) Contains exactly one [1..1] Functional Status Result Observation (templateId: 2.16.840.1.113883.10.20.22.4.67)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

0.023
testValidateFunctionalStatusSectionCognitiveStatusResultObservation

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:14420, CONF:14421) Contains exactly one [1..1] Cognitive Status Result Observation (templateId: 2.16.840.1.113883.10.20.22.4.74)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

0.022
testValidateFunctionalStatusSectionFunctionalStatusProblemObservation

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:14422, CONF:14423) Contains exactly one [1..1] Functional Status Problem Observation (templateId: 2.16.840.1.113883.10.20.22.4.68)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

0.023
testValidateFunctionalStatusSectionCognitiveStatusProblemObservation

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:14424, CONF:14425) Contains exactly one [1..1] Cognitive Status Problem Observation (templateId: 2.16.840.1.113883.10.20.22.4.73)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

0.023
testValidateFunctionalStatusSectionCaregiverCharacteristics

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:14426, CONF:14427) Contains exactly one [1..1] Caregiver Characteristics (templateId: 2.16.840.1.113883.10.20.22.4.72)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

0.022
testValidateFunctionalStatusSectionAssessmentScaleObservation

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:14580, CONF:14581) Contains exactly one [1..1] Assessment Scale Observation (templateId: 2.16.840.1.113883.10.20.22.4.69)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

0.022
testValidateFunctionalStatusSectionNonMedicinalSupplyActivity

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:14582, CONF:14583) Contains exactly one [1..1] Non Medicinal Supply Activity (templateId: 2.16.840.1.113883.10.20.22.4.50)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<supply/>
</entry>
</section>

0.023
testValidateFunctionalStatusSectionPressureUlcerObservation

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:16777, CONF:16778) Contains exactly one [1..1] Pressure Ulcer Observation (templateId: 2.16.840.1.113883.10.20.22.4.70)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

0.024
testValidateFunctionalStatusSectionNumberOfPressureUlcersObservation

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:16779, CONF:16780) Contains exactly one [1..1] Number Of Pressure Ulcers Observation (templateId: 2.16.840.1.113883.10.20.22.4.76)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

0.023
testValidateFunctionalStatusSectionHighestPressureUlcerStage

Constraint

Consol Functional Status Section MAY contain zero or more [0..*] entry (CONF:16781, CONF:16782) Contains exactly one [1..1] Highest Pressure Ulcer Stage (templateId: 2.16.840.1.113883.10.20.22.4.77)

OCL

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

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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

0.024
testGetFunctionalStatusResultOrganizers

Constraint

OCL

SuccessInvalid XML

Valid XML

0.024
testGetCognitiveStatusResultOrganizers

Constraint

OCL

SuccessInvalid XML

Valid XML

0.024
testGetFunctionalStatusProblemObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.024
testGetCognitiveStatusProblemObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.025
testGetPressureUlcerObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.024
testGetNumberOfPressureUlcersObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.025
testGetHighestPressureUlcerStages

Constraint

OCL

SuccessInvalid XML

Valid XML

0.024
Properties »