Unit Test Results.

Designed for use with JUnit and Ant.

All Failures

ClassNameStatusResultTime(s)
FamilyHistoryCauseOfDeathObservationTesttestValidateFamilyHistoryCauseOfDeathObservationCauseOfDeathObservationFailureInvalid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.42"/>
<templateId root="2.16.840.1.113883.10.20.1.22"/>
<statusCode code="completed"/>
<entryRelationship>
<observation/>
</entryRelationship>
</observation>

Valid XML

ERROR EXPECT FAIL validateFamilyHistoryCauseOfDeathObservationCauseOfDeathObservation" passed when it was expected to fail.<observation xmlns="urn:hl7-org:v3" moodCode="EVN"> <templateId root="2.16.840.1.113883.10.20.1.42"/> <templateId root="2.16.840.1.113883.10.20.1.22"/> <statusCode code="completed"/> <entryRelationship> <observation/> </entryRelationship> </observation>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateFamilyHistoryCauseOfDeathObservationCauseOfDeathObservation" passed when it was expected to fail.







at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.ccd.tests.FamilyHistoryCauseOfDeathObservationTest.testValidateFamilyHistoryCauseOfDeathObservationCauseOfDeathObservation(FamilyHistoryCauseOfDeathObservationTest.java:79)
0.007
ProblemHealthStatusObservationTesttestValidateProblemHealthStatusObservationCodeFailureInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.51"/>
<templateId root="2.16.840.1.113883.10.20.1.57"/>
<code/>
<statusCode code="completed"/>
</observation>

ERROR EXPECT PASS validateProblemHealthStatusObservationCode: CCD Problem Health Status Observation SHALL contain exactly one [1..1] code/@code="11323-3" Health status (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF-166) CCD Problem Health Status Observation SHALL contain exactly one [1..1] code/@code="11323-3" Health status (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF-166)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateProblemHealthStatusObservationCode: CCD Problem Health Status Observation SHALL contain exactly one [1..1] code/@code="11323-3" Health status (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF-166) CCD Problem Health Status Observation SHALL contain exactly one [1..1] code/@code="11323-3" Health status (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF-166)
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.ccd.tests.ProblemHealthStatusObservationTest.testValidateProblemHealthStatusObservationCode(ProblemHealthStatusObservationTest.java:78)
0.019
ProblemHealthStatusObservationTesttestValidateStatusObservationCodeFailureInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.57"/>
<code code="33999-4" codeSystem="2.16.840.1.113883.6.1"/>
<statusCode code="completed"/>
</observation>

ERROR EXPECT PASS validateStatusObservationCode: CCD Status Observation SHALL contain exactly one [1..1] code/@code="33999-4" Status (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF-512, CONF-513) CCD Status Observation SHALL contain exactly one [1..1] code/@code="33999-4" Status (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF-512, CONF-513)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateStatusObservationCode: CCD Status Observation SHALL contain exactly one [1..1] code/@code="33999-4" Status (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF-512, CONF-513) CCD Status Observation SHALL contain exactly one [1..1] code/@code="33999-4" Status (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF-512, CONF-513)
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.ccd.tests.ProblemHealthStatusObservationTest.testValidateStatusObservationCode(ProblemHealthStatusObservationTest.java:151)
0.019
SocialHistoryStatusObservationTesttestValidateSocialHistoryStatusObservationValueFailureInvalid XML


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

Valid XML


<observation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.56"/>
<templateId root="2.16.840.1.113883.10.20.1.57"/>
<code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
<value xsi:type="CD"/>
</observation>

