Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.hitsp.tests.MedicationTest

NameTestsErrorsFailuresTime(s)Time StampHost
MedicationTest30010.6892013-01-31T13:34:34JKMSoftware-desktop

Failures

NameStatusResultTime(s)
testValidateHITSPMedicationRouteCode

Constraint

HITSP Medication MAY contain at least one [1..*] routeCode (CONF-309, CONF-310), where the @code SHALL be selected from ValueSet Medication Route FDA 2.16.840.1.113883.3.88.12.3221.8.7 STATIC 1

OCL

(self.routeCode.oclIsUndefined() or self.routeCode.isNullFlavorUndefined()) implies (not self.routeCode.oclIsUndefined() and self.routeCode.oclIsKindOf(datatypes::CE) and let value : datatypes::CE = self.routeCode.oclAsType(datatypes::CE) in value.codeSystem = '2.16.840.1.113883.3.26.1.1' and not value.code.oclIsUndefined())

FailureInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.8"/>
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.7"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

ERROR EXPECT PASS validateHITSPMedicationRouteCode: HITSP Medication MAY contain at least one [1..*] routeCode (CONF-309, CONF-310), where the @code SHALL be selected from ValueSet Medication Route FDA 2.16.840.1.113883.3.88.12.3221.8.7 STATIC 1 HITSP Medication MAY contain at least one [1..*] routeCode (CONF-309, CONF-310), where the @code SHALL be selected from ValueSet Medication Route FDA 2.16.840.1.113883.3.88.12.3221.8.7 STATIC 1

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateHITSPMedicationRouteCode: HITSP Medication MAY contain at least one [1..*] routeCode (CONF-309, CONF-310), where the @code SHALL be selected from ValueSet Medication Route FDA 2.16.840.1.113883.3.88.12.3221.8.7 STATIC 1 HITSP Medication MAY contain at least one [1..*] routeCode (CONF-309, CONF-310), where the @code SHALL be selected from ValueSet Medication Route FDA 2.16.840.1.113883.3.88.12.3221.8.7 STATIC 1
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectPass(CDAValidationTest.java:265)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:798)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.hitsp.tests.MedicationTest.testValidateHITSPMedicationRouteCode(MedicationTest.java:891)
0.045
Properties »