Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.ccd.tests.FamilyHistoryCauseOfDeathObservationTest

NameTestsErrorsFailuresTime(s)Time StampHost
FamilyHistoryCauseOfDeathObservationTest4010.0162013-01-31T13:34:13JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testValidateFamilyHistoryCauseOfDeathObservationCauseOfDeathObservation

Constraint

OCL

NO OCL FOUND FOR PROPERTY VALIDATE_FAMILY_HISTORY_CAUSE_OF_DEATH_OBSERVATION_CAUSE_OF_DEATH_OBSERVATION__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP

FailureInvalid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.42"/>
<templateId root="2.16.840.1.113883.10.20.1.22"/>
<statusCode code="completed"/>
<entryRelationship>
<observation/>
</entryRelationship>
</observation>

Valid XML

ERROR EXPECT FAIL validateFamilyHistoryCauseOfDeathObservationCauseOfDeathObservation" passed when it was expected to fail.<observation xmlns="urn:hl7-org:v3" moodCode="EVN"> <templateId root="2.16.840.1.113883.10.20.1.42"/> <templateId root="2.16.840.1.113883.10.20.1.22"/> <statusCode code="completed"/> <entryRelationship> <observation/> </entryRelationship> </observation>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateFamilyHistoryCauseOfDeathObservationCauseOfDeathObservation" passed when it was expected to fail.







at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.ccd.tests.FamilyHistoryCauseOfDeathObservationTest.testValidateFamilyHistoryCauseOfDeathObservationCauseOfDeathObservation(FamilyHistoryCauseOfDeathObservationTest.java:79)
0.007
testGetCauseOfDeathObservations

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateFamilyHistoryObservationTemplateId

Constraint

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

OCL

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

SuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.46"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.004
Properties »