ERROR EXPECT PASS validateSocialHistoryStatusObservationValue: CCD Social History Status Observation SHALL contain exactly one [1..1] value, where the @code SHALL be selected from (CodeSystem: 2.16.840.1.113883.1.11.20.17 SocialHistoryStatusCode) (CONF-248) CCD Social History Status Observation SHALL contain exactly one [1..1] value, where the @code SHALL be selected from (CodeSystem: 2.16.840.1.113883.1.11.20.17 SocialHistoryStatusCode) (CONF-248)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateSocialHistoryStatusObservationValue: CCD Social History Status Observation SHALL contain exactly one [1..1] value, where the @code SHALL be selected from (CodeSystem: 2.16.840.1.113883.1.11.20.17 SocialHistoryStatusCode) (CONF-248) CCD Social History Status Observation SHALL contain exactly one [1..1] value, where the @code SHALL be selected from (CodeSystem: 2.16.840.1.113883.1.11.20.17 SocialHistoryStatusCode) (CONF-248)
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.ccd.tests.SocialHistoryStatusObservationTest.testValidateSocialHistoryStatusObservationValue(SocialHistoryStatusObservationTest.java:79)
0.023
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsRolesShouldHaveAddrAndTelecomFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsRolesShouldHaveAddrAndTelecom" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsRolesShouldHaveAddrAndTelecom" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsRolesShouldHaveAddrAndTelecom(GeneralHeaderConstraintsTest.java:204)
0.005
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsOrganizationsHaveContactInfoFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsOrganizationsHaveContactInfo" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsOrganizationsHaveContactInfo" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsOrganizationsHaveContactInfo(GeneralHeaderConstraintsTest.java:238)
0.006
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsTimePreciseToDayFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsTimePreciseToDay" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsTimePreciseToDay" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsTimePreciseToDay(GeneralHeaderConstraintsTest.java:272)
0.005
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsTimePreciseToYearFailureInvalid 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="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateGeneralHeaderConstraintsTimePreciseToYear:

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateGeneralHeaderConstraintsTimePreciseToYear:
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.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsTimePreciseToYear(GeneralHeaderConstraintsTest.java:306)
0.108
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsTelephoneMatchesRegexFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsTelephoneMatchesRegex" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsTelephoneMatchesRegex" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsTelephoneMatchesRegex(GeneralHeaderConstraintsTest.java:340)
0.779
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasTelephoneDialingDigitsFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasTelephoneDialingDigits" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasTelephoneDialingDigits" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasTelephoneDialingDigits(GeneralHeaderConstraintsTest.java:374)
0.159
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsUnknownTelephoneUsesNullFlavorFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsUnknownTelephoneUsesNullFlavor" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsUnknownTelephoneUsesNullFlavor" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsUnknownTelephoneUsesNullFlavor(GeneralHeaderConstraintsTest.java:408)
0.004
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsIdRootFormatFailureInvalid 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="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateGeneralHeaderConstraintsIdRootFormat: CDT General Header Constraints SHALL satisfy: The id/@root attribute is a syntactically correct UUID or OID. (CONF-HP-17) CDT General Header Constraints SHALL satisfy: The id/@root attribute is a syntactically correct UUID or OID. (CONF-HP-17)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateGeneralHeaderConstraintsIdRootFormat: CDT General Header Constraints SHALL satisfy: The id/@root attribute is a syntactically correct UUID or OID. (CONF-HP-17) CDT General Header Constraints SHALL satisfy: The id/@root attribute is a syntactically correct UUID or OID. (CONF-HP-17)
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.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsIdRootFormat(GeneralHeaderConstraintsTest.java:478)
0.433
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsOidLengthFailureInvalid 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="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateGeneralHeaderConstraintsOidLength:

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateGeneralHeaderConstraintsOidLength:
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.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsOidLength(GeneralHeaderConstraintsTest.java:512)
0.008
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsSetIdAndVersionNumberFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsSetIdAndVersionNumber" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsSetIdAndVersionNumber" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsSetIdAndVersionNumber(GeneralHeaderConstraintsTest.java:669)
0.006
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsSetIdAndIdAreUniqueFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsSetIdAndIdAreUnique" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsSetIdAndIdAreUnique" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsSetIdAndIdAreUnique(GeneralHeaderConstraintsTest.java:703)
0.007
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsCopyTimeNotPresentFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsCopyTimeNotPresent" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsCopyTimeNotPresent" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsCopyTimeNotPresent(GeneralHeaderConstraintsTest.java:737)
0.017
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasRecordTargetPatientRoleFailureInvalid 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="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateGeneralHeaderConstraintsHasRecordTargetPatientRole: CDT General Header Constraints SHALL satisfy: At least one recordTarget/patientRole element is present. (CONF-HP-31) CDT General Header Constraints SHALL satisfy: At least one recordTarget/patientRole element is present. (CONF-HP-31)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateGeneralHeaderConstraintsHasRecordTargetPatientRole: CDT General Header Constraints SHALL satisfy: At least one recordTarget/patientRole element is present. (CONF-HP-31) CDT General Header Constraints SHALL satisfy: At least one recordTarget/patientRole element is present. (CONF-HP-31)
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.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasRecordTargetPatientRole(GeneralHeaderConstraintsTest.java:771)
0.007
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasPatientBirthTimeFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasPatientBirthTime" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasPatientBirthTime" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasPatientBirthTime(GeneralHeaderConstraintsTest.java:805)
0.007
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasAdministrativeGenderCodeFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasAdministrativeGenderCode" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasAdministrativeGenderCode" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasAdministrativeGenderCode(GeneralHeaderConstraintsTest.java:839)
0.007
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasProviderOrganizationFailureInvalid 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="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateGeneralHeaderConstraintsHasProviderOrganization: CDT General Header Constraints MAY satisfy: The providerOrganization element is present. (CONF-HP-36) CDT General Header Constraints MAY satisfy: The providerOrganization element is present. (CONF-HP-36)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateGeneralHeaderConstraintsHasProviderOrganization: CDT General Header Constraints MAY satisfy: The providerOrganization element is present. (CONF-HP-36) CDT General Header Constraints MAY satisfy: The providerOrganization element is present. (CONF-HP-36)
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.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasProviderOrganization(GeneralHeaderConstraintsTest.java:873)
0.006
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasAuthorTimeFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasAuthorTime" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasAuthorTime" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasAuthorTime(GeneralHeaderConstraintsTest.java:907)
0.004
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasAssignedAuthorIdFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasAssignedAuthorId" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasAssignedAuthorId" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasAssignedAuthorId(GeneralHeaderConstraintsTest.java:941)
0.005
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasAssignedAuthorPersonOrDeviceFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasAssignedAuthorPersonOrDevice" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasAssignedAuthorPersonOrDevice" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasAssignedAuthorPersonOrDevice(GeneralHeaderConstraintsTest.java:975)
0.005
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasDataEntererAssignedPersonFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasDataEntererAssignedPerson" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasDataEntererAssignedPerson" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasDataEntererAssignedPerson(GeneralHeaderConstraintsTest.java:1009)
0.004
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasDataEntererTimeFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasDataEntererTime" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasDataEntererTime" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasDataEntererTime(GeneralHeaderConstraintsTest.java:1043)
0.005
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasInformantFailureInvalid 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="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateGeneralHeaderConstraintsHasInformant: CDT General Header Constraints MAY satisfy: The informant element is present. (CONF-HP-42) CDT General Header Constraints MAY satisfy: The informant element is present. (CONF-HP-42)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateGeneralHeaderConstraintsHasInformant: CDT General Header Constraints MAY satisfy: The informant element is present. (CONF-HP-42) CDT General Header Constraints MAY satisfy: The informant element is present. (CONF-HP-42)
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.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasInformant(GeneralHeaderConstraintsTest.java:1077)
0.005
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsHasInformantAssignedPersonOrRelatedPersonFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasInformantAssignedPersonOrRelatedPerson" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsHasInformantAssignedPersonOrRelatedPerson" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsHasInformantAssignedPersonOrRelatedPerson(GeneralHeaderConstraintsTest.java:1111)
0.006
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsLegalAuthenticatorHasAssignedPersonFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsLegalAuthenticatorHasAssignedPerson" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsLegalAuthenticatorHasAssignedPerson" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsLegalAuthenticatorHasAssignedPerson(GeneralHeaderConstraintsTest.java:1145)
0.005
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsTimePreciseToSecondFailureInvalid 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

