Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
DischargeSummaryTest40000.6142013-01-31T13:34:31JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testGetHistoryOfPresentIllness

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
testGetReviewOfSystemsSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetVitalSignsSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetPlanOfCareSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetMedicalEquipmentSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetFunctionalStatusSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.017
testGetAdvanceDirectivesSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testValidateMedicalSummaryTemplateId

Constraint

The 'MedicalSummaryTemplateId' invariant is violated on 'org.openhealthtools.mdht.uml.cda.hitsp.impl.ReferralSummaryImpl@5b92f337{#//}'

OCL

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

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.3.88.11.48.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</ClinicalDocument>

0.007
testValidateDischargeSummaryProblemListSection

Constraint

HITSP Discharge Summary SHALL contain exactly one [1..1] component (C48-[CT2-1]) Contains exactly one [1..1] Problem List Section (templateId: 2.16.840.1.113883.3.88.11.83.103)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.103"/>
<templateId root="2.16.840.1.113883.10.20.1.11"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.6"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem list"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidateDischargeSummaryAdmissionMedicationHistorySection

Constraint

HITSP Discharge Summary SHOULD contain exactly one [1..1] component (C48-[CT2-2]) Contains exactly one [1..1] Admission Medication History Section (templateId: 2.16.840.1.113883.3.88.11.83.113)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.113"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.20"/>
<code code="42346-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="MEDICATIONS ON ADMISSION"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.014
testValidateDischargeSummaryHospitalAdmissionDiagnosisSection

Constraint

Consol Discharge Summary SHALL contain exactly one [1..1] component (CONF:9928) Contains exactly one [1..1] Hospital Admission Diagnosis Section (templateId: 2.16.840.1.113883.10.20.22.2.43)

OCL

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

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.8"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<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.43"/>
<code code="46241-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HOSPITAL ADMISSION DX"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidateDischargeSummaryAdvanceDirectivesSection

Constraint

HITSP Discharge Summary MAY contain zero or one [0..1] component (C48-[CT2-4]) Contains exactly one [1..1] Advance Directives Section (templateId: 2.16.840.1.113883.3.88.11.83.116)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.116"/>
<templateId root="2.16.840.1.113883.10.20.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.34"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.35"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance directives"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.014
testValidateDischargeSummaryAllergiesReactionsSection

Constraint

HITSP Discharge Summary SHALL contain exactly one [1..1] component (C48-[CT2-5]) Contains exactly one [1..1] Allergies Reactions Section (templateId: 2.16.840.1.113883.3.88.11.83.102)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.102"/>
<templateId root="2.16.840.1.113883.10.20.1.2"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.13"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.013
testValidateDischargeSummaryDischargeDiagnosisSection

Constraint

HITSP Discharge Summary SHALL contain exactly one [1..1] component (C48-[CT2-6]) Contains exactly one [1..1] Discharge Diagnosis Section (templateId: 2.16.840.1.113883.3.88.11.83.111)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.111"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.7"/>
<code code="11535-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HOSPITAL DISCHARGE DX"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.013
testValidateDischargeSummaryDischargeDiet

Constraint

HITSP Discharge Summary MAY contain zero or one [0..1] component (C48-[CT2-7]) Contains exactly one [1..1] IHE Discharge Diet (templateId: 1.3.6.1.4.1.19376.1.5.3.1.3.33)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section/>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.014
testValidateDischargeSummaryHospitalDischargeMedicationsSection

Constraint

HITSP Discharge Summary SHALL contain exactly one [1..1] component (C48-[CT2-8]) Contains exactly one [1..1] Hospital Discharge Medications Section (templateId: 2.16.840.1.113883.3.88.11.83.114)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.114"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.22"/>
<code code="10183-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HOSPITAL DISCHARGE MEDICATIONS"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidateDischargeSummaryDiagnosticResultsSection

Constraint

HITSP Discharge Summary MAY contain zero or one [0..1] component (C48-[CT2-9]) Contains exactly one [1..1] Diagnostic Results Section (templateId: 2.16.840.1.113883.3.88.11.83.122)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.122"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.28"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="STUDIES SUMMARY"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.014
testValidateDischargeSummaryFunctionalStatusSection

