Unit Test Results.

Designed for use with JUnit and Ant.

Class org.openhealthtools.mdht.uml.cda.mu2consol.tests.VDTAmbulatorySummaryTest

NameTestsErrorsFailuresTime(s)Time StampHost
VDTAmbulatorySummaryTest4000.5072013-01-31T13:36:45JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testGetMedicationsSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.053
testValidateVDTAmbulatorySummaryProviderNameAndContactInfo

Constraint

Mu2consol VDT Ambulatory Summary SHALL have at least one documentationOf/serviceEvent/performer/assignedEntity including a documentationOf/serviceEvent/performer/assignedEntity/assignedPerson/name and documentationOf/serviceEvent/performer/assignedEntity/telecom and documentationOf/serviceEvent/performer/assignedEntity/addr OR at least one componentOf/encompassingEncounter/responsibleParty including a componentOf/encompassingEncounter/responsibleParty/assignedEntity/assignedPerson/name and componentOf/encompassingEncounter/responsibleParty/assignedEntity/telecom and componentOf/encompassingEncounter/responsibleParty/assignedEntity/addr OR at least one componentOf/encompassingEncounter/encounterParticipant including a componentOf/encompassingEncounter/encounterParticipant/assignedEntity/assignedPerson/name and componentOf/encompassingEncounter/encounterParticipant/assignedEntity/telecom and componentOf/encompassingEncounter/encounterParticipant/assignedEntity/addr

OCL

(self.documentationOf.oclAsType(cda::DocumentationOf).serviceEvent.performer->notEmpty() and self.documentationOf.serviceEvent.performer->forAll( not assignedEntity.oclIsUndefined() and assignedEntity.assignedPerson.name->notEmpty() and assignedEntity.addr->notEmpty() and assignedEntity.telecom->notEmpty())) or (self.componentOf.oclAsType(cda::Component1).encompassingEncounter.encounterParticipant->notEmpty() and self.componentOf.encompassingEncounter.encounterParticipant->forAll(not assignedEntity.oclIsUndefined() and assignedEntity.assignedPerson.name->notEmpty() and assignedEntity.addr->notEmpty() and assignedEntity.telecom->notEmpty())) or (self.componentOf.oclAsType(cda::Component1).encompassingEncounter.responsibleParty->notEmpty() and self.componentOf.encompassingEncounter.responsibleParty->forAll(not assignedEntity.oclIsUndefined() and assignedEntity.assignedPerson.name->notEmpty() and assignedEntity.addr->notEmpty() and assignedEntity.telecom->notEmpty()))

SuccessInvalid XML


<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd"/>

Valid XML


<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
<realmCode code="US"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
<documentationOf>
<serviceEvent>
<performer>
<assignedEntity>
<addr/>
<telecom/>
<assignedPerson>
<name/>
</assignedPerson>
</assignedEntity>
</performer>
</serviceEvent>
</documentationOf>
</ClinicalDocument>

<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
<realmCode code="US"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
<componentOf>
<encompassingEncounter>
<responsibleParty>
<assignedEntity>
<addr/>
<telecom/>
<assignedPerson>
<name/>
</assignedPerson>
</assignedEntity>
</responsibleParty>
</encompassingEncounter>
</componentOf>
</ClinicalDocument>

<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
<realmCode code="US"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
<componentOf>
<encompassingEncounter>
<encounterParticipant>
<assignedEntity>
<addr/>
<telecom/>
<assignedPerson>
<name/>
</assignedPerson>
</assignedEntity>
</encounterParticipant>
</encompassingEncounter>
</componentOf>
</ClinicalDocument>

0.411
testValidateVDTAmbulatorySummaryMedicationsSection

Constraint

Mu2consol VDT Ambulatory Summary SHALL contain exactly one [1..1] component Contains exactly one [1..1] Consol Medications Section (templateId: 2.16.840.1.113883.10.20.22.2.1.1)

OCL

self.getAllSections()->one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(consol::MedicationsSection))

SuccessInvalid XML


<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd"/>

Valid XML


<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
<realmCode code="US"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.22.2.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.1"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.038
Properties »