Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
ReferencedFramesObservationTest7000.2332013-01-31T13:36:18JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateReferencedFramesObservationTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.6.2.10"

OCL

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

SuccessInvalid XML


<observation xmlns="urn:hl7-org:v3"/>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="ROIBND" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.6.2.10"/>
<code code="121190" codeSystem="1.2.840.10008.2.16.4" codeSystemName="DCM" displayName="Referenced Frames"/>
</observation>

0.015
testValidateReferencedFramesObservationClassCode

Constraint

Consol Referenced Frames Observation SHALL contain exactly one [1..1] @classCode="ROIBND" (CodeSystem: 2.16.840.1.113883.5.6 HL7ActClass) (CONF:9276)

OCL

self.classCode=vocab::ActClassObservation::ROIBND

SuccessInvalid XML


<observation xmlns="urn:hl7-org:v3"/>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="ROIBND" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.6.2.10"/>
<code code="121190" codeSystem="1.2.840.10008.2.16.4" codeSystemName="DCM" displayName="Referenced Frames"/>
</observation>

0.012
testValidateReferencedFramesObservationCode

Constraint

Consol Referenced Frames Observation SHALL contain exactly one [1..1] code/@code="121190" Referenced Frames (CodeSystem: 1.2.840.10008.2.16.4 DCM) (CONF:9278)

OCL

(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined() and self.code.oclIsKindOf(datatypes::CD) and let value : datatypes::CD = self.code.oclAsType(datatypes::CD) in value.code = '121190' and value.codeSystem = '1.2.840.10008.2.16.4')

SuccessInvalid XML


<observation xmlns="urn:hl7-org:v3"/>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="ROIBND" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.6.2.10"/>
<code code="121190" codeSystem="1.2.840.10008.2.16.4" codeSystemName="" displayName=""/>
</observation>

0.097
testValidateReferencedFramesObservationMoodCode

Constraint

Consol Referenced Frames Observation SHALL contain exactly one [1..1] @moodCode="EVN" Event (CodeSystem: 2.16.840.1.113883.5.1001 HL7ActMood) (CONF:9277)

OCL

self.moodCode=vocab::x_ActMoodDocumentObservation::EVN

SuccessInvalid XML


<observation xmlns="urn:hl7-org:v3"/>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="ROIBND" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.6.2.10"/>
<code code="121190" codeSystem="1.2.840.10008.2.16.4" codeSystemName="DCM" displayName="Referenced Frames"/>
</observation>

0.009
testValidateReferencedFramesObservationBoundaryObservation

Constraint

Consol Referenced Frames Observation SHALL contain exactly one [1..1] entryRelationship (CONF:9279, CONF:9280, CONF:9281) Contains @typeCode="COMP" COMP, and Contains exactly one [1..1] Boundary Observation (templateId: 2.16.840.1.113883.10.20.6.2.11)

OCL

self.entryRelationship->one(entryRelationship : cda::EntryRelationship | not entryRelationship.observation.oclIsUndefined() and entryRelationship.observation.oclIsKindOf(consol::BoundaryObservation) and entryRelationship.typeCode = vocab::x_ActRelationshipEntryRelationship::COMP)

SuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="ROIBND" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.6.2.10"/>
<code code="121190" codeSystem="1.2.840.10008.2.16.4" codeSystemName="DCM" displayName="Referenced Frames"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="ROIBND" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.6.2.10"/>
<code code="121190" codeSystem="1.2.840.10008.2.16.4" codeSystemName="DCM" displayName="Referenced Frames"/>
<entryRelationship typeCode="COMP">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.6.2.11"/>
<code code="113036" codeSystem="1.2.840.10008.2.16.4" codeSystemName="DCM" displayName="Frames for Display"/>
</observation>
</entryRelationship>
</observation>

0.048
testGetBoundaryObservation

Constraint

OCL

SuccessInvalid XML

Valid XML

0.048
Properties »