Unit Test Results.

Designed for use with JUnit and Ant.

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

NameTestsErrorsFailuresTime(s)Time StampHost
PatientSummaryTest27000.4402013-01-31T13:34:34JKMSoftware-desktop

Tests

NameStatusResultTime(s)
testConstructor

Constraint

OCL

SuccessInvalid XML

Valid XML

0.001
testGetProblemListSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.021
testGetAllergiesReactionsSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
testGetDiagnosticResultsSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
testValidatePatientSummaryHealthcareProvider

Constraint

HITSP Patient Summary MAY satisfy: Contains 0..* HealthcareProvider in cda:documentationOf/cda:serviceEvent/cda:performer (C32-[CT1-6])

OCL

self.documentationOf.serviceEvent.performer->size() > 0

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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<documentationOf>
<serviceEvent>
<performer/>
</serviceEvent>
</documentationOf>
</ClinicalDocument>

0.013
testValidatePatientSummaryTemplateId

Constraint

SHALL contain exactly one [1..1] templateId ( C32-[CT1-19] ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.3.88.11.32.1"

OCL

self.templateId->exists(id : datatypes::II | id.root = '2.16.840.1.113883.3.88.11.32.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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
</ClinicalDocument>

0.007
testValidatePatientSummaryAdvanceDirectivesSection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-1]) 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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<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.015
testValidatePatientSummaryAllergiesReactionsSection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-2]) 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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<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.015
testValidatePatientSummaryProblemListSection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-4]) 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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<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
testValidatePatientSummaryEncountersSection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-5]) Contains exactly one [1..1] Encounters Section (templateId: 2.16.840.1.113883.3.88.11.83.127)

OCL

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

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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.127"/>
<templateId root="2.16.840.1.113883.10.20.1.3"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.5.3.3"/>
<code code="46240-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of encounters"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidatePatientSummaryImmunizationsSection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-7]) Contains exactly one [1..1] Immunizations Section (templateId: 2.16.840.1.113883.3.88.11.83.117)

OCL

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

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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.117"/>
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.23"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidatePatientSummaryPayersSection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-9]) Contains exactly one [1..1] Payers Section (templateId: 2.16.840.1.113883.3.88.11.83.101)

OCL

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

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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.101"/>
<templateId root="2.16.840.1.113883.10.20.1.9"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.5.3.7"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment sources"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.016
testValidatePatientSummaryMedicationsSection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-11]) Contains exactly one [1..1] Medications Section (templateId: 2.16.840.1.113883.3.88.11.83.112)

OCL

self.getAllSections()->one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(hitsp::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.3.88.11.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.112"/>
<templateId root="2.16.840.1.113883.10.20.1.8"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.19"/>
<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.016
testValidatePatientSummarySurgeriesSection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-15]) Contains exactly one [1..1] Surgeries Section (templateId: 2.16.840.1.113883.3.88.11.83.108)

OCL

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

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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.108"/>
<templateId root="2.16.840.1.113883.10.20.1.12"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.11"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.12"/>
<code code="47519-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of procedures"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.016
testValidatePatientSummaryPlanOfCareSection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-13]) Contains exactly one [1..1] Plan Of Care Section (templateId: 2.16.840.1.113883.3.88.11.83.124)

OCL

self.getAllSections()->one(section : cda::Section | not section.oclIsUndefined() and section.oclIsKindOf(hitsp::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.3.88.11.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.3.88.11.83.124"/>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<templateId root="2.16.840.1.113883.10.20.1.10"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.31"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.015
testValidatePatientSummaryPregnancyHistorySection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-14]) Contains exactly one [1..1] IHE Pregnancy History Section (templateId: 1.3.6.1.4.1.19376.1.5.3.1.1.5.3.4)

OCL

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

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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.5.3.4"/>
<code code="10162-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PREGNANCIES"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.016
testValidatePatientSummaryVitalSignsSection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-17]) 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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<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
testValidatePatientSummaryDiagnosticResultsSection

Constraint

HITSP Patient Summary MAY contain zero or one [0..1] component (C32-[CT1-18]) 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.32.1"/>
<templateId root="2.16.840.1.113883.10.20.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"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<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.016
testGetHITSPAdvanceDirectivesSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.019
testGetHITSPEncountersSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
testGetHITSPImmunizationsSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.021
testGetHITSPPayersSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.020
testGetHITSPMedicationsSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
testGetSurgeriesSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
testGetHITSPPlanOfCareSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
testGetPregnancyHistorySection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
testGetHITSPVitalSignsSection

Constraint

OCL

SuccessInvalid XML

Valid XML

0.018
Properties »