ERROR EXPECT FAIL validateGeneralHeaderConstraintsTimePreciseToSecond" passed when it was expected to fail.<?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"/>

junit.framework.AssertionFailedError: ERROR EXPECT FAIL validateGeneralHeaderConstraintsTimePreciseToSecond" passed when it was expected to fail.

at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$CDAValidationTestCase.validateExpectFail(CDAValidationTest.java:286)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doTest(CDAValidationTest.java:751)
at org.openhealthtools.mdht.uml.cda.operations.CDAValidationTest$OperationsTestCase.doValidationTest(CDAValidationTest.java:845)
at org.openhealthtools.mdht.uml.cda.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsTimePreciseToSecond(GeneralHeaderConstraintsTest.java:1227)
0.006
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsTimePreciseToYearAndDayFailureInvalid 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="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateGeneralHeaderConstraintsTimePreciseToYearAndDay:

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateGeneralHeaderConstraintsTimePreciseToYearAndDay:
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.cdt.tests.GeneralHeaderConstraintsTest.testValidateGeneralHeaderConstraintsTimePreciseToYearAndDay(GeneralHeaderConstraintsTest.java:1261)
5.151
UnstructuredDocumentTesttestValidateUnstructuredDocumentPatientRoleHasIdFailureInvalid 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.19.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateUnstructuredDocumentPatientRoleHasId: CDT Unstructured Document SHALL satisfy: A patientRole element contains an id element. (CONF-UD-17) CDT Unstructured Document SHALL satisfy: A patientRole element contains an id element. (CONF-UD-17)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateUnstructuredDocumentPatientRoleHasId: CDT Unstructured Document SHALL satisfy: A patientRole element contains an id element. (CONF-UD-17) CDT Unstructured Document SHALL satisfy: A patientRole element contains an id element. (CONF-UD-17)
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.cdt.tests.UnstructuredDocumentTest.testValidateUnstructuredDocumentPatientRoleHasId(UnstructuredDocumentTest.java:90)
0.005
UnstructuredDocumentTesttestValidateUnstructuredDocumentAssignedAuthorHasAddrFailureInvalid 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.19.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateUnstructuredDocumentAssignedAuthorHasAddr: CDT Unstructured Document An assignedAuthor element contains an addr element. If addr is unknown it SHALL be represented using the appropriate flavor of null. (CONF-UD-25) CDT Unstructured Document An assignedAuthor element contains an addr element. If addr is unknown it SHALL be represented using the appropriate flavor of null. (CONF-UD-25)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateUnstructuredDocumentAssignedAuthorHasAddr: CDT Unstructured Document An assignedAuthor element contains an addr element. If addr is unknown it SHALL be represented using the appropriate flavor of null. (CONF-UD-25) CDT Unstructured Document An assignedAuthor element contains an addr element. If addr is unknown it SHALL be represented using the appropriate flavor of null. (CONF-UD-25)
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.cdt.tests.UnstructuredDocumentTest.testValidateUnstructuredDocumentAssignedAuthorHasAddr(UnstructuredDocumentTest.java:124)
0.006
UnstructuredDocumentTesttestValidateUnstructuredDocumentAssignedAuthorHasTelecomFailureInvalid 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.19.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateUnstructuredDocumentAssignedAuthorHasTelecom: CDT Unstructured Document An assignedAuthor element contains a telecom element. If telecom is unknown it SHALL be represented using the appropriate flavor of null. (CONF-UD-26) CDT Unstructured Document An assignedAuthor element contains a telecom element. If telecom is unknown it SHALL be represented using the appropriate flavor of null. (CONF-UD-26)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateUnstructuredDocumentAssignedAuthorHasTelecom: CDT Unstructured Document An assignedAuthor element contains a telecom element. If telecom is unknown it SHALL be represented using the appropriate flavor of null. (CONF-UD-26) CDT Unstructured Document An assignedAuthor element contains a telecom element. If telecom is unknown it SHALL be represented using the appropriate flavor of null. (CONF-UD-26)
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.cdt.tests.UnstructuredDocumentTest.testValidateUnstructuredDocumentAssignedAuthorHasTelecom(UnstructuredDocumentTest.java:158)
0.005
UnstructuredDocumentTesttestValidateUnstructuredDocumentHasRepresentedCustodianOrganizationFailureInvalid 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.19.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateUnstructuredDocumentHasRepresentedCustodianOrganization: CDT Unstructured Document The custodian element SHALL contain an assignedCustodian/representedCustodianOrganization element. (CONF-UD-28) CDT Unstructured Document The custodian element SHALL contain an assignedCustodian/representedCustodianOrganization element. (CONF-UD-28)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateUnstructuredDocumentHasRepresentedCustodianOrganization: CDT Unstructured Document The custodian element SHALL contain an assignedCustodian/representedCustodianOrganization element. (CONF-UD-28) CDT Unstructured Document The custodian element SHALL contain an assignedCustodian/representedCustodianOrganization element. (CONF-UD-28)
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.cdt.tests.UnstructuredDocumentTest.testValidateUnstructuredDocumentHasRepresentedCustodianOrganization(UnstructuredDocumentTest.java:192)
0.005
UnstructuredDocumentTesttestValidateUnstructuredDocumentHasRepresentedCustodianOrganizationIdFailureInvalid 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.19.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateUnstructuredDocumentHasRepresentedCustodianOrganizationId: CDT Unstructured Document A representedCustodianOrganization element SHALL contain an id element. (CONF-UD-29) CDT Unstructured Document A representedCustodianOrganization element SHALL contain an id element. (CONF-UD-29)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateUnstructuredDocumentHasRepresentedCustodianOrganizationId: CDT Unstructured Document A representedCustodianOrganization element SHALL contain an id element. (CONF-UD-29) CDT Unstructured Document A representedCustodianOrganization element SHALL contain an id element. (CONF-UD-29)
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.cdt.tests.UnstructuredDocumentTest.testValidateUnstructuredDocumentHasRepresentedCustodianOrganizationId(UnstructuredDocumentTest.java:226)
0.005
UnstructuredDocumentTesttestValidateUnstructuredDocumentHasRepresentedCustodianOrganizationNameFailureInvalid 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.19.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateUnstructuredDocumentHasRepresentedCustodianOrganizationName: CDT Unstructured Document A representedCustodianOrganization element SHALL contain a name element. (CONF-UD-30) CDT Unstructured Document A representedCustodianOrganization element SHALL contain a name element. (CONF-UD-30)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateUnstructuredDocumentHasRepresentedCustodianOrganizationName: CDT Unstructured Document A representedCustodianOrganization element SHALL contain a name element. (CONF-UD-30) CDT Unstructured Document A representedCustodianOrganization element SHALL contain a name element. (CONF-UD-30)
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.cdt.tests.UnstructuredDocumentTest.testValidateUnstructuredDocumentHasRepresentedCustodianOrganizationName(UnstructuredDocumentTest.java:260)
0.005
UnstructuredDocumentTesttestValidateUnstructuredDocumentHasRepresentedCustodianOrganizationTelecomFailureInvalid 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.19.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateUnstructuredDocumentHasRepresentedCustodianOrganizationTelecom: CDT Unstructured Document A representedCustodianOrganization element SHALL contain a telecom element. (CONF-UD-31) CDT Unstructured Document A representedCustodianOrganization element SHALL contain a telecom element. (CONF-UD-31)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateUnstructuredDocumentHasRepresentedCustodianOrganizationTelecom: CDT Unstructured Document A representedCustodianOrganization element SHALL contain a telecom element. (CONF-UD-31) CDT Unstructured Document A representedCustodianOrganization element SHALL contain a telecom element. (CONF-UD-31)
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.cdt.tests.UnstructuredDocumentTest.testValidateUnstructuredDocumentHasRepresentedCustodianOrganizationTelecom(UnstructuredDocumentTest.java:294)
0.005
UnstructuredDocumentTesttestValidateUnstructuredDocumentHasRepresentedCustodianOrganizationAddrFailureInvalid 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.19.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateUnstructuredDocumentHasRepresentedCustodianOrganizationAddr: CDT Unstructured Document A representedCustodianOrganization element SHALL contain an addr element. (CONF-UD-32) CDT Unstructured Document A representedCustodianOrganization element SHALL contain an addr element. (CONF-UD-32)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateUnstructuredDocumentHasRepresentedCustodianOrganizationAddr: CDT Unstructured Document A representedCustodianOrganization element SHALL contain an addr element. (CONF-UD-32) CDT Unstructured Document A representedCustodianOrganization element SHALL contain an addr element. (CONF-UD-32)
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.cdt.tests.UnstructuredDocumentTest.testValidateUnstructuredDocumentHasRepresentedCustodianOrganizationAddr(UnstructuredDocumentTest.java:328)
0.005
UnstructuredDocumentTesttestValidateUnstructuredDocumentHasTextReferenceOrRepresentationFailureInvalid 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.19.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateUnstructuredDocumentHasTextReferenceOrRepresentation: CDT Unstructured Document The text element SHALL either contain a reference element with a value attribute, or have a representation attribute with the value of B64, a mediaType attribute, and contain the media content (CONF-UD-35) CDT Unstructured Document The text element SHALL either contain a reference element with a value attribute, or have a representation attribute with the value of B64, a mediaType attribute, and contain the media content (CONF-UD-35)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateUnstructuredDocumentHasTextReferenceOrRepresentation: CDT Unstructured Document The text element SHALL either contain a reference element with a value attribute, or have a representation attribute with the value of B64, a mediaType attribute, and contain the media content (CONF-UD-35) CDT Unstructured Document The text element SHALL either contain a reference element with a value attribute, or have a representation attribute with the value of B64, a mediaType attribute, and contain the media content (CONF-UD-35)
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.cdt.tests.UnstructuredDocumentTest.testValidateUnstructuredDocumentHasTextReferenceOrRepresentation(UnstructuredDocumentTest.java:404)
0.011
UnstructuredDocumentTesttestValidateUnstructuredDocumentHasTextMediaTypeValueSetFailureInvalid 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.19.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
</ClinicalDocument>

