Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
MedicationTypeTest3000.0542013-01-31T13:34:34JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.000
testValidateMedicationTypeTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( C83-[DE-8.19-CDA-1], C83-[DE-8.19-CDA-4] ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.3.88.11.83.8.1"

OCL

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

SuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.8.1"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</observation>

0.007
testValidateMedicationTypeCode

Constraint

HITSP Medication Type SHALL contain exactly one [1..1] code, where the @code SHALL be selected from ValueSet Medication Type 2.16.840.1.113883.3.88.12.3221.8.19 STATIC 1 (C83-[DE-8.19-CDA-5], C154-[DE-8.19-1])

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.codeSystem = '2.16.840.1.113883.6.96' and (value.code = '329505003' or value.code = '73639000'))

SuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.3.88.11.83.8.1"/>
<code code="329505003" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</observation>

0.044
Properties »