Constraint

Consol Discharge Summary MAY contain zero or one [0..1] component (CONF:9562) Contains exactly one [1..1] Functional Status Section (templateId: 2.16.840.1.113883.10.20.22.2.14)

OCL

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

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.8"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<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.14"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidateDischargeSummaryHistoryOfPresentIllness

Constraint

HITSP Discharge Summary SHOULD contain exactly one [1..1] component (C48-[CT2-11]) Contains exactly one [1..1] History Of Present Illness (templateId: 2.16.840.1.113883.3.88.11.83.107)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section/>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.014
testValidateDischargeSummaryHospitalCourseSection

Constraint

Consol Discharge Summary SHALL contain exactly one [1..1] component (CONF:9544) Contains exactly one [1..1] Hospital Course Section (templateId: 1.3.6.1.4.1.19376.1.5.3.1.3.5)

OCL

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

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.8"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.5"/>
<code code="8648-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Hospital Course"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidateDischargeSummaryMedicalEquipmentSection

Constraint

HITSP Discharge Summary SHOULD contain exactly one [1..1] component (C48-[CT2-13]) Contains exactly one [1..1] Medical Equipment Section (templateId: 2.16.840.1.113883.3.88.11.83.128)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.128"/>
<templateId root="2.16.840.1.113883.10.20.1.7"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.5.3.5"/>
<code code="46264-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medical device use"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.018
testValidateDischargeSummaryPhysicalExamSection

Constraint

HITSP Discharge Summary MAY contain zero or one [0..1] component (C48-[CT2-15]) Contains exactly one [1..1] Physical Exam Section (templateId: 2.16.840.1.113883.3.88.11.83.118)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.118"/>
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.24"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.9.15"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL EXAMINATION"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.017
testValidateDischargeSummaryPlanOfCareSection

Constraint

Consol Discharge Summary SHALL contain exactly one [1..1] component (CONF:9550) Contains exactly one [1..1] Plan Of Care Section (templateId: 2.16.840.1.113883.10.20.22.2.10)

OCL

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

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.8"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<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.10"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidateDischargeSummaryHistoryOfPastIllnessSection

Constraint

Consol Discharge Summary MAY contain exactly one [1..1] component (CONF:9564) Contains exactly one [1..1] History Of Past Illness Section (templateId: 2.16.840.1.113883.10.20.22.2.20)

OCL

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

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.8"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<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.20"/>
<code code="11348-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PAST ILLNESS"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidateDischargeSummaryReviewOfSystemsSection

Constraint

Consol Discharge Summary MAY contain zero or one [0..1] component (CONF:9580) Contains exactly one [1..1] Review Of Systems Section (templateId: 1.3.6.1.4.1.19376.1.5.3.1.3.18)

OCL

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

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.8"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.18"/>
<code code="10187-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="REVIEW OF SYSTEMS"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidateDischargeSummaryMedicationsAdministeredSection

Constraint

HITSP Discharge Summary SHOULD contain exactly one [1..1] component (C48-[CT2-19]) Contains exactly one [1..1] Medications Administered Section (templateId: 2.16.840.1.113883.3.88.11.83.115)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.115"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.21"/>
<code code="18610-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="MEDICATION ADMINISTERED"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidateDischargeSummaryVitalSignsSection

Constraint

HITSP Discharge Summary SHOULD contain exactly one [1..1] component (C48-[CT2-20]) Contains exactly one [1..1] Vital Signs Section (templateId: 2.16.840.1.113883.3.88.11.83.119)

OCL

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

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.3.88.11.48.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.119"/>
<templateId root="2.16.840.1.113883.10.20.1.16"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.25"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.5.3.2"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital signs"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testGetProblemListSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetAdmissionMedicationHistorySection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.017
testGetHospitalAdmissionDiagnosisSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetAllergiesReactionsSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetDischargeDiagnosisSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetDischargeDiet

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetHospitalDischargeMedicationsSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.017
testGetDiagnosticResultsSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetHospitalCourseSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
testGetPhysicalExamSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.017
testGetHistoryOfPastIllnessSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.017
testGetMedicationsAdministeredSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.016
Properties »