ERROR EXPECT PASS validateUnstructuredDocumentHasTextMediaTypeValueSet: CDT Unstructured Document The value of @mediaType SHALL be drawn from the value set 2.16.840.1.113883.11.20.7.1 SupportedFileFormats STATIC 20100512 (CONF-UD-36) CDT Unstructured Document The value of @mediaType SHALL be drawn from the value set 2.16.840.1.113883.11.20.7.1 SupportedFileFormats STATIC 20100512 (CONF-UD-36)

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateUnstructuredDocumentHasTextMediaTypeValueSet: CDT Unstructured Document The value of @mediaType SHALL be drawn from the value set 2.16.840.1.113883.11.20.7.1 SupportedFileFormats STATIC 20100512 (CONF-UD-36) CDT Unstructured Document The value of @mediaType SHALL be drawn from the value set 2.16.840.1.113883.11.20.7.1 SupportedFileFormats STATIC 20100512 (CONF-UD-36)
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.cdt.tests.UnstructuredDocumentTest.testValidateUnstructuredDocumentHasTextMediaTypeValueSet(UnstructuredDocumentTest.java:438)
0.019
UnstructuredDocumentTesttestValidateUnstructuredDocumentCustodianFailureInvalid 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.21.1.10"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
<custodian/>
</ClinicalDocument>

ERROR EXPECT PASS validateUnstructuredDocumentCustodian: CDT Unstructured Document SHALL contain exactly one [1..1] custodian (CONF-UD-27) Contains exactly one [1..1] CDA Custodian CDT Unstructured Document SHALL contain exactly one [1..1] custodian (CONF-UD-27) Contains exactly one [1..1] CDA Custodian

junit.framework.AssertionFailedError: ERROR EXPECT PASS validateUnstructuredDocumentCustodian: CDT Unstructured Document SHALL contain exactly one [1..1] custodian (CONF-UD-27) Contains exactly one [1..1] CDA Custodian CDT Unstructured Document SHALL contain exactly one [1..1] custodian (CONF-UD-27) Contains exactly one [1..1] CDA Custodian
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.cdt.tests.UnstructuredDocumentTest.testValidateUnstructuredDocumentCustodian(UnstructuredDocumentTest.java:509)
0.005
MedicationTesttestValidateHITSPMedicationRouteCodeFailureInvalid 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