Unit Test Results.

Designed for use with JUnit and Ant.

All Tests

ClassNameStatusResultTime(s)
AdvanceDirectiveObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationAdvDirectiveCodeValueSetSuccessInvalid 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.17"/>
<code codeSystem="2.16.840.1.113883.6.96"/>
<statusCode code="completed"/>
</observation>

0.072
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationAdvDirectiveCodeCodeSystemSuccessInvalid 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.17"/>
<code code="304251008" codeSystem="2.16.840.1.113883.6.96"/>
<statusCode code="completed"/>
</observation>

0.005
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationTemplateIdSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.004
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationClassCodeSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.003
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationMoodCodeSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.004
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationIdSuccessInvalid 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.22.4.48"/>
<id/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.006
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationStatusCodeSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.010
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationEffectiveTimeSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<effectiveTime/>
</observation>

0.007
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationCodeSuccessInvalid 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.22.4.48"/>
<code code="304251008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="" displayName=""/>
<statusCode code="completed"/>
</observation>

0.006
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationAdvanceDirectiveVerificationSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.17"/>
<statusCode code="completed"/>
<participant typeCode="VRF">
<templateId root="2.16.840.1.113883.10.20.1.58"/>
</participant>
</observation>

0.132
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationAdvanceDirectiveStatusObservationSuccessInvalid 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.17"/>
<statusCode code="completed"/>
<entryRelationship>
<observation/>
</entryRelationship>
</observation>

0.039
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationAdvanceDirectiveReferenceSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.17"/>
<statusCode code="completed"/>
<reference typeCode="REFR">
<templateId root="2.16.840.1.113883.10.20.1.36"/>
</reference>
</observation>

0.080
AdvanceDirectiveObservationTesttestGetAdvanceDirectiveStatusObservationSuccessInvalid XML

Valid XML

0.005
AdvanceDirectiveReferenceTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AdvanceDirectiveReferenceTesttestValidateAdvanceDirectiveReferenceHasURLSuccessInvalid XML


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

Valid XML


<reference xmlns="urn:hl7-org:v3" typeCode="REFR">
<templateId root="2.16.840.1.113883.10.20.1.36"/>
<externalDocument>
<id/>
<text mediaType="mediatype">sometext<reference value="value"/></text>
</externalDocument>
</reference>

0.007
AdvanceDirectiveReferenceTesttestValidateAdvanceDirectiveReferenceHasMIMETypeSuccessInvalid XML


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

Valid XML


<reference xmlns="urn:hl7-org:v3" typeCode="REFR">
<templateId root="2.16.840.1.113883.10.20.1.36"/>
<externalDocument>
<id/>
<text mediaType="mediatype">sometext</text>
</externalDocument>
</reference>

0.052
AdvanceDirectiveReferenceTesttestValidateAdvanceDirectiveReferenceExternalDocumentHasIdSuccessInvalid XML


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

Valid XML


<reference xmlns="urn:hl7-org:v3" typeCode="REFR">
<templateId root="2.16.840.1.113883.10.20.1.36"/>
<externalDocument>
<id/>
</externalDocument>
</reference>

0.007
AdvanceDirectiveReferenceTesttestValidateAdvanceDirectiveReferenceTemplateIdSuccessInvalid XML


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

Valid XML


<reference xmlns="urn:hl7-org:v3" typeCode="REFR">
<templateId root="2.16.840.1.113883.10.20.1.36"/>
</reference>

0.013
AdvanceDirectiveReferenceTesttestValidateAdvanceDirectiveReferenceTypeCodeSuccessInvalid XML


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

Valid XML


<reference xmlns="urn:hl7-org:v3" typeCode="REFR">
<templateId root="2.16.840.1.113883.10.20.1.36"/>
</reference>

0.002
AdvanceDirectiveReferenceTesttestValidateAdvanceDirectiveReferenceExternalDocumentSuccessInvalid XML


<reference xmlns="urn:hl7-org:v3" typeCode="REFR">
<templateId root="2.16.840.1.113883.10.20.1.36"/>
</reference>

Valid XML


<reference xmlns="urn:hl7-org:v3" typeCode="REFR">
<templateId root="2.16.840.1.113883.10.20.1.36"/>
<externalDocument/>
</reference>

0.004
AdvanceDirectiveStatusObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.000
AdvanceDirectiveStatusObservationTesttestValidateStatusObservationTemplateIdSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.005
AdvanceDirectiveVerificationTesttestConstructorSuccessInvalid XML

Valid XML

0.000
AdvanceDirectiveVerificationTesttestValidateAdvanceDirectiveVerificationTemplateIdSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="VRF">
<templateId root="2.16.840.1.113883.10.20.1.58"/>
</participant2>

0.003
AdvanceDirectiveVerificationTesttestValidateAdvanceDirectiveVerificationTypeCodeSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="VRF">
<templateId root="2.16.840.1.113883.10.20.1.58"/>
</participant2>

0.004
AdvanceDirectiveVerificationTesttestValidateAdvanceDirectiveVerificationTimeSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="VRF">
<templateId root="2.16.840.1.113883.10.20.1.58"/>
<time/>
</participant2>

0.004
AdvanceDirectivesSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AdvanceDirectivesSectionTesttestValidateAdvanceDirectivesSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.1"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance directives"/>
</section>

0.005
AdvanceDirectivesSectionTesttestValidateAdvanceDirectivesSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
</section>

0.011
AdvanceDirectivesSectionTesttestValidateAdvanceDirectivesSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
<title>title</title>
</section>

0.035
AdvanceDirectivesSectionTesttestValidateAdvanceDirectivesSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
<text/>
</section>

0.003
AdvanceDirectivesSectionTesttestValidateAdvanceDirectivesSectionAdvanceDirectiveObservationSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>
</entry>
</section>

0.006
AdvanceDirectivesSectionTesttestGetAdvanceDirectiveObservationsSuccessInvalid XML

Valid XML

0.006
AgeObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AgeObservationTesttestValidateAgeObservationTemplateIdSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
</observation>

0.005
AgeObservationTesttestValidateAgeObservationClassCodeSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
</observation>

0.003
AgeObservationTesttestValidateAgeObservationMoodCodeSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
</observation>

0.003
AgeObservationTesttestValidateAgeObservationCodeSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96"/>
<statusCode code="completed"/>
</observation>

0.011
AgeObservationTesttestValidateAgeObservationStatusCodeSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
</observation>

0.011
AgeObservationTesttestValidateAgeObservationValueSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
<value xsi:type="PQ"/>
</observation>

0.008
AlertObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AlertObservationTesttestValidateAlertObservationInformationSourceSuccessInvalid XML


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

Valid XML


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

0.078
AlertObservationTesttestValidateAlertObservationAgentRepresentationSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.18"/>
<statusCode code="completed"/>
<participant typeCode="CSM"/>
</observation>

0.005
AlertObservationTesttestValidateAlertObservationPlayingEntityRequiredSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.18"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity/>
</participantRole>
</participant>
</observation>

0.031
AlertObservationTesttestValidateAlertObservationAgentRepresentationVocabSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.18"/>
<statusCode code="completed"/>
<participant typeCode="CSM"/>
</observation>

0.004
AlertObservationTesttestValidateAlertObservationParticipantRoleClassCodeSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.18"/>
<statusCode code="completed"/>
<participant>
<participantRole classCode="MANU"/>
</participant>
</observation>

0.004
AlertObservationTesttestValidateAlertObservationPlayingEntityClassCodeSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.18"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity classCode="MMAT">
<code code="test"/>
</playingEntity>
</participantRole>
</participant>
</observation>

0.007
AlertObservationTesttestValidateAlertObservationPlayingEntityCodeSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.18"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code code="test"/>
</playingEntity>
</participantRole>
</participant>
</observation>

0.005
AlertObservationTesttestValidateAlertObservationPlayingEntityCodeVocabSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.18"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code code="test" codeSystem="2.16.840.1.113883.6.88"/>
</playingEntity>
</participantRole>
</participant>
</observation>

0.008
AlertObservationTesttestValidateAlertObservationTemplateIdSuccessInvalid XML


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

Valid XML


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

0.004
AlertObservationTesttestValidateAlertObservationMoodCodeSuccessInvalid XML


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

Valid XML


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

0.004
AlertObservationTesttestValidateAlertObservationStatusCodeSuccessInvalid XML


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

Valid XML


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

0.012
AlertObservationTesttestValidateAlertObservationEffectiveTimeSuccessInvalid XML


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

Valid XML


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

0.007
AlertObservationTesttestValidateAlertObservationAlertStatusObservationSuccessInvalid XML


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

Valid XML


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

0.007
AlertObservationTesttestValidateAlertObservationReactionObservationSuccessInvalid XML


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

Valid XML


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

0.008
AlertObservationTesttestGetAlertStatusObservationSuccessInvalid XML

Valid XML

0.005
AlertObservationTesttestGetReactionObservationsSuccessInvalid XML

Valid XML

0.004
AlertStatusObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AlertStatusObservationTesttestValidateStatusObservationTemplateIdSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.004
AlertsSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.000
AlertsSectionTesttestValidateAlertsSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.2"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</section>

0.005
AlertsSectionTesttestValidateAlertsSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.2"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</section>

0.011
AlertsSectionTesttestValidateAlertsSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.2"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<title>title</title>
</section>

0.010
AlertsSectionTesttestValidateAlertsSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.2"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<text/>
</section>

0.004
AlertsSectionTesttestValidateAlertsSectionProblemActSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.2"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<entry>
<act/>
</entry>
</section>

0.032
AlertsSectionTesttestGetProblemActsSuccessInvalid XML

Valid XML

0.007
AuthorizationActivityTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AuthorizationActivityTesttestValidateAuthorizationActivityEntryRelationshipTypeCodeSuccessInvalid XML


Skip Fail Test

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship typeCode="SUBJ"/>
</act>

0.006
AuthorizationActivityTesttestValidateAuthorizationActivityEntryRelationshipTargetSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<act/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<encounter/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<observation/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<observationMedia/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<organizer/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<procedure/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<regionOfInterest/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<substanceAdministration/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<supply/>
</entryRelationship>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<act moodCode="PRMS"/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<encounter moodCode="PRMS"/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<observation moodCode="PRMS"/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<observationMedia moodCode="PRMS"/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<organizer moodCode="PRMS"/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<procedure moodCode="PRMS"/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<regionOfInterest moodCode="PRMS"/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<substanceAdministration moodCode="PRMS"/>
</entryRelationship>
</act>

<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<supply moodCode="PRMS"/>
</entryRelationship>
</act>

0.055
AuthorizationActivityTesttestValidateAuthorizationActivityHasPerformersSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<act/>
</entryRelationship>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship>
<act>
<performer/>
</act>
</entryRelationship>
</act>

0.033
AuthorizationActivityTesttestValidateAuthorizationActivityTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
</act>

0.005
AuthorizationActivityTesttestValidateAuthorizationActivityClassCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
</act>

0.004
AuthorizationActivityTesttestValidateAuthorizationActivityMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
</act>

0.003
AuthorizationActivityTesttestValidateAuthorizationActivityIdSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<id/>
</act>

0.006
AuthorizationActivityTesttestValidateAuthorizationActivityEntryRelationshipSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.19"/>
<entryRelationship typeCode="SUBJ"/>
</act>

0.011
CCDRegistryDelegateTesttestConstructorSuccessInvalid XML

Valid XML

0.001
CCDRegistryDelegateTesttestGetEClassSuccessInvalid XML

Valid XML

0.000
CommentTesttestConstructorSuccessInvalid XML

Valid XML

0.000
CommentTesttestValidateCommentTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.2"/>
<templateId root="2.16.840.1.113883.10.20.1.40"/>
<code code="48767-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Annotation comment"/>
<statusCode code="completed"/>
</act>

0.037
CommentTesttestValidateCommentClassCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.40"/>
<code code="48767-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Annotation comment"/>
</act>

0.004
CommentTesttestValidateCommentMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.40"/>
<code code="48767-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Annotation comment"/>
</act>

0.004
CommentTesttestValidateCommentCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.40"/>
<code code="48767-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Annotation comment"/>
</act>

0.012
ContinuityOfCareDocumentTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ContinuityOfCareDocumentTesttestGetProblemSectionSuccessInvalid XML

Valid XML

0.007
ContinuityOfCareDocumentTesttestGetProceduresSectionSuccessInvalid XML

Valid XML

0.006
ContinuityOfCareDocumentTesttestGetImmunizationsSectionSuccessInvalid XML

Valid XML

0.005
ContinuityOfCareDocumentTesttestGetMedicationsSectionSuccessInvalid XML

Valid XML

0.005
ContinuityOfCareDocumentTesttestGetAlertsSectionSuccessInvalid XML

Valid XML

0.005
ContinuityOfCareDocumentTesttestGetSocialHistorySectionSuccessInvalid XML

Valid XML

0.004
ContinuityOfCareDocumentTesttestGetFamilyHistorySectionSuccessInvalid XML

Valid XML

0.004
ContinuityOfCareDocumentTesttestGetVitalSignsSectionSuccessInvalid XML

Valid XML

0.005
ContinuityOfCareDocumentTesttestGetResultsSectionSuccessInvalid XML

Valid XML

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

0.005
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentServiceEventClassCodeSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<documentationOf>
<serviceEvent classCode="PCPR"/>
</documentationOf>
</ClinicalDocument>

0.004
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentServiceEventEffectiveTimeSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<documentationOf>
<serviceEvent classCode="PCPR">
<effectiveTime>
<low/>
<high/>
</effectiveTime>
</serviceEvent>
</documentationOf>
</ClinicalDocument>

0.008
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentLanguageCodeFormatSuccessInvalid 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"/>

<?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">
<languageCode code="aaaa"/>
</ClinicalDocument>

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

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

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

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

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

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

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

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">
<languageCode code="en"/>
</ClinicalDocument>

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

0.014
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentNoTemplateIdExtensionSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.1" extension="a"/>
</ClinicalDocument>

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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
</ClinicalDocument>

0.005
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentHasEffectiveTimeSecondsSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<effectiveTime value="123"/>
</ClinicalDocument>

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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<effectiveTime value="12345"/>
</ClinicalDocument>

0.004
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentHasEffectiveTimeZoneSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<effectiveTime value="20071213155200"/>
</ClinicalDocument>

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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<effectiveTime value="20071213155200-0500"/>
</ClinicalDocument>

0.004
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentOneOrTwoRecordTargetSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<recordTarget/>
</ClinicalDocument>

0.007
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentHasAssignedAuthorSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<author>
<assignedAuthor>
<assignedPerson/>
</assignedAuthor>
</author>
</ClinicalDocument>

0.007
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentHasAssignedAuthorNullFlavorSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<author>
<assignedAuthor>
<id nullFlavor="NA"/>
<representedOrganization/>
</assignedAuthor>
</author>
</ClinicalDocument>

0.010
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentHasInformationRecipientSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<informationRecipient/>
</ClinicalDocument>

0.006
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentTemplateIdSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of episode note"/>
</ClinicalDocument>

0.004
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentCodeSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
</ClinicalDocument>

0.012
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentLanguageCodeSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
</ClinicalDocument>

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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
<languageCode/>
</ClinicalDocument>

0.007
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentProblemSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<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.5.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.5"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem List"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentFamilyHistorySectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<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.15"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Family History"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentSocialHistorySectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<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.17"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentAlertsSectionSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.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.10.20.1.2"/>
<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.006
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentMedicationsSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.22.2.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.1"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentResultsSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<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.3.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.3"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentProceduresSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<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.7.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.7"/>
<code code="47519-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of Procedures"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentEncountersSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<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.22.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.22"/>
<code code="46240-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Encounters"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.008
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentPlanOfCareSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<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.006
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentImmunizationsSectionSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.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.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentVitalSignsSectionSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.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.10.20.1.16"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital signs"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentMedicalEquipmentSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<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.23"/>
<code code="46264-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medical Equipment"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.007
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentFunctionalStatusSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<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.007
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentAdvanceDirectivesSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<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.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.007
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentPayersSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<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.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.007
ContinuityOfCareDocumentTesttestValidateContinuityOfCareDocumentPurposeSectionSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.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.10.20.1.13"/>
<code code="48764-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summary purpose"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.008
ContinuityOfCareDocumentTesttestGetEncountersSectionSuccessInvalid XML

Valid XML

0.005
ContinuityOfCareDocumentTesttestGetPlanOfCareSectionSuccessInvalid XML

Valid XML

0.005
ContinuityOfCareDocumentTesttestGetMedicalEquipmentSectionSuccessInvalid XML

Valid XML

0.005
ContinuityOfCareDocumentTesttestGetFunctionalStatusSectionSuccessInvalid XML

Valid XML

0.006
ContinuityOfCareDocumentTesttestGetAdvanceDirectivesSectionSuccessInvalid XML

Valid XML

0.005
ContinuityOfCareDocumentTesttestGetPayersSectionSuccessInvalid XML

Valid XML

0.005
ContinuityOfCareDocumentTesttestGetPurposeSectionSuccessInvalid XML

Valid XML

0.006
CoverageActivityTesttestConstructorSuccessInvalid XML

Valid XML

0.001
CoverageActivityTesttestValidateCoverageActivityInformationSourceSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="DEF">
<templateId root="2.16.840.1.113883.10.20.1.20"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment sources"/>
<statusCode code="completed"/>
<informant/>
</act>

0.017
CoverageActivityTesttestValidateCoverageActivitySequenceNumberSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="DEF">
<templateId root="2.16.840.1.113883.10.20.1.20"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment sources"/>
<statusCode code="completed"/>
<entryRelationship>
<sequenceNumber/>
</entryRelationship>
</act>

0.083
CoverageActivityTesttestValidateCoverageActivityTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.60"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment Sources"/>
<statusCode code="completed"/>
</act>

0.004
CoverageActivityTesttestValidateCoverageActivityClassCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.60"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment Sources"/>
<statusCode code="completed"/>
</act>

0.004
CoverageActivityTesttestValidateCoverageActivityMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.60"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment Sources"/>
<statusCode code="completed"/>
</act>

0.004
CoverageActivityTesttestValidateCoverageActivityIdSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.60"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment Sources"/>
<statusCode code="completed"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.60"/>
<id/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment Sources"/>
<statusCode code="completed"/>
</act>

0.007
CoverageActivityTesttestValidateCoverageActivityStatusCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.60"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment Sources"/>
<statusCode code="completed"/>
</act>

0.013
CoverageActivityTesttestValidateCoverageActivityCodeSuccessInvalid XML


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

Valid XML


<act xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.60"/>
<code xsi:type="CE" code="48768-6" codeSystem="2.16.840.1.113883.6.1"/>
<statusCode code="completed"/>
</act>

0.013
CoverageActivityTesttestValidateCoverageActivityPolicyActivitySuccessInvalid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.60"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment Sources"/>
<statusCode code="completed"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.60"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment Sources"/>
<statusCode code="completed"/>
<entryRelationship typeCode="COMP">
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.61"/>
<code codeSystemName=""/>
<statusCode code="completed"/>
</act>
</entryRelationship>
</act>

0.010
CoverageActivityTesttestGetPolicyActivitiesSuccessInvalid XML

Valid XML

0.005
CoveragePlanDescriptionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
CoveragePlanDescriptionTesttestValidateCoveragePlanDescriptionClassCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="DEF"/>

0.005
CoveragePlanDescriptionTesttestValidateCoveragePlanDescriptionIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="DEF">
<id/>
</act>

0.007
CoveragePlanDescriptionTesttestValidateCoveragePlanDescriptionMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="DEF"/>

0.003
CoveredPartyTesttestConstructorSuccessInvalid XML

Valid XML

0.001
CoveredPartyTesttestValidateCoveredPartyIdSuccessInvalid XML


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

Valid XML


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

0.006
CoveredPartyTesttestValidateCoveredPartyCodeSuccessInvalid XML


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

Valid XML


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

0.029
EncounterLocationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
EncounterLocationTesttestValidateEncounterLocationHasParticipantRoleSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
<participantRole/>
</participant2>

0.003
EncounterLocationTesttestValidateEncounterLocationHasParticipantRoleLocationSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
<participantRole classCode="SDLOC"/>
</participant2>

0.003
EncounterLocationTesttestValidateEncounterLocationHasParticipantRoleCodeSuccessInvalid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
<participantRole/>
</participant2>

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
<templateId root="2.16.840.1.113883.10.20.1.45"/>
<participantRole>
<code/>
</participantRole>
</participant2>

0.004
EncounterLocationTesttestValidateEncounterLocationHasParticipantRoleCodeVocabSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
<participantRole>
<code codeSystem="2.16.840.1.113883.5.111"/>
</participantRole>
</participant2>

0.003
EncounterLocationTesttestValidateEncounterLocationHasPlayingEntitySuccessInvalid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
<participantRole/>
</participant2>

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
<templateId root="2.16.840.1.113883.10.20.1.45"/>
<participantRole>
<playingEntity/>
</participantRole>
</participant2>

0.004
EncounterLocationTesttestValidateEncounterLocationHasPlayingEntityPlaceSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
<participantRole>
<playingEntity classCode="PLC"/>
</participantRole>
</participant2>

0.004
EncounterLocationTesttestValidateEncounterLocationTemplateIdSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
</participant2>

0.003
EncounterLocationTesttestValidateEncounterLocationTypeCodeSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
</participant2>

0.002
EncountersActivityTesttestConstructorSuccessInvalid XML

Valid XML

0.000
EncountersActivityTesttestValidateEncountersActivityHasIndicationsSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.21"/>
<entryRelationship typeCode="RSON"/>
</encounter>

0.015
EncountersActivityTesttestValidateEncountersActivityHasPractitionersSuccessInvalid XML


Skip Fail Test

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.21"/>
</encounter>

0.005
EncountersActivityTesttestValidateEncountersActivityPractitionerRoleSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.21"/>
<performer>
<assignedEntity>
<code/>
</assignedEntity>
</performer>
</encounter>

0.006
EncountersActivityTesttestValidateEncountersActivityTemplateIdSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.14"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.14"/>
<templateId root="2.16.840.1.113883.10.20.1.21"/>
<code codeSystem="2.16.840.1.113883.5.4" codeSystemName="ActEncounterCode"/>
</encounter>

0.004
EncountersActivityTesttestValidateEncountersActivityClassCodeSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.21"/>
</encounter>

0.003
EncountersActivityTesttestValidateEncountersActivityMoodCodeSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.21"/>
</encounter>

0.003
EncountersActivityTesttestValidateEncountersActivityIdSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.21"/>
<id/>
</encounter>

0.007
EncountersActivityTesttestValidateEncountersActivityEffectiveTimeSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.21"/>
<effectiveTime/>
</encounter>

0.008
EncountersActivityTesttestValidateEncountersActivityPatientInstructionSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.21"/>
<entryRelationship>
<act/>
</entryRelationship>
</encounter>

0.008
EncountersActivityTesttestValidateEncountersActivityAgeObservationSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.21"/>
<entryRelationship typeCode="SUBJ">
<observation/>
</entryRelationship>
</encounter>

0.010
EncountersActivityTesttestValidateEncountersActivityEncounterLocationSuccessInvalid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.21"/>
</encounter>

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.21"/>
<participant typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
</participant>
</encounter>

0.007
EncountersActivityTesttestGetPatientInstructionsSuccessInvalid XML

Valid XML

0.007
EncountersActivityTesttestGetAgeObservationSuccessInvalid XML

Valid XML

0.007
EncountersSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
EncountersSectionTesttestValidateEncountersSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.3"/>
<code code="46240-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of encounters"/>
</section>

0.005
EncountersSectionTesttestValidateEncountersSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.22.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.22"/>
<code code="46240-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Encounters"/>
</section>

0.014
EncountersSectionTesttestValidateEncountersSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.22.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.22"/>
<code code="46240-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Encounters"/>
<title>title</title>
</section>

0.008
EncountersSectionTesttestValidateEncountersSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.22.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.22"/>
<code code="46240-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Encounters"/>
<text/>
</section>

0.005
EncountersSectionTesttestValidateEncountersSectionEncountersActivitySuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.3"/>
<code code="46240-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of encounters"/>
<entry>
<encounter/>
</entry>
</section>

0.007
EncountersSectionTesttestGetEncountersActivitiesSuccessInvalid XML

Valid XML

0.009
EpisodeObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.000
EpisodeObservationTesttestValidateEpisodeObservationOneEntryRelationshipSUBJSuccessInvalid 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.41"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<entryRelationship typeCode="SUBJ">
<act/>
</entryRelationship>
</observation>

0.011
EpisodeObservationTesttestValidateEpisodeObservationExistsEntryRelationshipSASSuccessInvalid 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.41"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<entryRelationship typeCode="SAS">
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
</act>
</entryRelationship>
</observation>

0.011
EpisodeObservationTesttestValidateEpisodeObservationTemplateIdSuccessInvalid 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.41"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

0.005
EpisodeObservationTesttestValidateEpisodeObservationClassCodeSuccessInvalid 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.41"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

0.004
EpisodeObservationTesttestValidateEpisodeObservationMoodCodeSuccessInvalid 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.41"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

0.004
EpisodeObservationTesttestValidateEpisodeObservationStatusCodeSuccessInvalid 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.41"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

0.014
EpisodeObservationTesttestValidateEpisodeObservationCodeSuccessInvalid 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.41"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
<statusCode code="completed"/>
</observation>

0.014
EpisodeObservationTesttestValidateEpisodeObservationValueSuccessInvalid 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.41"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD" code="404684003" codeSystem="2.16.840.1.113883.6.96"/>
</observation>

0.018
FamilyHistoryCauseOfDeathObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
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
FamilyHistoryCauseOfDeathObservationTesttestGetCauseOfDeathObservationsSuccessInvalid XML

Valid XML

0.000
FamilyHistoryCauseOfDeathObservationTesttestValidateFamilyHistoryObservationTemplateIdSuccessInvalid 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.22.4.46"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.004
FamilyHistoryObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
FamilyHistoryObservationTesttestGetAgeObservationSuccessInvalid XML

Valid XML

0.007
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationTemplateIdSuccessInvalid 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.22.4.46"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.005
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationHasSubjectPatientRelationshipSuccessInvalid XML


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

Valid XML


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

0.056
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationRelationshipValueCodeSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.22"/>
<statusCode code="completed"/>
<subject>
<relatedSubject classCode="PAT"/>
</subject>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.22"/>
<statusCode code="completed"/>
<subject>
<relatedSubject classCode="PRS"/>
</subject>
</observation>

0.007
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationHasRelatedSubjectCodeSuccessInvalid XML


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

Valid XML


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

0.009
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationRelatedSubjectCodeValueSetSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.22"/>
<statusCode code="completed"/>
<subject>
<relatedSubject>
<code codeSystem="2.16.840.1.113883.5.111"/>
</relatedSubject>
</subject>
</observation>

0.008
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationHasRelatedSubjectSubjectSuccessInvalid XML


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

Valid XML


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

0.010
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationHasGenderCodeSuccessInvalid XML


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

Valid XML


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

0.009
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationRelatedSubjectBirthTimeSuccessInvalid XML


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

Valid XML


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

0.006
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationIdSuccessInvalid 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.22.4.46"/>
<id/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.009
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationStatusCodeSuccessInvalid 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.22.4.46"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.014
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationEffectiveTimeSuccessInvalid 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.22.4.46"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<effectiveTime/>
</observation>

0.009
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationMoodCodeSuccessInvalid 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.22.4.46"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.007
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationAgeObservationSuccessInvalid 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.22.4.46"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<entryRelationship typeCode="SUBJ">
<observation/>
</entryRelationship>
</observation>

0.008
FamilyHistoryObservationTesttestValidateFamilyHistoryObservationProblemStatusObservationSuccessInvalid XML


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

Valid XML


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

0.009
FamilyHistoryObservationTesttestGetProblemStatusObservationSuccessInvalid XML

Valid XML

0.006
FamilyHistoryOrganizerTesttestConstructorSuccessInvalid XML

Valid XML

0.000
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerHasComponentSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<component>
<observation/>
</component>
</organizer>

0.056
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerHasFamilyHistoryObservationSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<component>
<observation/>
</component>
</organizer>

0.005
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerHasSubjectSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject/>
</organizer>

0.005
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerHasSubjectPatientRelationshipSuccessInvalid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject/>
</organizer>

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject>
<relatedSubject/>
</subject>
</organizer>

0.005
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerRelationshipValueCodeSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject>
<relatedSubject classCode="PRS"/>
</subject>
</organizer>

0.004
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerHasRelatedSubjectCodeSuccessInvalid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject>
<relatedSubject/>
</subject>
</organizer>

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject>
<relatedSubject>
<code/>
</relatedSubject>
</subject>
</organizer>

0.006
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerRelatedSubjectCodeValueSetSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject>
<relatedSubject>
<code codeSystem="2.16.840.1.113883.1.11.19579"/>
</relatedSubject>
</subject>
</organizer>

0.008
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerHasRelatedSubjectSubjectSuccessInvalid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject>
<relatedSubject/>
</subject>
</organizer>

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject>
<relatedSubject>
<subject/>
</relatedSubject>
</subject>
</organizer>

0.006
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerHasGenderCodeSuccessInvalid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject>
<relatedSubject>
<subject/>
</relatedSubject>
</subject>
</organizer>

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject>
<relatedSubject>
<subject>
<administrativeGenderCode/>
</subject>
</relatedSubject>
</subject>
</organizer>

0.006
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerRelatedSubjectBirthTimeSuccessInvalid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject>
<relatedSubject>
<subject/>
</relatedSubject>
</subject>
</organizer>

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
<subject>
<relatedSubject>
<subject>
<birthTime/>
</subject>
</relatedSubject>
</subject>
</organizer>

0.006
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerTemplateIdSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.45"/>
</organizer>

0.004
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerStatusCodeSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.23"/>
<statusCode code="completed"/>
</organizer>

0.013
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerClassCodeSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.45"/>
</organizer>

0.003
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerMoodCodeSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.45"/>
</organizer>

0.003
FamilyHistoryOrganizerTesttestValidateFamilyHistoryOrganizerFamilyHistoryObservationSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.45"/>
<component>
<observation/>
</component>
</organizer>

0.007
FamilyHistoryOrganizerTesttestGetFamilyHistoryObservationsSuccessInvalid XML

Valid XML

0.006
FamilyHistorySectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
FamilyHistorySectionTesttestValidateFamilyHistorySectionFamilyHistoryObsOrgsSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.4"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of family member diseases"/>
<entry>
<organizer/>
</entry>
</section>

0.009
FamilyHistorySectionTesttestValidateFamilyHistorySectionNoSubjectSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.4"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of family member diseases"/>
<subject/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.4"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of family member diseases"/>
</section>

0.004
FamilyHistorySectionTesttestValidateFamilyHistorySectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.15"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Family History"/>
</section>

0.004
FamilyHistorySectionTesttestValidateFamilyHistorySectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.15"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Family History"/>
</section>

0.015
FamilyHistorySectionTesttestValidateFamilyHistorySectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.15"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Family History"/>
<title>title</title>
</section>

0.008
FamilyHistorySectionTesttestValidateFamilyHistorySectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.15"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Family History"/>
<text/>
</section>

0.004
FamilyHistorySectionTesttestValidateFamilyHistorySectionFamilyHistoryOrganizerSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.4"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of family member diseases"/>
<entry>
<organizer/>
</entry>
</section>

0.006
FamilyHistorySectionTesttestGetFamilyHistoryOrganizersSuccessInvalid XML

Valid XML

0.006
FulfillmentInstructionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
FulfillmentInstructionTesttestValidateFulfillmentInstructionTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.43"/>
</act>

0.005
FulfillmentInstructionTesttestValidateFulfillmentInstructionMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.43"/>
</act>

0.003
FunctionalStatusObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
FunctionalStatusObservationTesttestValidateStatusObservationTemplateIdSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.006
FunctionalStatusSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.000
FunctionalStatusSectionTesttestValidateFunctionalStatusSectionClinicalStatementsSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<act/>
</entry>
</section>

0.009
FunctionalStatusSectionTesttestValidateFunctionalStatusSectionObservationCodeSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

Valid XML


<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation>
<code xsi:type="CE"/>
</observation>
</entry>
</section>

0.010
FunctionalStatusSectionTesttestValidateFunctionalStatusSectionObservationCodeValueSetSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

Valid XML


<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation>
<code xsi:type="CE" codeSystem="2.16.840.1.113883.6.96"/>
</observation>
</entry>
</section>

0.009
FunctionalStatusSectionTesttestValidateFunctionalStatusSectionValueDatatypeSuccessInvalid XML


<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3">
<entry>
<observation>
<value xsi:type="ED"/>
</observation>
</entry>
</section>

Valid XML


<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation>
<value xsi:type="CE"/>
<value xsi:type="CD"/>
</observation>
</entry>
</section>

0.009
FunctionalStatusSectionTesttestValidateFunctionalStatusSectionIcfCodeSystemSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation>
<code codeSystem="fffff"/>
</observation>
</entry>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation>
<code codeSystem="2.16.840.1.113883.6.254"/>
</observation>
</entry>
</section>

0.008
FunctionalStatusSectionTesttestValidateFunctionalStatusSectionProblemStatusObservationSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation>
<entryRelationship>
<observation/>
</entryRelationship>
</observation>
</entry>
</section>

0.011
FunctionalStatusSectionTesttestValidateFunctionalStatusSectionResultStatusObservationSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation/>
</entry>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.5"/>
<code code="47420-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Functional status assessment"/>
<entry>
<observation>
<entryRelationship>
<observation/>
</entryRelationship>
</observation>
</entry>
</section>

0.012
FunctionalStatusSectionTesttestValidateFunctionalStatusSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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>

0.004
FunctionalStatusSectionTesttestValidateFunctionalStatusSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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>

0.015
FunctionalStatusSectionTesttestValidateFunctionalStatusSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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"/>
<title>title</title>
</section>

0.008
FunctionalStatusSectionTesttestValidateFunctionalStatusSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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"/>
<text/>
</section>

0.004
ImmunizationsSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ImmunizationsSectionTesttestValidateImmunizationsSectionHasMedicationOrSupplyActivitySuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
<entry>
<substanceAdministration>
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
</substanceAdministration>
</entry>
<entry>
<supply>
<templateId root="2.16.840.1.113883.10.20.1.34"/>
</supply>
</entry>
</section>

0.017
ImmunizationsSectionTesttestValidateImmunizationsSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
</section>

0.004
ImmunizationsSectionTesttestValidateImmunizationsSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.2.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.2"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</section>

0.015
ImmunizationsSectionTesttestValidateImmunizationsSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.2.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.2"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<title>title</title>
</section>

0.008
ImmunizationsSectionTesttestValidateImmunizationsSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.2.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.2"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<text/>
</section>

0.004
ImmunizationsSectionTesttestValidateImmunizationsSectionMedicationActivitySuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
<entry>
<substanceAdministration>
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
</substanceAdministration>
</entry>
</section>

0.008
ImmunizationsSectionTesttestValidateImmunizationsSectionSupplyActivitySuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
<entry>
<supply>
<templateId root="2.16.840.1.113883.10.20.1.34"/>
</supply>
</entry>
</section>

0.008
ImmunizationsSectionTesttestGetMedicationActivitiesSuccessInvalid XML

Valid XML

0.006
ImmunizationsSectionTesttestGetSupplyActivitiesSuccessInvalid XML

Valid XML

0.006
MedicalEquipmentSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
MedicalEquipmentSectionTesttestGetMedicationActivitiesSuccessInvalid XML

Valid XML

0.006
MedicalEquipmentSectionTesttestGetSupplyActivitiesSuccessInvalid XML

Valid XML

0.008
MedicalEquipmentSectionTesttestValidateMedicalEquipmentSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.23"/>
<code code="46264-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medical Equipment"/>
</section>

0.005
MedicalEquipmentSectionTesttestValidateMedicalEquipmentSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.23"/>
<code code="46264-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medical Equipment"/>
</section>

0.015
MedicalEquipmentSectionTesttestValidateMedicalEquipmentSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.23"/>
<code code="46264-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medical Equipment"/>
<title>title</title>
</section>

0.008
MedicalEquipmentSectionTesttestValidateMedicalEquipmentSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.23"/>
<code code="46264-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medical Equipment"/>
<text/>
</section>

0.004
MedicalEquipmentSectionTesttestValidateMedicalEquipmentSectionSupplyActivitySuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.7"/>
<code code="46264-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medical device use"/>
<entry>
<supply/>
</entry>
</section>

0.008
MedicalEquipmentSectionTesttestValidateMedicalEquipmentSectionMedicationActivitySuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.7"/>
<code code="46264-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medical device use"/>
<entry>
<substanceAdministration/>
</entry>
</section>

0.007
MedicationActivityTesttestConstructorSuccessInvalid XML

Valid XML

0.001
MedicationActivityTesttestGetReactionObservationsSuccessInvalid XML

Valid XML

0.007
MedicationActivityTesttestGetPatientInstructionsSuccessInvalid XML

Valid XML

0.006
MedicationActivityTesttestValidateMedicationActivityMoodCodeSuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3" moodCode="RQO"/>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

0.006
MedicationActivityTesttestValidateMedicationActivityHasDoseQuantityOrRateQuantitySuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<rateQuantity/>
</substanceadministration>

0.011
MedicationActivityTesttestValidateMedicationActivityHasConsentsSuccessInvalid XML


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

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">
<authorization>
<consent>
<code/>
</consent>
</authorization>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.8"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
<entry>
<substanceAdministration classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
</substanceAdministration>
</entry>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.069
MedicationActivityTesttestValidateMedicationActivityInformationSourceSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<informant/>
</substanceadministration>

0.018
MedicationActivityTesttestValidateMedicationActivityHasPreconditionCriterionSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<precondition>
<criterion/>
</precondition>
</substanceadministration>

0.064
MedicationActivityTesttestValidateMedicationActivityHasReasonSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<entryRelationship typeCode="RSON"/>
</substanceadministration>

0.004
MedicationActivityTesttestValidateMedicationActivityHasReasonProblemSuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<entryRelationship typeCode="RSON">
<observation/>
</entryRelationship>
</substanceadministration>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<entryRelationship typeCode="RSON">
<act/>
</entryRelationship>
</substanceadministration>

0.009
MedicationActivityTesttestValidateMedicationActivityHasProductSuccessInvalid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<consumable>
<manufacturedProduct/>
</consumable>
</substanceadministration>

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<consumable>
<manufacturedProduct/>
</consumable>
</substanceadministration>

0.009
MedicationActivityTesttestValidateMedicationActivityTemplateIdSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

0.005
MedicationActivityTesttestValidateMedicationActivityIdSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<id/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

0.009
MedicationActivityTesttestValidateMedicationActivityStatusCodeSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<statusCode code="completed"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

0.010
MedicationActivityTesttestValidateMedicationActivityEffectiveTimeSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<effectiveTime xsi:type="IVL_TS"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
</substanceadministration>

0.011
MedicationActivityTesttestValidateMedicationActivityMaxDoseQuantitySuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<maxDoseQuantity/>
</substanceadministration>

0.038
MedicationActivityTesttestValidateMedicationActivityRouteCodeSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode code="C38194" codeSystem="2.16.840.1.113883.3.26.1.1"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceadministration>

0.014
MedicationActivityTesttestValidateMedicationActivityDoseQuantitySuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<doseQuantity/>
</substanceadministration>

0.010
MedicationActivityTesttestValidateMedicationActivityRateQuantitySuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<rateQuantity/>
</substanceadministration>

0.009
MedicationActivityTesttestValidateMedicationActivityMedicationSeriesNumberObservationSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<entryRelationship typeCode="SUBJ">
<observation/>
</entryRelationship>
</substanceadministration>

0.011
MedicationActivityTesttestValidateMedicationActivityMedicationStatusObservationSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<entryRelationship>
<observation/>
</entryRelationship>
</substanceadministration>

0.009
MedicationActivityTesttestValidateMedicationActivityPatientInstructionSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<entryRelationship typeCode="SUBJ">
<act/>
</entryRelationship>
</substanceadministration>

0.009
MedicationActivityTesttestValidateMedicationActivityPerformerSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<performer/>
</substanceadministration>

0.007
MedicationActivityTesttestValidateMedicationActivityReactionObservationSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<entryRelationship typeCode="CAUS">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.9"/>
<statusCode code="completed"/>
</observation>
</entryRelationship>
</substanceadministration>

0.010
MedicationActivityTesttestValidateMedicationActivityProductInstanceSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.24"/>
<routeCode codeSystem="2.16.840.1.113883.5.112" codeSystemName="HL7 RouteOfAdministration"/>
<participant>
<participantRole/>
</participant>
</substanceadministration>

0.009
MedicationActivityTesttestGetMedicationSeriesNumberObservationSuccessInvalid XML

Valid XML

0.008
MedicationActivityTesttestGetMedicationStatusObservationSuccessInvalid XML

Valid XML

0.007
MedicationActivityTesttestGetProductInstancesSuccessInvalid XML

Valid XML

0.230
MedicationSeriesNumberObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
MedicationSeriesNumberObservationTesttestValidateMedicationSeriesNumberObservationTemplateIdSuccessInvalid 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.46"/>
<code code="30973-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Dose number"/>
</observation>

0.006
MedicationSeriesNumberObservationTesttestValidateMedicationSeriesNumberObservationClassCodeSuccessInvalid 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.46"/>
<code code="30973-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Dose number"/>
</observation>

0.003
MedicationSeriesNumberObservationTesttestValidateMedicationSeriesNumberObservationMoodCodeSuccessInvalid 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.46"/>
<code code="30973-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Dose number"/>
</observation>

0.003
MedicationSeriesNumberObservationTesttestValidateMedicationSeriesNumberObservationStatusCodeSuccessInvalid 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.46"/>
<code code="30973-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Dose number"/>
<statusCode code="completed"/>
</observation>

0.011
MedicationSeriesNumberObservationTesttestValidateMedicationSeriesNumberObservationCodeSuccessInvalid 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.46"/>
<code code="30973-2" codeSystem="2.16.840.1.113883.6.1"/>
</observation>

0.017
MedicationSeriesNumberObservationTesttestValidateMedicationSeriesNumberObservationValueSuccessInvalid 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.46"/>
<code code="30973-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Dose number"/>
<value xsi:type="INT"/>
</observation>

0.012
MedicationStatusObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
MedicationStatusObservationTesttestValidateStatusObservationTemplateIdSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.006
MedicationsSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.000
MedicationsSectionTesttestGetMedicationActivitiesSuccessInvalid XML

Valid XML

0.007
MedicationsSectionTesttestGetSupplyActivitiesSuccessInvalid XML

Valid XML

0.008
MedicationsSectionTesttestValidateMedicationsSectionHasMedicationOrSupplyActivitySuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.8"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
<entry>
<substanceAdministration/>
</entry>
<entry>
<supply/>
</entry>
</section>

0.009
MedicationsSectionTesttestValidateMedicationsSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.8"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
</section>

0.004
MedicationsSectionTesttestValidateMedicationsSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.1"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
</section>

0.016
MedicationsSectionTesttestValidateMedicationsSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.1"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
<title>Medications</title>
</section>

0.009
MedicationsSectionTesttestValidateMedicationsSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.1"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
<text/>
</section>

0.004
MedicationsSectionTesttestValidateMedicationsSectionMedicationActivitySuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.8"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
<entry>
<substanceAdministration/>
</entry>
</section>

0.008
MedicationsSectionTesttestValidateMedicationsSectionSupplyActivitySuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.8"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
<entry>
<supply/>
</entry>
</section>

0.008
PatientAwarenessTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PatientAwarenessTesttestValidatePatientAwarenessParticipantRoleIdSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="SBJ">
<templateId root="2.16.840.1.113883.10.20.1.48"/>
<participantRole>
<id root="s"/>
</participantRole>
</participant2>

0.004
PatientAwarenessTesttestValidatePatientAwarenessTemplateIdSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="SBJ">
<templateId root="2.16.840.1.113883.10.20.1.48"/>
</participant2>

0.003
PatientAwarenessTesttestValidatePatientAwarenessTypeCodeSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="SBJ">
<templateId root="2.16.840.1.113883.10.20.1.48"/>
</participant2>

0.002
PatientAwarenessTesttestValidatePatientAwarenessAwarenessCodeSuccessInvalid XML


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

Valid XML


<participant2 xmlns="urn:hl7-org:v3" typeCode="SBJ">
<templateId root="2.16.840.1.113883.10.20.1.48"/>
<awarenessCode/>
</participant2>

0.003
PatientInstructionTesttestConstructorSuccessInvalid XML

Valid XML

0.000
PatientInstructionTesttestValidatePatientInstructionTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.49"/>
</act>

0.005
PatientInstructionTesttestValidatePatientInstructionMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.49"/>
</act>

0.004
PayerEntityTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PayerEntityTesttestValidatePayerEntityIdSuccessInvalid XML


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

Valid XML


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

0.005
PayersSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.000
PayersSectionTesttestValidatePayersSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
</section>

0.005
PayersSectionTesttestValidatePayersSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
</section>

0.016
PayersSectionTesttestValidatePayersSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
<title>title</title>
</section>

0.008
PayersSectionTesttestValidatePayersSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
<text/>
</section>

0.004
PayersSectionTesttestValidatePayersSectionCoverageActivitySuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.18"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payers"/>
<entry>
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.60"/>
<code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment Sources"/>
<statusCode code="completed"/>
</act>
</entry>
</section>

0.007
PayersSectionTesttestGetCoverageActivitiesSuccessInvalid XML

Valid XML

0.008
PlanOfCareActivityActTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PlanOfCareActivityActTesttestValidatePlanOfCareActivityActMoodCodeValueSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.25"/>
</act>

0.012
PlanOfCareActivityActTesttestValidatePlanOfCareActivityActTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT">
<templateId root="2.16.840.1.113883.10.20.22.4.39"/>
</act>

0.004
PlanOfCareActivityActTesttestValidatePlanOfCareActivityActIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT">
<templateId root="2.16.840.1.113883.10.20.22.4.39"/>
<id/>
</act>

0.009
PlanOfCareActivityActTesttestValidatePlanOfCareActivityActMoodCodeSuccessInvalid XML


Skip Fail Test

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.39"/>
</act>

0.003
PlanOfCareActivityEncounterTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PlanOfCareActivityEncounterTesttestValidatePlanOfCareActivityEncounterMoodCodeValueSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.25"/>
</encounter>

0.012
PlanOfCareActivityEncounterTesttestValidatePlanOfCareActivityEncounterTemplateIdSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC">
<templateId root="2.16.840.1.113883.10.20.22.4.40"/>
</encounter>

0.004
PlanOfCareActivityEncounterTesttestValidatePlanOfCareActivityEncounterIdSuccessInvalid XML


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

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC">
<templateId root="2.16.840.1.113883.10.20.22.4.40"/>
<id/>
</encounter>

0.009
PlanOfCareActivityEncounterTesttestValidatePlanOfCareActivityEncounterMoodCodeSuccessInvalid XML


Skip Fail Test

Valid XML


<encounter xmlns="urn:hl7-org:v3" classCode="ENC" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.40"/>
</encounter>

0.004
PlanOfCareActivityObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PlanOfCareActivityObservationTesttestValidatePlanOfCareActivityObservationMoodCodeValueSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.25"/>
</observation>

0.012
PlanOfCareActivityObservationTesttestValidatePlanOfCareActivityObservationTemplateIdSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS">
<templateId root="2.16.840.1.113883.10.20.22.4.44"/>
</observation>

0.005
PlanOfCareActivityObservationTesttestValidatePlanOfCareActivityObservationIdSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS">
<templateId root="2.16.840.1.113883.10.20.22.4.44"/>
<id/>
</observation>

0.009
PlanOfCareActivityObservationTesttestValidatePlanOfCareActivityObservationMoodCodeSuccessInvalid XML


Skip Fail Test

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.44"/>
</observation>

0.004
PlanOfCareActivityProcedureTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PlanOfCareActivityProcedureTesttestValidatePlanOfCareActivityProcedureMoodCodeValueSuccessInvalid XML


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

Valid XML


<procedure xmlns="urn:hl7-org:v3" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.25"/>
</procedure>

0.012
PlanOfCareActivityProcedureTesttestValidatePlanOfCareActivityProcedureTemplateIdSuccessInvalid XML


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

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.41"/>
</procedure>

0.004
PlanOfCareActivityProcedureTesttestValidatePlanOfCareActivityProcedureIdSuccessInvalid XML


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

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.41"/>
<id/>
</procedure>

0.009
PlanOfCareActivityProcedureTesttestValidatePlanOfCareActivityProcedureMoodCodeSuccessInvalid XML


Skip Fail Test

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.41"/>
</procedure>

0.004
PlanOfCareActivitySubstanceAdministrationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PlanOfCareActivitySubstanceAdministrationTesttestValidatePlanOfCareActivitySubstanceAdministrationMoodCodeValueSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.25"/>
</substanceadministration>

0.011
PlanOfCareActivitySubstanceAdministrationTesttestValidatePlanOfCareActivitySubstanceAdministrationTemplateIdSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.42"/>
</substanceadministration>

0.004
PlanOfCareActivitySubstanceAdministrationTesttestValidatePlanOfCareActivitySubstanceAdministrationIdSuccessInvalid XML


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

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.42"/>
<id/>
</substanceadministration>

0.009
PlanOfCareActivitySubstanceAdministrationTesttestValidatePlanOfCareActivitySubstanceAdministrationMoodCodeSuccessInvalid XML


Skip Fail Test

Valid XML


<substanceadministration xmlns="urn:hl7-org:v3" classCode="SBADM" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.42"/>
</substanceadministration>

0.004
PlanOfCareActivitySupplyTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PlanOfCareActivitySupplyTesttestValidatePlanOfCareActivitySupplyMoodCodeValueSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.25"/>
</supply>

0.010
PlanOfCareActivitySupplyTesttestValidatePlanOfCareActivitySupplyTemplateIdSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3" classCode="SPLY">
<templateId root="2.16.840.1.113883.10.20.22.4.43"/>
</supply>

0.004
PlanOfCareActivitySupplyTesttestValidatePlanOfCareActivitySupplyIdSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3" classCode="SPLY">
<templateId root="2.16.840.1.113883.10.20.22.4.43"/>
<id/>
</supply>

0.009
PlanOfCareActivitySupplyTesttestValidatePlanOfCareActivitySupplyMoodCodeSuccessInvalid XML


Skip Fail Test

Valid XML


<supply xmlns="urn:hl7-org:v3" classCode="SPLY" moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.22.4.43"/>
</supply>

0.004
PlanOfCareActivityTesttestNoOperationsSuccessInvalid XML

Valid XML

0.000
PlanOfCareSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PlanOfCareSectionTesttestValidatePlanOfCareSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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>

0.004
PlanOfCareSectionTesttestValidatePlanOfCareSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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>

0.016
PlanOfCareSectionTesttestValidatePlanOfCareSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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"/>
<title>title</title>
</section>

0.009
PlanOfCareSectionTesttestValidatePlanOfCareSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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"/>
<text/>
</section>

0.005
PlanOfCareSectionTesttestValidatePlanOfCareSectionPlanOfCareActivityActSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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"/>
<entry>
<act/>
</entry>
</section>

0.008
PlanOfCareSectionTesttestValidatePlanOfCareSectionPlanOfCareActivityEncounterSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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"/>
<entry>
<encounter/>
</entry>
</section>

0.008
PlanOfCareSectionTesttestValidatePlanOfCareSectionPlanOfCareActivityObservationSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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"/>
<entry>
<observation/>
</entry>
</section>

0.008
PlanOfCareSectionTesttestValidatePlanOfCareSectionPlanOfCareActivityProcedureSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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"/>
<entry>
<procedure/>
</entry>
</section>

0.008
PlanOfCareSectionTesttestValidatePlanOfCareSectionPlanOfCareActivitySubstanceAdministrationSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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"/>
<entry>
<substanceAdministration/>
</entry>
</section>

0.008
PlanOfCareSectionTesttestValidatePlanOfCareSectionPlanOfCareActivitySupplySuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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"/>
<entry>
<supply/>
</entry>
</section>

0.008
PlanOfCareSectionTesttestGetPlanOfCareActivitiesErrorInvalid XML

Valid XML

N/A

java.lang.UnsupportedOperationException
at org.openhealthtools.mdht.uml.cda.ccd.operations.PlanOfCareSectionOperations.getPlanOfCareActivities(PlanOfCareSectionOperations.java:672)
at org.openhealthtools.mdht.uml.cda.ccd.impl.PlanOfCareSectionImpl.getPlanOfCareActivities(PlanOfCareSectionImpl.java:168)
at org.openhealthtools.mdht.uml.cda.ccd.tests.PlanOfCareSectionTest.testGetPlanOfCareActivities(PlanOfCareSectionTest.java:414)
0.000
PlanOfCareSectionTesttestGetPlanOfCareActivityActSuccessInvalid XML

Valid XML

0.008
PlanOfCareSectionTesttestGetPlanOfCareActivityEncounterSuccessInvalid XML

Valid XML

0.008
PlanOfCareSectionTesttestGetPlanOfCareActivityObservationSuccessInvalid XML

Valid XML

0.008
PlanOfCareSectionTesttestGetPlanOfCareActivityProcedureSuccessInvalid XML

Valid XML

0.012
PlanOfCareSectionTesttestGetPlanOfCareActivitySubstanceAdministrationSuccessInvalid XML

Valid XML

0.009
PlanOfCareSectionTesttestGetPlanOfCareActivitySupplySuccessInvalid XML

Valid XML

0.008
PolicyActivityTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PolicyActivityTesttestValidatePolicyActivityPayerEntityIsRequiredSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.26"/>
<statusCode code="completed"/>
<performer typeCode="PRF"/>
</act>

0.005
PolicyActivityTesttestValidatePolicyActivityCoveredPartyIsRequiredSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.26"/>
<statusCode code="completed"/>
<participant typeCode="COV"/>
</act>

0.004
PolicyActivityTesttestValidatePolicyActivityCoveredPartyTimeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.26"/>
<statusCode code="completed"/>
<participant typeCode="COV">
<time/>
</participant>
</act>

0.007
PolicyActivityTesttestValidatePolicyActivitySubscriberIsAllowedSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.26"/>
<statusCode code="completed"/>
<participant typeCode="HLD"/>
</act>

0.005
PolicyActivityTesttestValidatePolicyActivitySubscriberTimeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.26"/>
<statusCode code="completed"/>
<participant typeCode="HLD">
<time/>
</participant>
</act>

0.008
PolicyActivityTesttestValidatePolicyActivityEntryRelationshipREFRSuccessInvalid XML


<act xmlns="urn:hl7-org:v3">
<entryRelationship typeCode="COMP"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.26"/>
<statusCode code="completed"/>
<entryRelationship typeCode="REFR"/>
</act>

0.005
PolicyActivityTesttestValidatePolicyActivityEntryRelationshipTargetSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.26"/>
<statusCode code="completed"/>
<entryRelationship>
<act/>
</entryRelationship>
</act>

0.008
PolicyActivityTesttestValidatePolicyActivityTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.61"/>
<code codeSystemName=""/>
<statusCode code="completed"/>
</act>

0.004
PolicyActivityTesttestValidatePolicyActivityClassCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.61"/>
<code codeSystemName=""/>
<statusCode code="completed"/>
</act>

0.004
PolicyActivityTesttestValidatePolicyActivityMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.61"/>
<code codeSystemName=""/>
<statusCode code="completed"/>
</act>

0.039
PolicyActivityTesttestValidatePolicyActivityIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.61"/>
<id root="12345678-0"/>
<code codeSystemName=""/>
<statusCode code="completed"/>
</act>

0.010
PolicyActivityTesttestValidatePolicyActivityStatusCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.61"/>
<code codeSystemName=""/>
<statusCode code="completed"/>
</act>

0.017
PolicyActivityTesttestValidatePolicyActivityPayerEntitySuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.26"/>
<statusCode code="completed"/>
<performer>
<assignedEntity/>
</performer>
</act>

0.009
PolicyActivityTesttestValidatePolicyActivityCoveredPartySuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.26"/>
<statusCode code="completed"/>
<participant>
<participantRole/>
</participant>
</act>

0.008
PolicyActivityTesttestValidatePolicyActivitySubscriberSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.26"/>
<statusCode code="completed"/>
<participant>
<participantRole/>
</participant>
</act>

0.008
PolicyActivityTesttestGetPayerEntitySuccessInvalid XML

Valid XML

0.010
PolicyActivityTesttestGetCoveredPartySuccessInvalid XML

Valid XML

0.009
PolicyActivityTesttestGetSubscriberSuccessInvalid XML

Valid XML

0.009
PolicySubscriberTesttestConstructorSuccessInvalid XML

Valid XML

0.000
PolicySubscriberTesttestValidatePolicySubscriberIdSuccessInvalid XML


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

Valid XML


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

0.004
ProblemActTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ProblemActTesttestValidateProblemActEntryRelationshipRequiredSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
<entryRelationship/>
</act>

0.006
ProblemActTesttestValidateProblemActSubjectOfTargetSuccessInvalid XML


<act xmlns="urn:hl7-org:v3">
<entryRelationship typeCode="SUBJ">
<observation/>
</entryRelationship>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
<entryRelationship typeCode="SUBJ">
<observation/>
</entryRelationship>
</act>

0.010
ProblemActTesttestValidateProblemActContainsProblemObservationSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
<entryRelationship typeCode="SUBJ">
<observation/>
</entryRelationship>
</act>

0.008
ProblemActTesttestValidateProblemActContainsAlertObservationSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
<entryRelationship typeCode="SUBJ">
<observation/>
</entryRelationship>
</act>

0.008
ProblemActTesttestValidateProblemActContainsPatientAwarenessSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
<participant/>
</act>

0.004
ProblemActTesttestValidateProblemActTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
</act>

0.005
ProblemActTesttestValidateProblemActClassCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
</act>

0.015
ProblemActTesttestValidateProblemActMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
</act>

0.003
ProblemActTesttestValidateProblemActIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<id/>
<code nullFlavor="NA"/>
</act>

0.011
ProblemActTesttestValidateProblemActCodeNullFlavorSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
</act>

0.008
ProblemActTesttestValidateProblemActEffectiveTimeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
<effectiveTime/>
</act>

0.010
ProblemActTesttestValidateProblemActEpisodeObservationSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
<entryRelationship>
<observation/>
</entryRelationship>
</act>

0.009
ProblemActTesttestGetEpisodeObservationSuccessInvalid XML

Valid XML

0.008
ProblemHealthStatusObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.000
ProblemHealthStatusObservationTesttestValidateStatusObservationTemplateIdSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.006
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
ProblemObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ProblemObservationTesttestGetAgeObservationSuccessInvalid XML

Valid XML

0.008
ProblemObservationTesttestValidateProblemObservationInformationSourceSuccessInvalid 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.28"/>
<statusCode code="completed"/>
<informant/>
</observation>

0.022
ProblemObservationTesttestValidateProblemObservationContainsPatientAwarenessSuccessInvalid 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.28"/>
<statusCode code="completed"/>
<participant/>
</observation>

0.004
ProblemObservationTesttestValidateProblemObservationTemplateIdSuccessInvalid 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.22.4.4"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.005
ProblemObservationTesttestValidateProblemObservationMoodCodeSuccessInvalid 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.22.4.4"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.008
ProblemObservationTesttestValidateProblemObservationStatusCodeSuccessInvalid 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.22.4.4"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.018
ProblemObservationTesttestValidateProblemObservationEffectiveTimeSuccessInvalid 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.22.4.4"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<effectiveTime/>
</observation>

0.010
ProblemObservationTesttestValidateProblemObservationProblemStatusSuccessInvalid 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.22.4.4"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<entryRelationship typeCode="REFR">
<observation/>
</entryRelationship>
</observation>

0.010
ProblemObservationTesttestValidateProblemObservationProblemHealthStatusSuccessInvalid 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.28"/>
<statusCode code="completed"/>
<entryRelationship typeCode="REFR">
<observation/>
</entryRelationship>
</observation>

0.011
ProblemObservationTesttestValidateProblemObservationAgeObservationSuccessInvalid 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.22.4.4"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<entryRelationship typeCode="SUBJ">
<observation/>
</entryRelationship>
</observation>

0.011
ProblemObservationTesttestGetProblemStatusSuccessInvalid XML

Valid XML

0.008
ProblemObservationTesttestGetProblemHealthStatusSuccessInvalid XML

Valid XML

0.009
ProblemSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.000
ProblemSectionTesttestGetProblemActsSuccessInvalid XML

Valid XML

0.010
ProblemSectionTesttestValidateProblemSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.11"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem list"/>
</section>

0.005
ProblemSectionTesttestValidateProblemSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.5.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.5"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem List"/>
</section>

0.021
ProblemSectionTesttestValidateProblemSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.5.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.5"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem List"/>
<title>title</title>
</section>

0.013
ProblemSectionTesttestValidateProblemSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.5.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.5"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem List"/>
<text/>
</section>

0.005
ProblemSectionTesttestValidateProblemSectionProblemActSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.11"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem list"/>
<entry>
<act/>
</entry>
</section>

0.008
ProblemStatusObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ProblemStatusObservationTesttestValidateStatusObservationTemplateIdSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.007
ProcedureActivityActTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ProcedureActivityActTesttestGetPatientInstructionsSuccessInvalid XML

Valid XML

0.009
ProcedureActivityActTesttestGetAgeObservationSuccessInvalid XML

Valid XML

0.008
ProcedureActivityActTesttestValidateProcedureActivityActTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT">
<templateId root="2.16.840.1.113883.10.20.22.4.12"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
</act>

0.005
ProcedureActivityActTesttestValidateProcedureActivityActMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN"/>

0.007
ProcedureActivityActTesttestValidateProcedureActivityActCodeSuccessInvalid XML


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

Valid XML


<act xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" classCode="ACT">
<templateId root="2.16.840.1.113883.10.20.22.4.12"/>
<code xsi:type="CE"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
</act>

0.009
ProcedureActivityActTesttestValidateProcedureActivityActEffectiveTimeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT">
<templateId root="2.16.840.1.113883.10.20.22.4.12"/>
<effectiveTime/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
</act>

0.011
ProcedureActivityActTesttestValidateProcedureActivityActIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT">
<templateId root="2.16.840.1.113883.10.20.22.4.12"/>
<id/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
</act>

0.010
ProcedureActivityActTesttestValidateProcedureActivityActEncounterLocationSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<participant typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
</participant>
</act>

0.007
ProcedureActivityActTesttestValidateProcedureActivityActPerformer2SuccessInvalid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<performer/>
</act>

0.008
ProcedureActivityActTesttestValidateProcedureActivityActProblemActSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<entryRelationship typeCode="RSON">
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
</act>
</entryRelationship>
</act>

0.011
ProcedureActivityActTesttestValidateProcedureActivityActProblemObservationSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<entryRelationship typeCode="RSON">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.28"/>
<statusCode code="completed"/>
</observation>
</entryRelationship>
</act>

0.011
ProcedureActivityActTesttestValidateProcedureActivityActAgeObservationSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<entryRelationship typeCode="SUBJ">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.38"/>
<code code="397659008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age"/>
<statusCode code="completed"/>
</observation>
</entryRelationship>
</act>

0.011
ProcedureActivityActTesttestValidateProcedureActivityActMedicationActivitySuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT">
<templateId root="2.16.840.1.113883.10.20.22.4.12"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<entryRelationship typeCode="COMP">
<substanceAdministration/>
</entryRelationship>
</act>

0.011
ProcedureActivityActTesttestValidateProcedureActivityActPatientInstructionSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<entryRelationship>
<act moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.49"/>
</act>
</entryRelationship>
</act>

0.009
ProcedureActivityActTesttestGetProblemActSuccessInvalid XML

Valid XML

0.010
ProcedureActivityActTesttestGetProblemObservationSuccessInvalid XML

Valid XML

0.009
ProcedureActivityActTesttestGetMedicationActivitySuccessInvalid XML

Valid XML

0.010
ProcedureActivityObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ProcedureActivityObservationTesttestGetPatientInstructionsSuccessInvalid XML

Valid XML

0.008
ProcedureActivityObservationTesttestGetAgeObservationSuccessInvalid XML

Valid XML

0.009
ProcedureActivityObservationTesttestGetMedicationActivitiesSuccessInvalid XML

Valid XML

0.008
ProcedureActivityObservationTesttestGetProblemActSuccessInvalid XML

Valid XML

0.009
ProcedureActivityObservationTesttestGetProblemObservationSuccessInvalid XML

Valid XML

0.009
ProcedureActivityObservationTesttestValidateProcedureActivityObservationTemplateIdSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS">
<templateId root="2.16.840.1.113883.10.20.22.4.13"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</observation>

0.005
ProcedureActivityObservationTesttestValidateProcedureActivityObservationMoodCodeSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS">
<templateId root="2.16.840.1.113883.10.20.22.4.13"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.13"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</observation>

0.004
ProcedureActivityObservationTesttestValidateProcedureActivityObservationCodeSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.22.4.13"/>
<code xsi:type="CE"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</observation>

0.009
ProcedureActivityObservationTesttestValidateProcedureActivityObservationEffectiveTimeSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS">
<templateId root="2.16.840.1.113883.10.20.22.4.13"/>
<effectiveTime/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</observation>

0.011
ProcedureActivityObservationTesttestValidateProcedureActivityObservationIdSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS">
<templateId root="2.16.840.1.113883.10.20.22.4.13"/>
<id/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</observation>

0.014
ProcedureActivityObservationTesttestValidateProcedureActivityObservationStatusCodeSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS">
<templateId root="2.16.840.1.113883.10.20.22.4.13"/>
<statusCode code="completed" codeSystem="2.16.840.1.113883.5.14"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</observation>

0.011
ProcedureActivityObservationTesttestValidateProcedureActivityObservationEncounterLocationSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<participant typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
</participant>
</observation>

0.008
ProcedureActivityObservationTesttestValidateProcedureActivityObservationPerformer2SuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<performer/>
</observation>

0.007
ProcedureActivityObservationTesttestValidateProcedureActivityObservationProblemObservationSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<entryRelationship typeCode="RSON">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.28"/>
<statusCode code="completed"/>
</observation>
</entryRelationship>
</observation>

0.012
ProcedureActivityObservationTesttestValidateProcedureActivityObservationAgeObservationSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<entryRelationship typeCode="SUBJ">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.38"/>
<code code="397659008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age"/>
<statusCode code="completed"/>
</observation>
</entryRelationship>
</observation>

0.011
ProcedureActivityObservationTesttestValidateProcedureActivityObservationMedicationActivitySuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS">
<templateId root="2.16.840.1.113883.10.20.22.4.13"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<entryRelationship typeCode="COMP">
<substanceAdministration/>
</entryRelationship>
</observation>

0.012
ProcedureActivityObservationTesttestValidateProcedureActivityObservationPatientInstructionSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<entryRelationship>
<act moodCode="INT">
<templateId root="2.16.840.1.113883.10.20.1.49"/>
</act>
</entryRelationship>
</observation>

0.009
ProcedureActivityObservationTesttestValidateProcedureActivityObservationProblemActSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<entryRelationship typeCode="RSON">
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
</act>
</entryRelationship>
</observation>

0.012
ProcedureActivityProcedureTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ProcedureActivityProcedureTesttestGetPatientInstructionsSuccessInvalid XML

Valid XML

0.009
ProcedureActivityProcedureTesttestGetAgeObservationSuccessInvalid XML

Valid XML

0.009
ProcedureActivityProcedureTesttestGetMedicationActivitiesSuccessInvalid XML

Valid XML

0.008
ProcedureActivityProcedureTesttestGetProblemActSuccessInvalid XML

Valid XML

0.009
ProcedureActivityProcedureTesttestGetProblemObservationSuccessInvalid XML

Valid XML

0.009
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedureTemplateIdSuccessInvalid XML


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

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.14"/>
<templateId root="2.16.840.1.113883.10.20.22.4.14"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</procedure>

0.006
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedureMoodCodeSuccessInvalid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.14"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</procedure>

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.14"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</procedure>

0.004
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedureCodeSuccessInvalid XML


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

Valid XML


<procedure xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.14"/>
<code xsi:type="CE"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</procedure>

0.009
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedureEffectiveTimeSuccessInvalid XML


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

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.14"/>
<effectiveTime/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</procedure>

0.011
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedureIdSuccessInvalid XML


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

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.14"/>
<id/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</procedure>

0.012
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedureSpecimenSuccessInvalid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.14"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</procedure>

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.14"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<specimen/>
</procedure>

0.145
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedureEncounterLocationSuccessInvalid XML


<procedure xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</procedure>

Valid XML


<procedure xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<participant typeCode="LOC">
<templateId root="2.16.840.1.113883.10.20.1.45"/>
</participant>
</procedure>

0.008
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedurePerformer2SuccessInvalid XML


<procedure xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</procedure>

Valid XML


<procedure xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<performer/>
</procedure>

0.008
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedureProblemObservationSuccessInvalid XML


<procedure xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</procedure>

Valid XML


<procedure xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<entryRelationship typeCode="RSON">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.28"/>
<statusCode code="completed"/>
</observation>
</entryRelationship>
</procedure>

0.012
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedureProblemActSuccessInvalid XML


<procedure xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</procedure>

Valid XML


<procedure xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<entryRelationship typeCode="RSON">
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.27"/>
<code nullFlavor="NA"/>
</act>
</entryRelationship>
</procedure>

0.012
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedureAgeObservationSuccessInvalid XML


<procedure xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
</procedure>

Valid XML


<procedure xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.29"/>
<entryRelationship typeCode="SUBJ">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.38"/>
<code code="397659008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age"/>
<statusCode code="completed"/>
</observation>
</entryRelationship>
</procedure>

0.012
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedureMedicationActivitySuccessInvalid XML


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

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.14"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<entryRelationship typeCode="COMP">
<substanceAdministration/>
</entryRelationship>
</procedure>

0.012
ProcedureActivityProcedureTesttestValidateProcedureActivityProcedurePatientInstructionSuccessInvalid XML


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

Valid XML


<procedure xmlns="urn:hl7-org:v3" classCode="PROC">
<templateId root="2.16.840.1.113883.10.20.22.4.14"/>
<priorityCode codeSystem="2.16.840.1.113883.5.7" codeSystemName="ActPriority"/>
<targetSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<entryRelationship typeCode="SUBJ">
<act/>
</entryRelationship>
</procedure>

0.012
ProcedureActivityTesttestNoOperationsSuccessInvalid XML

Valid XML

0.001
ProceduresSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ProceduresSectionTesttestValidateProceduresSectionHasProcedureActivitySuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.7.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.7"/>
<code code="47519-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of Procedures"/>
<entry>
<procedure/>
</entry>
</section>

0.014
ProceduresSectionTesttestValidateProceduresSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.12"/>
<code code="47519-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of procedures"/>
</section>

0.005
ProceduresSectionTesttestValidateProceduresSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.7.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.7"/>
<code code="47519-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of Procedures"/>
</section>

0.020
ProceduresSectionTesttestValidateProceduresSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.7.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.7"/>
<code code="47519-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of Procedures"/>
<title>Procedures</title>
</section>

0.010
ProceduresSectionTesttestValidateProceduresSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.7.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.7"/>
<code code="47519-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of Procedures"/>
<text/>
</section>

0.005
ProductInstanceTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ProductInstanceTesttestValidateProductInstanceHasScopingEntitySuccessInvalid XML


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

Valid XML


<participantrole xmlns="urn:hl7-org:v3" classCode="MANU">
<templateId root="2.16.840.1.113883.10.20.1.52"/>
<id/>
<id/>
<scopingEntity/>
</participantrole>

0.005
ProductInstanceTesttestValidateProductInstanceTemplateIdSuccessInvalid XML


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

Valid XML


<participantrole xmlns="urn:hl7-org:v3" classCode="MANU">
<templateId root="2.16.840.1.113883.10.20.22.4.37"/>
</participantrole>

0.002
ProductInstanceTesttestValidateProductInstanceClassCodeSuccessInvalid XML


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

Valid XML


<participantrole xmlns="urn:hl7-org:v3" classCode="MANU">
<templateId root="2.16.840.1.113883.10.20.22.4.37"/>
</participantrole>

0.002
ProductTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ProductTesttestValidateProductHasMaterialSuccessInvalid XML


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

Valid XML


<manufacturedproduct xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.53"/>
<manufacturedMaterial/>
</manufacturedproduct>

0.005
ProductTesttestValidateProductHasMaterialCodeSuccessInvalid XML


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

Valid XML


<manufacturedproduct xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.53"/>
<manufacturedMaterial>
<code/>
</manufacturedMaterial>
</manufacturedproduct>

0.005
ProductTesttestValidateProductHasMaterialCodeVocabSuccessInvalid XML


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

Valid XML


<manufacturedproduct xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.53"/>
<manufacturedMaterial>
<code codeSystem="2.16.840.1.113883.6.88"/>
</manufacturedMaterial>
</manufacturedproduct>

0.004
ProductTesttestValidateProductHasMaterialCodeOriginalTextSuccessInvalid XML


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

Valid XML


<manufacturedproduct xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.53"/>
<manufacturedMaterial>
<code>
<originalText/>
</code>
</manufacturedMaterial>
</manufacturedproduct>

0.003
ProductTesttestValidateProductHasMaterialNameSuccessInvalid XML


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

Valid XML


<manufacturedproduct xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.53"/>
<manufacturedMaterial>
<name/>
</manufacturedMaterial>
</manufacturedproduct>

0.003
ProductTesttestValidateProductMayHaveMaterialManufacturerSuccessInvalid XML


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

Valid XML


<manufacturedproduct xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.53"/>
<manufacturerOrganization/>
</manufacturedproduct>

0.002
ProductTesttestValidateProductShouldHaveMaterialManufacturerSuccessInvalid XML


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

Valid XML


<manufacturedproduct xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.53"/>
<id/>
<id/>
<manufacturerOrganization/>
</manufacturedproduct>

0.003
ProductTesttestValidateProductTemplateIdSuccessInvalid XML


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

Valid XML


<manufacturedproduct xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.53"/>
</manufacturedproduct>

0.003
ProductTesttestValidateProductIdSuccessInvalid XML


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

Valid XML


<manufacturedproduct xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.53"/>
<id/>
</manufacturedproduct>

0.004
PurposeActivityTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PurposeActivityTesttestValidatePurposeActivityHasReasonSuccessInvalid XML


<act xmlns="urn:hl7-org:v3">
<entryRelationship typeCode="SUBJ"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.30"/>
<code code="23745001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Documentation procedure"/>
<statusCode code="completed"/>
<entryRelationship typeCode="SUBJ"/>
<entryRelationship typeCode="RSON"/>
</act>

0.006
PurposeActivityTesttestValidatePurposeActivityReasonTypeSuccessInvalid XML


<act xmlns="urn:hl7-org:v3">
<entryRelationship typeCode="RSON">
<organizer/>
</entryRelationship>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.30"/>
<code code="23745001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Documentation procedure"/>
<statusCode code="completed"/>
<entryRelationship typeCode="RSON">
<observation/>
</entryRelationship>
</act>

0.022
PurposeActivityTesttestValidatePurposeActivityTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.30"/>
<code code="23745001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Documentation procedure"/>
<statusCode code="completed"/>
</act>

0.005
PurposeActivityTesttestValidatePurposeActivityClassCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.30"/>
<code code="23745001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Documentation procedure"/>
<statusCode code="completed"/>
</act>

0.004
PurposeActivityTesttestValidatePurposeActivityMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.30"/>
<code code="23745001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Documentation procedure"/>
<statusCode code="completed"/>
</act>

0.003
PurposeActivityTesttestValidatePurposeActivityCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.30"/>
<code code="23745001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Documentation procedure"/>
<statusCode code="completed"/>
</act>

0.019
PurposeActivityTesttestValidatePurposeActivityStatusCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.30"/>
<code code="23745001" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Documentation procedure"/>
<statusCode code="completed"/>
</act>

0.019
PurposeSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PurposeSectionTesttestValidatePurposeSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.13"/>
<code code="48764-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summary purpose"/>
</section>

0.006
PurposeSectionTesttestValidatePurposeSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.13"/>
<code code="48764-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summary purpose"/>
</section>

0.021
PurposeSectionTesttestValidatePurposeSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.13"/>
<code code="48764-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summary purpose"/>
<title>title</title>
</section>

0.010
PurposeSectionTesttestValidatePurposeSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.13"/>
<code code="48764-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summary purpose"/>
<text/>
</section>

0.004
PurposeSectionTesttestValidatePurposeSectionPurposeActivitySuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.13"/>
<code code="48764-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summary purpose"/>
<entry>
<act/>
</entry>
</section>

0.010
PurposeSectionTesttestGetPurposeActivitiesSuccessInvalid XML

Valid XML

0.009
ReactionObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ReactionObservationTesttestValidateReactionObservationHasReactionInterventionSuccessInvalid XML


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

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.54"/>
<statusCode code="completed"/>
<entryRelationship typeCode="RSON">
<observation/>
</entryRelationship>
</observation>

0.008
ReactionObservationTesttestValidateReactionObservationReactionInterventionTypeCodeSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3">
<entryRelationship typeCode="RSON">
<act/>
</entryRelationship>
</observation>

<observation xmlns="urn:hl7-org:v3">
<entryRelationship typeCode="RSON">
<procedure/>
</entryRelationship>
</observation>

Valid XML


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

0.015
ReactionObservationTesttestValidateReactionObservationReactionInterventionTypeSuccessInvalid 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.54"/>
<statusCode code="completed"/>
<entryRelationship typeCode="RSON">
<substanceAdministration/>
</entryRelationship>
</observation>

0.008
ReactionObservationTesttestValidateReactionObservationTemplateIdSuccessInvalid 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.22.4.9"/>
<statusCode code="completed"/>
</observation>

0.005
ReactionObservationTesttestValidateReactionObservationClassCodeSuccessInvalid 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.22.4.9"/>
<statusCode code="completed"/>
</observation>

0.004
ReactionObservationTesttestValidateReactionObservationMoodCodeSuccessInvalid 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.22.4.9"/>
<statusCode code="completed"/>
</observation>

0.005
ReactionObservationTesttestValidateReactionObservationStatusCodeSuccessInvalid 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.22.4.9"/>
<statusCode code="completed"/>
</observation>

0.021
ReactionObservationTesttestValidateReactionObservationSeverityObservationSuccessInvalid 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.22.4.9"/>
<statusCode code="completed"/>
<entryRelationship typeCode="SUBJ">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.8"/>
<code code="SEV" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode" displayName="Severity observation"/>
<statusCode code="completed"/>
<interpretationCode codeSystem="2.16.840.1.113883.5.83" codeSystemName="ObservationInterpretation"/>
</observation>
</entryRelationship>
</observation>

0.013
ReactionObservationTesttestGetSeverityObservationSuccessInvalid XML

Valid XML

0.010
ResultObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ResultObservationTesttestValidateResultObservationCodeValueSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
<code codeSystem="invalidCodeSystem"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
<code codeSystem="2.16.840.1.113883.6.1"/>
</observation>

0.011
ResultObservationTesttestValidateResultObservationReferenceRangeRequiredSuccessInvalid 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.31"/>
<referenceRange/>
</observation>

0.064
ResultObservationTesttestValidateResultObservationNoObservationRangeCodeSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
<referenceRange>
<observationRange>
<code code="Test"/>
</observationRange>
</referenceRange>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
<referenceRange>
<observationRange>
<code/>
</observationRange>
</referenceRange>
</observation>

0.024
ResultObservationTesttestValidateResultObservationInformationSourceSuccessInvalid 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.31"/>
<informant/>
</observation>

0.025
ResultObservationTesttestValidateResultObservationTemplateIdSuccessInvalid 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.22.4.2"/>
<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
</observation>

0.007
ResultObservationTesttestValidateResultObservationMoodCodeSuccessInvalid XML


Skip Fail Test

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
</observation>

0.003
ResultObservationTesttestValidateResultObservationIdSuccessInvalid XML


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

Valid XML


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

0.011
ResultObservationTesttestValidateResultObservationEffectiveTimeSuccessInvalid 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.22.4.2"/>
<effectiveTime/>
</observation>

0.011
ResultObservationTesttestValidateResultObservationStatusCodeSuccessInvalid 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.22.4.2"/>
<statusCode code="completed"/>
</observation>

0.011
ResultObservationTesttestValidateResultObservationCodeSuccessInvalid 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.22.4.2"/>
<code xsi:type="CE"/>
</observation>

0.010
ResultObservationTesttestValidateResultObservationMethodCodeSuccessInvalid 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.22.4.2"/>
<methodCode/>
</observation>

0.012
ResultObservationTesttestValidateResultObservationInterpretationCodeSuccessInvalid 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.22.4.2"/>
<interpretationCode/>
</observation>

0.011
ResultObservationTesttestValidateResultObservationValueSuccessInvalid 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.22.4.2"/>
<value xsi:type="CD"/>
</observation>

0.012
ResultOrganizerTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ResultOrganizerTesttestValidateResultOrganizerCodeValueSuccessInvalid XML


<organizer xmlns="urn:hl7-org:v3">
<code codeSystem=""/>
</organizer>

Valid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
<code codeSystem="2.16.840.1.113883.6.12"/>
</organizer>

0.015
ResultOrganizerTesttestValidateResultOrganizerComponentElementSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.32"/>
<component/>
</organizer>

0.005
ResultOrganizerTesttestValidateResultOrganizerInformationSourceSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.32"/>
<informant/>
</organizer>

0.018
ResultOrganizerTesttestValidateResultOrganizerTemplateIdSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
</organizer>

0.004
ResultOrganizerTesttestValidateResultOrganizerMoodCodeSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
</organizer>

0.004
ResultOrganizerTesttestValidateResultOrganizerIdSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
<id/>
</organizer>

0.011
ResultOrganizerTesttestValidateResultOrganizerCodeSuccessInvalid XML


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

Valid XML


<organizer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
<code xsi:type="CE"/>
</organizer>

0.010
ResultOrganizerTesttestValidateResultOrganizerStatusCodeSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
<statusCode code="completed"/>
</organizer>

0.011
ResultOrganizerTesttestValidateResultOrganizerResultObservationSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
<component>
<observation/>
</component>
</organizer>

0.010
ResultOrganizerTesttestValidateResultOrganizerSpecimenSuccessInvalid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.32"/>
</organizer>

Valid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.32"/>
<specimen/>
</organizer>

0.008
ResultOrganizerTesttestGetResultObservationsSuccessInvalid XML

Valid XML

0.009
ResultsSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.000
ResultsSectionTesttestValidateResultsSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.14"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
</section>

0.006
ResultsSectionTesttestValidateResultsSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.3"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
</section>

0.022
ResultsSectionTesttestValidateResultsSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.3"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
<title>title</title>
</section>

0.011
ResultsSectionTesttestValidateResultsSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.3"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
<text/>
</section>

0.005
ResultsSectionTesttestValidateResultsSectionResultOrganizerSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.3"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
<entry>
<organizer/>
</entry>
</section>

0.009
ResultsSectionTesttestGetResultOrganizersSuccessInvalid XML

Valid XML

0.009
SeverityObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
SeverityObservationTesttestValidateSeverityObservationTemplateIdSuccessInvalid 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.22.4.8"/>
<code code="SEV" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode" displayName="Severity observation"/>
<statusCode code="completed"/>
<interpretationCode codeSystem="2.16.840.1.113883.5.83" codeSystemName="ObservationInterpretation"/>
</observation>

0.005
SeverityObservationTesttestValidateSeverityObservationClassCodeSuccessInvalid 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.22.4.8"/>
<code code="SEV" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode" displayName="Severity observation"/>
<statusCode code="completed"/>
<interpretationCode codeSystem="2.16.840.1.113883.5.83" codeSystemName="ObservationInterpretation"/>
</observation>

0.003
SeverityObservationTesttestValidateSeverityObservationMoodCodeSuccessInvalid 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.22.4.8"/>
<code code="SEV" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode" displayName="Severity observation"/>
<statusCode code="completed"/>
<interpretationCode codeSystem="2.16.840.1.113883.5.83" codeSystemName="ObservationInterpretation"/>
</observation>

0.003
SeverityObservationTesttestValidateSeverityObservationCodeSuccessInvalid 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.22.4.8"/>
<code xsi:type="CE" code="SEV" codeSystem="2.16.840.1.113883.5.4"/>
<statusCode code="completed"/>
<interpretationCode codeSystem="2.16.840.1.113883.5.83" codeSystemName="ObservationInterpretation"/>
</observation>

0.020
SeverityObservationTesttestValidateSeverityObservationStatusCodeSuccessInvalid 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.22.4.8"/>
<code code="SEV" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode" displayName="Severity observation"/>
<statusCode code="completed"/>
<interpretationCode codeSystem="2.16.840.1.113883.5.83" codeSystemName="ObservationInterpretation"/>
</observation>

0.021
SeverityObservationTesttestValidateSeverityObservationValueSuccessInvalid 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.22.4.8"/>
<code code="SEV" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode" displayName="Severity observation"/>
<statusCode code="completed"/>
<value xsi:type="CD" code="255604002" codeSystem="2.16.840.1.113883.6.96"/>
<interpretationCode codeSystem="2.16.840.1.113883.5.83" codeSystemName="ObservationInterpretation"/>
</observation>

0.012
SocialHistoryObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
SocialHistoryObservationTesttestGetEpisodeObservationSuccessInvalid XML

Valid XML

0.011
SocialHistoryObservationTesttestValidateSocialHistoryObservationCodeValueSetSuccessInvalid 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.33"/>
<code codeSystem="2.16.840.1.113883.6.1"/>
<statusCode code="completed"/>
</observation>

0.012
SocialHistoryObservationTesttestValidateSocialHistoryObservationTemplateIdSuccessInvalid 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.22.4.38"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.005
SocialHistoryObservationTesttestValidateSocialHistoryObservationClassCodeSuccessInvalid 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.22.4.38"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.004
SocialHistoryObservationTesttestValidateSocialHistoryObservationIdSuccessInvalid 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.22.4.38"/>
<id/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.011
SocialHistoryObservationTesttestValidateSocialHistoryObservationMoodCodeSuccessInvalid 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.22.4.38"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.004
SocialHistoryObservationTesttestValidateSocialHistoryObservationStatusCodeSuccessInvalid 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.22.4.38"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.021
SocialHistoryObservationTesttestValidateSocialHistoryObservationSocialHistoryStatusObservationSuccessInvalid 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.33"/>
<statusCode code="completed"/>
<entryRelationship>
<observation/>
</entryRelationship>
</observation>

0.011
SocialHistoryObservationTesttestValidateSocialHistoryObservationEpisodeObservationSuccessInvalid 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.33"/>
<statusCode code="completed"/>
<entryRelationship>
<observation/>
</entryRelationship>
</observation>

0.009
SocialHistoryObservationTesttestGetSocialHistoryStatusObservationSuccessInvalid XML

Valid XML

0.010
SocialHistorySectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
SocialHistorySectionTesttestValidateSocialHistorySectionMaritalStatusSuccessInvalid 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">
<recordTarget>
<patientRole>
<patient/>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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">
<recordTarget>
<patientRole>
<patient>
<maritalStatusCode code="code" codeSystem="codesystem"/>
</patient>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.010
SocialHistorySectionTesttestValidateSocialHistorySectionReligiousAffiliationSuccessInvalid 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">
<recordTarget>
<patientRole>
<patient/>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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">
<recordTarget>
<patientRole>
<patient>
<religiousAffiliationCode code="code" codeSystem="codeSystem"/>
</patient>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.011
SocialHistorySectionTesttestValidateSocialHistorySectionPatientRaceSuccessInvalid 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">
<recordTarget>
<patientRole>
<patient/>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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">
<recordTarget>
<patientRole>
<patient>
<raceCode code="code" codeSystem="codeSystem"/>
</patient>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.010
SocialHistorySectionTesttestValidateSocialHistorySectionPatientRaceCodeSystemSuccessInvalid 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">
<recordTarget>
<patientRole>
<patient/>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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">
<recordTarget>
<patientRole>
<patient>
<raceCode code="code" codeSystem="2.16.840.1.113883.5.104"/>
</patient>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.009
SocialHistorySectionTesttestValidateSocialHistorySectionPatientEthnicitySuccessInvalid 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">
<recordTarget>
<patientRole>
<patient/>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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">
<recordTarget>
<patientRole>
<patient>
<ethnicGroupCode code="code" codeSystem="codesystem"/>
</patient>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.010
SocialHistorySectionTesttestValidateSocialHistorySectionPatientEthnicityCodeSystemSuccessInvalid 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">
<recordTarget>
<patientRole>
<patient/>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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">
<recordTarget>
<patientRole>
<patient>
<ethnicGroupCode code="code" codeSystem="2.16.840.1.113883.5.50"/>
</patient>
</patientRole>
</recordTarget>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.008
SocialHistorySectionTesttestValidateSocialHistorySectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.17"/>
<templateId root="2.16.840.1.113883.10.20.22.2.17"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>

0.008
SocialHistorySectionTesttestValidateSocialHistorySectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.17"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>

0.022
SocialHistorySectionTesttestValidateSocialHistorySectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.17"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
<title>title</title>
</section>

0.011
SocialHistorySectionTesttestValidateSocialHistorySectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.17"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
<text/>
</section>

0.004
SocialHistorySectionTesttestValidateSocialHistorySectionSocialHistoryObservationSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.17"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
<entry>
<observation/>
</entry>
</section>

0.009
SocialHistorySectionTesttestGetSocialHistoryObservationsSuccessInvalid XML

Valid XML

0.009
SocialHistoryStatusObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
SocialHistoryStatusObservationTesttestValidateStatusObservationTemplateIdSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.006
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
SocialHistoryStatusObservationTesttestValidateStatusObservationValueSuccessInvalid 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="1.3.6.1.4.1.19376.1.5.3.1.4.1.1"/>
<templateId root="2.16.840.1.113883.10.20.1.57"/>
<templateId root="2.16.840.1.113883.10.20.1.50"/>
<code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
<value xsi:type="CE" code="55561003" codeSystem="2.16.840.1.113883.6.96"/>
</observation>

0.016
StatusObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
StatusObservationTesttestValidateStatusObservationTemplateIdSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.006
StatusObservationTesttestValidateStatusObservationCodeSuccessInvalid 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>

0.003
StatusObservationTesttestValidateStatusObservationValueSuccessInvalid 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="1.3.6.1.4.1.19376.1.5.3.1.4.1.1"/>
<templateId root="2.16.840.1.113883.10.20.1.57"/>
<templateId root="2.16.840.1.113883.10.20.1.50"/>
<code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
<value xsi:type="CE" code="55561003" codeSystem="2.16.840.1.113883.6.96"/>
</observation>

0.002
StatusObservationTesttestValidateStatusObservationTargetOfEntryRelationshipSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.004
StatusObservationTesttestValidateStatusObservationNoAdditionalParticipantsSuccessInvalid XML


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

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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.004
StatusObservationTesttestValidateStatusObservationNoAdditionalRelationshipsSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
<entryRelationship>
<observation/>
</entryRelationship>
</observation>

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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.008
StatusObservationTesttestValidateStatusObservationClassCodeSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.004
StatusObservationTesttestValidateStatusObservationMoodCodeSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.004
StatusObservationTesttestValidateStatusObservationStatusCodeSuccessInvalid 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" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.021
StatusObservationTesttestValidateTargetOfEntryRelationshipSuccessInvalid XML


Skip Fail Test

Skip Pass Test

Valid XML

0.000
SupplyActivityTesttestConstructorSuccessInvalid XML

Valid XML

0.001
SupplyActivityTesttestGetMedicationStatusObservationSuccessInvalid XML

Valid XML

0.010
SupplyActivityTesttestGetProductInstancesSuccessInvalid XML

Valid XML

0.009
SupplyActivityTesttestValidateSupplyActivityMoodCodeSuccessInvalid XML


<supply xmlns="urn:hl7-org:v3" moodCode="PRP"/>

Valid XML


<supply xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
</supply>

0.006
SupplyActivityTesttestValidateSupplyActivityHasAuthorSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<author/>
</supply>

0.006
SupplyActivityTesttestValidateSupplyActivityHasPerformerSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<performer/>
</supply>

0.006
SupplyActivityTesttestValidateSupplyActivityHasParticipantLocationSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<participant typeCode="LOC"/>
</supply>

0.004
SupplyActivityTesttestValidateSupplyActivityInformationSourceSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<informant/>
</supply>

0.027
SupplyActivityTesttestValidateSupplyActivityHasProductSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<product/>
</supply>

0.010
SupplyActivityTesttestValidateSupplyActivityTemplateIdSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
</supply>

0.005
SupplyActivityTesttestValidateSupplyActivityIdSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<id/>
</supply>

0.012
SupplyActivityTesttestValidateSupplyActivityStatusCodeSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<statusCode code="completed"/>
</supply>

0.012
SupplyActivityTesttestValidateSupplyActivityEffectiveTimeSuccessInvalid XML


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

Valid XML


<supply xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<effectiveTime xsi:type="IVL_TS"/>
</supply>

0.013
SupplyActivityTesttestValidateSupplyActivityQuantitySuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<quantity/>
</supply>

0.011
SupplyActivityTesttestValidateSupplyActivityRepeatNumberSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<repeatNumber/>
</supply>

0.014
SupplyActivityTesttestValidateSupplyActivityMedicationStatusObservationSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<entryRelationship>
<observation/>
</entryRelationship>
</supply>

0.010
SupplyActivityTesttestValidateSupplyActivityFulfillmentInstructionSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<entryRelationship typeCode="SUBJ">
<act/>
</entryRelationship>
</supply>

0.013
SupplyActivityTesttestValidateSupplyActivityProductInstanceSuccessInvalid XML


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

Valid XML


<supply xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.34"/>
<participant>
<participantRole/>
</participant>
</supply>

0.009
SupplyActivityTesttestGetFulfillmentInstructionsSuccessInvalid XML

Valid XML

0.009
SupportGuardianTesttestNoOperationsSuccessInvalid XML

Valid XML

0.000
SupportParticipantTesttestNoOperationsSuccessInvalid XML

Valid XML

0.000
SupportTesttestNoOperationsSuccessInvalid XML

Valid XML

0.000
VitalSignsOrganizerTesttestConstructorSuccessInvalid XML

Valid XML

0.001
VitalSignsOrganizerTesttestValidateResultOrganizerTemplateIdSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
</organizer>

0.006
VitalSignsOrganizerTesttestValidateVitalSignsOrganizerInformationSourceSuccessInvalid XML


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

Valid XML


<organizer xmlns="urn:hl7-org:v3" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.35"/>
<templateId root="2.16.840.1.113883.10.20.1.32"/>
<informant/>
</organizer>

0.021
VitalSignsSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.000
VitalSignsSectionTesttestValidateVitalSignsSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.16"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital signs"/>
</section>

0.005
VitalSignsSectionTesttestValidateVitalSignsSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.4.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.4"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital Signs"/>
</section>

0.022
VitalSignsSectionTesttestValidateVitalSignsSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.4.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.4"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital Signs"/>
<text/>
</section>

0.005
VitalSignsSectionTesttestValidateVitalSignsSectionVitalSignsOrganizerSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.4.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.4"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital Signs"/>
<entry>
<organizer classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.26"/>
<code code="46680005" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Vital signs"/>
<statusCode code="completed"/>
</organizer>
</entry>
</section>

0.010
VitalSignsSectionTesttestValidateVitalSignsSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.4.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.4"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital Signs"/>
<title>title</title>
</section>

0.011
VitalSignsSectionTesttestGetVitalSignsOrganizersSuccessInvalid XML

Valid XML

0.009
AssessmentAndPlanSectionProcNoteTesttestConstructorSuccessInvalid XML

Valid XML

0.000
AssessmentAndPlanSectionProcNoteTesttestValidateAssessmentAndPlanSectionProcNoteTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.18.2.14"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="ASSESSMENT AND PLAN"/>
</section>

1.052
AssessmentAndPlanSectionProcNoteTesttestValidateAssessmentAndPlanSectionProcNoteCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.18.2.14"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="ASSESSMENT AND PLAN"/>
</section>

0.013
AssessmentAndPlanSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AssessmentAndPlanSectionTesttestValidateAssessmentAndPlanSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.9"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="ASSESSMENT AND PLAN"/>
</section>

0.006
AssessmentAndPlanSectionTesttestValidateAssessmentAndPlanSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.9"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="ASSESSMENT AND PLAN"/>
</section>

0.015
AssessmentSectionProcNoteTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AssessmentSectionProcNoteTesttestValidateAssessmentSectionProcNoteTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.18.2.13"/>
<code code="51848-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="ASSESSMENT"/>
</section>

0.007
AssessmentSectionProcNoteTesttestValidateAssessmentSectionProcNoteCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.18.2.13"/>
<code code="51848-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="ASSESSMENT"/>
</section>

0.010
AssessmentSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AssessmentSectionTesttestValidateAssessmentSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.8"/>
<templateId root="2.16.840.1.113883.10.20.22.2.8"/>
<code code="51848-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessments"/>
</section>

0.006
AssessmentSectionTesttestValidateAssessmentSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.8"/>
<code code="51848-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessments"/>
</section>

0.010
CDTRegistryDelegateTesttestConstructorSuccessInvalid XML

Valid XML

0.001
CDTRegistryDelegateTesttestGetEClassSuccessInvalid XML

Valid XML

0.000
ChiefComplaintSectionProcNoteTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ChiefComplaintSectionProcNoteTesttestValidateChiefComplaintSectionProcNoteTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.18.2.16"/>
<code code="10154-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="CHIEF COMPLAINT"/>
</section>

0.007
ChiefComplaintSectionProcNoteTesttestValidateChiefComplaintSectionProcNoteCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.18.2.16"/>
<code code="10154-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="CHIEF COMPLAINT"/>
</section>

0.011
ChiefComplaintSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ChiefComplaintSectionTesttestValidateChiefComplaintSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.13.2.1"/>
<code code="10154-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="CHIEF COMPLAINT"/>
</section>

0.007
ChiefComplaintSectionTesttestValidateChiefComplaintSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.13.2.1"/>
<code code="10154-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="CHIEF COMPLAINT"/>
</section>

0.011
ConsultationNoteTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ConsultationNoteTesttestValidateConsultationNoteReferralOrVisitSuccessInvalid 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.4"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.4.8"/>
<code code="29299-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="REASON FOR VISIT"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.031
ConsultationNoteTesttestValidateConsultationNoteHistoryOfPresentIllnessSuccessInvalid 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.4"/>
<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"/>
</ClinicalDocument>

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.4"/>
<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/>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.010
ConsultationNoteTesttestValidateConsultationNotePhysicalExaminationSuccessInvalid 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.4"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL FINDINGS"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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

0.094
ConsultationNoteTesttestValidateConsultationNoteProceduresSectionSuccessInvalid 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.4"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.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.008
ConsultationNoteTesttestValidateConsultationNotePastMedicalHistorySectionSuccessInvalid 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.4"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.4.9"/>
<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.007
ConsultationNoteTesttestValidateConsultationNoteImmunizationsSectionSuccessInvalid 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.4"/>
<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.2.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.2"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.023
ConsultationNoteTesttestValidateConsultationNoteMedicationsSectionSuccessInvalid 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.4"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.8"/>
<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.008
ConsultationNoteTesttestValidateConsultationNoteAlertsSectionSuccessInvalid 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.4"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.2"/>
<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.009
ConsultationNoteTesttestValidateConsultationNoteSocialHistorySectionSuccessInvalid 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.4"/>
<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.17"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.008
ConsultationNoteTesttestValidateConsultationNoteFamilyHistorySectionSuccessInvalid 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.4"/>
<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.15"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Family History"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.020
ConsultationNoteTesttestValidateConsultationNoteReviewOfSystemsSectionSuccessInvalid 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.4"/>
<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.009
ConsultationNoteTesttestValidateConsultationNoteVitalSignsSectionSuccessInvalid 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.4"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.16"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital signs"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.008
ConsultationNoteTesttestValidateConsultationNoteGeneralStatusSectionSuccessInvalid 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.4"/>
<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.2.5"/>
<code code="10210-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="GENERAL STATUS"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.008
ConsultationNoteTesttestValidateConsultationNoteDiagnosticFindingsSuccessInvalid 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.4"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.14"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.009
ConsultationNoteTesttestGetHistoryOfPresentIllnessSuccessInvalid XML

Valid XML

0.010
ConsultationNoteTesttestGetPhysicalExaminationSuccessInvalid XML

Valid XML

0.004
ConsultationNoteTesttestGetProblemSectionSuccessInvalid XML

Valid XML

0.182
ConsultationNoteTesttestGetProceduresSectionSuccessInvalid XML

Valid XML

0.004
ConsultationNoteTesttestGetPastMedicalHistorySectionSuccessInvalid XML

Valid XML

0.004
ConsultationNoteTesttestGetImmunizationsSectionSuccessInvalid XML

Valid XML

0.003
ConsultationNoteTesttestGetMedicationsSectionSuccessInvalid XML

Valid XML

0.004
ConsultationNoteTesttestGetAlertsSectionSuccessInvalid XML

Valid XML

0.004
ConsultationNoteTesttestGetSocialHistorySectionSuccessInvalid XML

Valid XML

0.005
ConsultationNoteTesttestGetFamilyHistorySectionSuccessInvalid XML

Valid XML

0.004
ConsultationNoteTesttestGetReviewOfSystemsSectionSuccessInvalid XML

Valid XML

0.004
ConsultationNoteTesttestGetVitalSignsSectionSuccessInvalid XML

Valid XML

0.004
ConsultationNoteTesttestGetGeneralStatusSectionSuccessInvalid XML

Valid XML

0.003
ConsultationNoteTesttestGetDiagnosticFindingsSuccessInvalid XML

Valid XML

0.003
ConsultationNoteTesttestValidateGeneralHeaderConstraintsTemplateIdSuccessInvalid XML


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

Valid XML


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

0.005
ConsultationNoteTesttestValidateGeneralHeaderConstraintsCodeSuccessInvalid 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.9"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="code" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
</ClinicalDocument>

0.006
DiagnosticFindingsTesttestConstructorSuccessInvalid XML

Valid XML

0.000
DiagnosticFindingsTesttestValidateDiagnosticFindingsTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.14"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
<title>title</title>
</section>

0.007
GeneralHeaderConstraintsTesttestConstructorSuccessInvalid XML

Valid XML

0.001
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsTemplateIdSuccessInvalid XML


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

Valid XML


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

0.180
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsCodeSuccessInvalid 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.9"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="code" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
</ClinicalDocument>

0.003
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsPersonHasNameSuccessInvalid 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"/>
<recordTarget>
<patientRole>
<patient/>
</patientRole>
</recordTarget>
</ClinicalDocument>

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"/>
<recordTarget>
<patientRole>
<patient>
<name/>
</patient>
</patientRole>
</recordTarget>
</ClinicalDocument>

2.271
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsRolesShallHaveAddrAndTelecomSuccessInvalid 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"/>
<recordTarget>
<patientRole>
<patient/>
</patientRole>
</recordTarget>
</ClinicalDocument>

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"/>
<recordTarget>
<patientRole>
<addr/>
<telecom/>
<patient/>
</patientRole>
</recordTarget>
</ClinicalDocument>

0.013
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
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsTypeIdExtensionSuccessInvalid 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"/>
<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
</ClinicalDocument>

0.005
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
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsLanguageCodeFormSuccessInvalid 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"/>

<?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">
<languageCode code="aaaa"/>
</ClinicalDocument>

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

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

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

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

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

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

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

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">
<languageCode code="en"/>
</ClinicalDocument>

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

0.018
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
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsAuthenticatorHasAssignedPersonSuccessInvalid 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"/>
<authenticator>
<assignedEntity/>
</authenticator>
</ClinicalDocument>

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"/>
<authenticator>
<assignedEntity>
<assignedPerson/>
</assignedEntity>
</authenticator>
</ClinicalDocument>

0.010
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
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsEffectiveTimeSuccessInvalid XML


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

Valid XML


<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
<realmCode code="US"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<effectiveTime xsi:type="IVL_TS"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
</ClinicalDocument>

0.008
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsIdSuccessInvalid XML


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

Valid XML


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

0.005
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsLanguageCodeSuccessInvalid XML


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

Valid XML


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

0.005
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsRealmCodeSuccessInvalid XML


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

Valid XML


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

0.009
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsTitleSuccessInvalid XML


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

Valid XML


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

0.006
GeneralHeaderConstraintsTesttestValidateGeneralHeaderConstraintsTypeIdSuccessInvalid 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"/>
<typeId root="2.16.840.1.113883.1.3"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
</ClinicalDocument>

0.005
GeneralStatusSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
GeneralStatusSectionTesttestValidateGeneralStatusSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.5"/>
<code code="10210-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="GENERAL STATUS"/>
</section>

0.005
GeneralStatusSectionTesttestValidateGeneralStatusSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.5"/>
<code code="10210-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="GENERAL STATUS"/>
</section>

0.009
HistoryAndPhysicalTesttestConstructorSuccessInvalid XML

Valid XML

0.001
HistoryAndPhysicalTesttestGetHistoryOfPresentIllnessSuccessInvalid XML

Valid XML

0.005
HistoryAndPhysicalTesttestGetProblemSectionSuccessInvalid XML

Valid XML

0.003
HistoryAndPhysicalTesttestGetProceduresSectionSuccessInvalid XML

Valid XML

0.003
HistoryAndPhysicalTesttestGetPastMedicalHistorySectionSuccessInvalid XML

Valid XML

0.004
HistoryAndPhysicalTesttestGetImmunizationsSectionSuccessInvalid XML

Valid XML

0.004
HistoryAndPhysicalTesttestGetMedicationsSectionSuccessInvalid XML

Valid XML

0.003
HistoryAndPhysicalTesttestGetAlertsSectionSuccessInvalid XML

Valid XML

0.003
HistoryAndPhysicalTesttestGetSocialHistorySectionSuccessInvalid XML

Valid XML

0.003
HistoryAndPhysicalTesttestGetFamilyHistorySectionSuccessInvalid XML

Valid XML

0.003
HistoryAndPhysicalTesttestGetReviewOfSystemsSectionSuccessInvalid XML

Valid XML

0.003
HistoryAndPhysicalTesttestGetVitalSignsSectionSuccessInvalid XML

Valid XML

0.003
HistoryAndPhysicalTesttestGetGeneralStatusSectionSuccessInvalid XML

Valid XML

0.004
HistoryAndPhysicalTesttestGetDiagnosticFindingsSuccessInvalid XML

Valid XML

0.003
HistoryAndPhysicalTesttestValidateGeneralHeaderConstraintsTemplateIdSuccessInvalid XML


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

Valid XML


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

0.005
HistoryAndPhysicalTesttestValidateGeneralHeaderConstraintsCodeSuccessInvalid 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.9"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="code" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
</ClinicalDocument>

0.003
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalAssessmentAndPlanSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51847-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment + Plan"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.011
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalBothAssessmentAndPlanSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51848-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="51848-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Assessment"/>
</section>
</component>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Plan"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.016
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalReasonForVisitAndChiefComplaintSuccessInvalid 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"/>

<?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">
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="46239-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for visit + Chief complaint"/>
</section>
</component>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="29299-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for visit"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="46239-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for visit + Chief complaint"/>
</section>
</component>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="10154-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Chief complaint"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="46239-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for visit + Chief complaint"/>
</section>
</component>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="29299-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for visit"/>
</section>
</component>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="10154-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Chief complaint"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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">
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="46239-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for visit + Chief complaint"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="29299-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for visit"/>
</section>
</component>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="10154-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Chief complaint"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.037
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalBothReasonForVisitAndChiefComplaintSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="10154-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Chief complaint"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="10154-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Chief complaint"/>
</section>
</component>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="29299-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for visit"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.014
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalCodeSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</ClinicalDocument>

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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code code="aaaa" codeSystem="2.16.840.1.113883.6.1"/>
</ClinicalDocument>

0.041
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalHistoryOfPresentIllnessSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.4"/>
<code code="10164-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PRESENT ILLNESS"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.007
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalPastMedicalHistorySectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.9"/>
<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.008
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalMedicationsSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.8"/>
<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.006
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalAlertsSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.2"/>
<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.006
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalSocialHistorySectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.15"/>
<code code="29762-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Social history"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalFamilyHistorySectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.4"/>
<code code="10157-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of family member diseases"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalReviewOfSystemsSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<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.007
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalPhysicalExaminationSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL FINDINGS"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.007
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalVitalSignsSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.4"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="VITAL SIGNS"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.007
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalGeneralStatusSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.5"/>
<code code="10210-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="GENERAL STATUS, PHYSICAL FINDINGS"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalDiagnosticFindingsSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.14"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.007
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalProblemSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.11"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem list"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalProceduresSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.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.006
HistoryAndPhysicalTesttestValidateHistoryAndPhysicalImmunizationsSectionSuccessInvalid 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.2"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.6"/>
<code code="11369-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of immunizations"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
HistoryAndPhysicalTesttestGetPhysicalExaminationSectionSuccessInvalid XML

Valid XML

0.004
HistoryOfPresentIllnessTesttestConstructorSuccessInvalid XML

Valid XML

0.001
HistoryOfPresentIllnessTesttestValidateHistoryOfPresentIllnessTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.4"/>
<code code="10164-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PRESENT ILLNESS"/>
</section>

0.005
HistoryOfPresentIllnessTesttestValidateHistoryOfPresentIllnessCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.4"/>
<code code="10164-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PRESENT ILLNESS"/>
</section>

0.010
HospitalDischargeStudiesSummarySectionTesttestConstructorSuccessInvalid XML

Valid XML

0.000
HospitalDischargeStudiesSummarySectionTesttestValidateHospitalDischargeStudiesSummarySectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.16"/>
<code code="11493-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Hospital Discharge Studies Summary"/>
</section>

0.006
HospitalDischargeStudiesSummarySectionTesttestValidateHospitalDischargeStudiesSummarySectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.16"/>
<code code="11493-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Hospital Discharge Studies Summary"/>
</section>

0.009
HospitalDischargeStudiesSummarySectionTesttestValidateHospitalDischargeStudiesSummarySectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.16"/>
<code code="11493-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Hospital Discharge Studies Summary"/>
<title>title</title>
</section>

0.019
LevelOneConformanceTesttestConstructorSuccessInvalid XML

Valid XML

0.000
LevelOneConformanceTesttestValidateLevelOneConformanceTemplateIdSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.20"/>
<templateId root="2.16.840.1.113883.10.20.10"/>
</ClinicalDocument>

0.004
LevelThreeConformanceTesttestConstructorSuccessInvalid XML

Valid XML

0.000
LevelThreeConformanceTesttestValidateLevelOneConformanceTemplateIdSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.20"/>
<templateId root="2.16.840.1.113883.10.20.10"/>
</ClinicalDocument>

0.005
LevelTwoConformanceTesttestConstructorSuccessInvalid XML

Valid XML

0.001
LevelTwoConformanceTesttestValidateLevelOneConformanceTemplateIdSuccessInvalid 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">
<templateId root="2.16.840.1.113883.10.20.20"/>
<templateId root="2.16.840.1.113883.10.20.10"/>
</ClinicalDocument>

0.005
ObjectiveSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ObjectiveSectionTesttestValidateObjectiveSectionHasClinicalStatementsSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.21.2.1"/>
<code code="OBJEC-X" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="OBJECTIVE DATA"/>
<entry/>
</section>

0.008
ObjectiveSectionTesttestValidateObjectiveSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.21.2.1"/>
<code code="61149-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Objective"/>
</section>

0.004
ObjectiveSectionTesttestValidateObjectiveSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.21.2.1"/>
<code code="61149-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Objective"/>
</section>

0.010
ObjectiveSectionTesttestValidateObjectiveSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.21.2.1"/>
<code code="61149-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Objective"/>
<text/>
</section>

0.004
ObjectiveSectionTesttestValidateObjectiveSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.21.2.1"/>
<code code="61149-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Objective"/>
<title>title</title>
</section>

0.006
PastMedicalHistorySectionConsultTesttestConstructorSuccessInvalid XML

Valid XML

0.000
PastMedicalHistorySectionConsultTesttestValidatePastMedicalHistorySectionConsultTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.4.9"/>
<code code="11348-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PAST ILLNESS"/>
</section>

0.005
PastMedicalHistorySectionConsultTesttestValidatePastMedicalHistorySectionConsultCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.4.9"/>
<code code="11348-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PAST ILLNESS"/>
</section>

0.009
PastMedicalHistorySectionConsultTesttestValidatePastMedicalHistorySectionConsultTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.4.9"/>
<code code="11348-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PAST ILLNESS"/>
<text/>
</section>

0.004
PastMedicalHistorySectionTesttestConstructorSuccessInvalid XML

Valid XML

0.000
PastMedicalHistorySectionTesttestValidatePastMedicalHistorySectionHasClinicalStatementsSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.9"/>
<code code="11348-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PAST ILLNESS"/>
<entry/>
</section>

0.005
PastMedicalHistorySectionTesttestValidatePastMedicalHistorySectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.9"/>
<code code="11348-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PAST ILLNESS"/>
</section>

0.005
PastMedicalHistorySectionTesttestValidatePastMedicalHistorySectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.9"/>
<code code="11348-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PAST ILLNESS"/>
</section>

0.010
PastMedicalHistorySectionTesttestValidatePastMedicalHistorySectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.9"/>
<code code="11348-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="HISTORY OF PAST ILLNESS"/>
<text/>
</section>

0.004
PhysicalExaminationSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PhysicalExaminationSectionTesttestValidatePhysicalExaminationSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL FINDINGS"/>
</section>

0.004
PhysicalExaminationSectionTesttestValidatePhysicalExaminationSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL FINDINGS"/>
</section>

0.009
PlanSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
PlanSectionTesttestValidatePlanSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Plan"/>
</section>

0.004
PlanSectionTesttestValidatePlanSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.7"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Plan"/>
</section>

0.009
ProgressNoteTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ProgressNoteTesttestGetProblemSectionSuccessInvalid XML

Valid XML

0.005
ProgressNoteTesttestGetMedicationsSectionSuccessInvalid XML

Valid XML

0.003
ProgressNoteTesttestGetAlertsSectionSuccessInvalid XML

Valid XML

0.003
ProgressNoteTesttestGetReviewOfSystemsSectionSuccessInvalid XML

Valid XML

0.004
ProgressNoteTesttestGetVitalSignsSectionSuccessInvalid XML

Valid XML

0.003
ProgressNoteTesttestValidateGeneralHeaderConstraintsTemplateIdSuccessInvalid XML


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

Valid XML


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

0.004
ProgressNoteTesttestValidateGeneralHeaderConstraintsCodeSuccessInvalid 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.9"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="code" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
</ClinicalDocument>

0.002
ProgressNoteTesttestGetPhysicalExaminationSectionSuccessInvalid XML

Valid XML

0.082
ProgressNoteTesttestValidateProgressNoteAssessmentAndPlanSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.18.2.13"/>
<code code="51848-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="ASSESSMENT"/>
</section>
</component>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.10"/>
<code code="18776-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Treatment plan"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.014
ProgressNoteTesttestValidateProgressNoteBothAssessmentAndPlanSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.18.2.13"/>
<code code="51848-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="ASSESSMENT"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.18.2.13"/>
<code code="51848-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="ASSESSMENT"/>
</section>
</component>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.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
ProgressNoteTesttestValidateProgressNoteHasServiceEventSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<documentationOf>
<serviceEvent/>
</documentationOf>
</ClinicalDocument>

0.009
ProgressNoteTesttestValidateProgressNoteHasServiceEventCodeSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<documentationOf>
<serviceEvent>
<code code="371532007" codeSystem="2.16.840.1.113883.6.96"/>
</serviceEvent>
</documentationOf>
</ClinicalDocument>

0.008
ProgressNoteTesttestValidateProgressNoteHasServiceEventEffectiveTimeSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<documentationOf>
<serviceEvent>
<effectiveTime>
<low value="low"/>
<high value="high"/>
</effectiveTime>
</serviceEvent>
</documentationOf>
</ClinicalDocument>

0.010
ProgressNoteTesttestValidateProgressNoteHasComponentOfElementSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<componentOf/>
</ClinicalDocument>

0.005
ProgressNoteTesttestValidateProgressNoteHasEncompassingEncounterIdSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<componentOf>
<encompassingEncounter>
<id/>
</encompassingEncounter>
</componentOf>
</ClinicalDocument>

0.007
ProgressNoteTesttestValidateProgressNoteHasEncompassingEncounterEffectiveTimeSuccessInvalid 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"/>
<realmCode code="US"/>
<templateId root="2.16.840.1.113883.10.20.21.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="2.16.840.1.113883.10.20.21.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<componentOf>
<encompassingEncounter>
<effectiveTime/>
</encompassingEncounter>
</componentOf>
</ClinicalDocument>

0.005
ProgressNoteTesttestValidateProgressNoteHasEncompassingEncounterEffectiveTimeLowSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<componentOf>
<encompassingEncounter>
<effectiveTime>
<low value="low"/>
<high value="high"/>
</effectiveTime>
</encompassingEncounter>
</componentOf>
</ClinicalDocument>

0.005
ProgressNoteTesttestValidateProgressNoteHasEncompassingEncounterFacilityIdSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<componentOf>
<encompassingEncounter>
<location>
<healthCareFacility>
<id/>
</healthCareFacility>
</location>
</encompassingEncounter>
</componentOf>
</ClinicalDocument>

0.011
ProgressNoteTesttestValidateProgressNoteCodeSuccessInvalid 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.9"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="11506-3" codeSystem="2.16.840.1.113883.6.1"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
</ClinicalDocument>

0.010
ProgressNoteTesttestValidateProgressNoteAlertsSectionSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.2"/>
<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.005
ProgressNoteTesttestValidateProgressNoteChiefComplaintSectionSuccessInvalid 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.9"/>
<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.1.13.2.1"/>
<code code="10154-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="CHIEF COMPLAINT"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.005
ProgressNoteTesttestValidateProgressNoteMedicationsSectionSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.8"/>
<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.005
ProgressNoteTesttestValidateProgressNoteObjectiveSectionSuccessInvalid 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.9"/>
<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.21.2.1"/>
<code code="61149-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Objective"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ProgressNoteTesttestValidateProgressNotePhysicalExaminationSectionSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.10"/>
<code code="29545-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="PHYSICAL FINDINGS"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ProgressNoteTesttestValidateProgressNoteProblemSectionSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.11"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem list"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ProgressNoteTesttestValidateProgressNoteResultsSectionSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.1.14"/>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.005
ProgressNoteTesttestValidateProgressNoteVitalSignsSectionSuccessInvalid 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"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.2.4"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="VITAL SIGNS"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.006
ProgressNoteTesttestValidateProgressNoteReviewOfSystemsSectionSuccessInvalid 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.9"/>
<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.006
ProgressNoteTesttestValidateProgressNoteSubjectiveSectionSuccessInvalid 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.9"/>
<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.21.2.2"/>
<code code="61150-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Subjective"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>

0.007
ProgressNoteTesttestGetAssessmentAndPlanSectionSuccessInvalid XML

Valid XML

0.004
ProgressNoteTesttestGetAssessmentSectionSuccessInvalid XML

Valid XML

0.004
ProgressNoteTesttestGetPlanSectionSuccessInvalid XML

Valid XML

0.004
ProgressNoteTesttestGetChiefComplaintSectionSuccessInvalid XML

Valid XML

0.004
ProgressNoteTesttestGetObjectiveSectionSuccessInvalid XML

Valid XML

0.005
ProgressNoteTesttestGetResultsSectionSuccessInvalid XML

Valid XML

0.004
ProgressNoteTesttestGetSubjectiveSectionSuccessInvalid XML

Valid XML

0.004
ReasonForReferralSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ReasonForReferralSectionTesttestValidateReasonForReferralSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.1"/>
<code code="42349-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="REASON FOR REFERRAL"/>
</section>

0.007
ReasonForReferralSectionTesttestValidateReasonForReferralSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.1"/>
<code code="42349-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="REASON FOR REFERRAL"/>
</section>

0.011
ReasonForVisitAndChiefComplaintSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ReasonForVisitAndChiefComplaintSectionTesttestValidateReasonForVisitAndChiefComplaintSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="46239-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for visit + Chief complaint"/>
</section>

0.014
ReasonForVisitAndChiefComplaintSectionTesttestValidateReasonForVisitAndChiefComplaintSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.8"/>
<code code="46239-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for visit + Chief complaint"/>
</section>

0.010
ReasonForVisitSectionConsultTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ReasonForVisitSectionConsultTesttestValidateReasonForVisitSectionConsultTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.4.8"/>
<code code="29299-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="REASON FOR VISIT"/>
</section>

0.004
ReasonForVisitSectionConsultTesttestValidateReasonForVisitSectionConsultCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.4.8"/>
<code code="29299-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="REASON FOR VISIT"/>
</section>

0.010
ReasonForVisitSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.000
ReasonForVisitSectionTesttestValidateReasonForVisitSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.12"/>
<code code="29299-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for Visit"/>
</section>

0.004
ReasonForVisitSectionTesttestValidateReasonForVisitSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.12"/>
<code code="29299-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for Visit"/>
</section>

0.010
ReviewOfSystemsSectionIHETesttestConstructorSuccessInvalid XML

Valid XML

0.000
ReviewOfSystemsSectionIHETesttestValidateReviewOfSystemsSectionIHETemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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>

0.004
ReviewOfSystemsSectionIHETesttestValidateReviewOfSystemsSectionIHECodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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>

0.011
ReviewOfSystemsSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
ReviewOfSystemsSectionTesttestValidateReviewOfSystemsSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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>

0.005
ReviewOfSystemsSectionTesttestValidateReviewOfSystemsSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<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>

0.010
SubjectiveSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
SubjectiveSectionTesttestValidateSubjectiveSectionHasClinicalStatementsSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.21.2.2"/>
<code code="SUBJ-X" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="SUBJECTIVE DATA"/>
<entry/>
</section>

0.005
SubjectiveSectionTesttestValidateSubjectiveSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.21.2.2"/>
<code code="61150-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Subjective"/>
</section>

0.004
SubjectiveSectionTesttestValidateSubjectiveSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.21.2.2"/>
<code code="61150-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Subjective"/>
</section>

0.010
SubjectiveSectionTesttestValidateSubjectiveSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.21.2.2"/>
<code code="61150-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Subjective"/>
<text/>
</section>

0.004
SubjectiveSectionTesttestValidateSubjectiveSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.21.2.2"/>
<code code="61150-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Subjective"/>
<title>title</title>
</section>

0.007
UnstructuredDocumentTesttestConstructorSuccessInvalid XML

Valid XML

0.001
UnstructuredDocumentTesttestValidateGeneralHeaderConstraintsTemplateIdSuccessInvalid XML


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

Valid XML


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

0.005
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
UnstructuredDocumentTesttestValidateUnstructuredDocumentHasNonXMLBodyTextSuccessInvalid 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"/>
<component>
<nonXMLBody>
<text/>
</nonXMLBody>
</component>
</ClinicalDocument>

0.060
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
UnstructuredDocumentTesttestValidateUnstructuredDocumentEffectiveTimeSuccessInvalid 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"/>
<effectiveTime xsi:type="IVL_TS"/>
</ClinicalDocument>

0.005
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
VitalSignsSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
VitalSignsSectionTesttestValidateVitalSignsSectionClinicalStatementsSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.4"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="VITAL SIGNS"/>
<entry/>
</section>

0.005
VitalSignsSectionTesttestValidateVitalSignsSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.1.16"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital signs"/>
</section>

0.004
VitalSignsSectionTesttestValidateVitalSignsSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.4.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.4"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital Signs"/>
</section>

0.011
VitalSignsSectionTesttestValidateVitalSignsSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.4.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.4"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital Signs"/>
<text/>
</section>

0.030
VitalSignsSectionTesttestValidateVitalSignsSectionVitalSignsOrganizerSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.4.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.4"/>
<code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital Signs"/>
<entry>
<organizer classCode="CLUSTER" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.26"/>
<code code="46680005" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Vital signs"/>
<statusCode code="completed"/>
</organizer>
</entry>
</section>

0.008
VitalSignsSectionTesttestGetVitalSignsOrganizerSuccessInvalid XML

Valid XML

0.007
AdmissionMedicationTesttestConstructorSuccessInvalid XML

Valid XML

0.000
AdmissionMedicationTesttestGetMedicationActivitySuccessInvalid XML

Valid XML

0.309
AdmissionMedicationTesttestValidateAdmissionMedicationTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.36"/>
<code code="42346-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medications on Admission"/>
</act>

0.038
AdmissionMedicationTesttestValidateAdmissionMedicationClassCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.36"/>
<code code="42346-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medications on Admission"/>
</act>

0.005
AdmissionMedicationTesttestValidateAdmissionMedicationCodePSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.36"/>
<code code="42346-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medications on Admission"/>
</act>

0.018
AdmissionMedicationTesttestValidateAdmissionMedicationCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.36"/>
<code code="42346-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medications on Admission"/>
</act>

0.044
AdmissionMedicationTesttestValidateAdmissionMedicationMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.36"/>
<code code="42346-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medications on Admission"/>
</act>

0.004
AdmissionMedicationTesttestValidateAdmissionMedicationMedicationActivitySuccessInvalid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.36"/>
<code code="42346-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medications on Admission"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.36"/>
<code code="42346-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medications on Admission"/>
<entryRelationship typeCode="SUBJ">
<substanceAdministration classCode="SBADM">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<routeCode codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus"/>
<approachSiteCode codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
</substanceAdministration>
</entryRelationship>
</act>

0.023
AdvanceDirectiveObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationTemplateIdSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.008
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationClassCodeSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.005
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationMoodCodeSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.005
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationIdSuccessInvalid 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.22.4.48"/>
<id/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.020
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationStatusCodeSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>

0.041
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationEffectiveTimeSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<effectiveTime/>
</observation>

0.022
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationCodeSuccessInvalid 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.22.4.48"/>
<code code="304251008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="" displayName=""/>
<statusCode code="completed"/>
</observation>

0.086
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationHasStartingTimeSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<effectiveTime>
<low value="low"/>
<high value="high"/>
</effectiveTime>
</observation>

0.017
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationHasEndingTimeSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<effectiveTime>
<low value="low"/>
<high value="high"/>
</effectiveTime>
</observation>

0.015
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationVerifierSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="VRF"/>
</observation>

0.021
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationCustodianSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST"/>
</observation>

0.024
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationReferenceSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference>
<externalDocument/>
</reference>
</observation>

0.013
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationVerifierTimeSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="VRF"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="VRF">
<time/>
</participant>
</observation>

0.039
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationVerifierTypeCodeSuccessInvalid XML


Skip Fail Test

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="VRF"/>
</observation>

0.017
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationVerifierParticipantRoleSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="VRF"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="VRF">
<participantRole>
<telecom/>
<playingEntity/>
</participantRole>
</participant>
</observation>

0.028
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationCustodianCustodianRoleCustodianEntityNameSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST">
<participantRole classCode="ROL">
<addr/>
<playingEntity/>
</participantRole>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST">
<participantRole classCode="ROL">
<addr/>
<playingEntity>
<name/>
</playingEntity>
</participantRole>
</participant>
</observation>

0.041
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationCustodianCustodianRoleAddrSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST">
<participantRole classCode="ROL">
<playingEntity/>
</participantRole>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST">
<participantRole classCode="ROL">
<addr/>
<playingEntity/>
</participantRole>
</participant>
</observation>

0.039
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationCustodianCustodianRoleClassCodeSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST">
<participantRole>
<playingEntity/>
</participantRole>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST">
<participantRole classCode="AGNT">
<playingEntity/>
</participantRole>
</participant>
</observation>

0.024
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationCustodianCustodianRoleTelecomSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST">
<participantRole classCode="ROL">
<addr/>
<playingEntity/>
</participantRole>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST">
<participantRole>
<telecom/>
<playingEntity/>
</participantRole>
</participant>
</observation>

0.038
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationCustodianCustodianRolePlayingEntitySuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST">
<participantRole/>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST">
<participantRole>
<playingEntity/>
</participantRole>
</participant>
</observation>

0.027
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationCustodianTypeCodeSuccessInvalid XML


Skip Fail Test

Valid XML


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

0.017
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationCustodianAdvanceDirectiveObservationCustodianRoleSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<participant typeCode="CST">
<participantRole/>
</participant>
</observation>

0.041
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationReferenceExternalDocumentTextMediaTypeSuccessInvalid 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.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference>
<externalDocument>
<text><mediaType xsi:nil="true"/></text>
</externalDocument>
</reference>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference>
<externalDocument>
<text mediaType="JPEG"/>
</externalDocument>
</reference>
</observation>

0.019
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationReferenceExternalDocumentTextReferenceSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference>
<externalDocument>
<text/>
</externalDocument>
</reference>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference>
<externalDocument>
<text><reference/></text>
</externalDocument>
</reference>
</observation>

0.028
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationReferenceExternalDocumentIdSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference>
<externalDocument/>
</reference>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference>
<externalDocument>
<id/>
</externalDocument>
</reference>
</observation>

0.033
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationReferenceExternalDocumentTextSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference>
<externalDocument/>
</reference>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference>
<externalDocument>
<text/>
</externalDocument>
</reference>
</observation>

0.032
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationReferenceTypeCodeSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference>
<externalDocument/>
</reference>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference typeCode="REFR">
<externalDocument/>
</reference>
</observation>

0.029
AdvanceDirectiveObservationTesttestValidateAdvanceDirectiveObservationReferenceExternalDocumentSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
<reference>
<externalDocument/>
</reference>
</observation>

0.019
AdvanceDirectivesSectionEntriesOptionalTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AdvanceDirectivesSectionEntriesOptionalTesttestGetAdvanceDirectiveObservationsSuccessInvalid XML

Valid XML

0.023
AdvanceDirectivesSectionEntriesOptionalTesttestValidateAdvanceDirectivesSectionEntriesOptionalTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
</section>

0.007
AdvanceDirectivesSectionEntriesOptionalTesttestValidateAdvanceDirectivesSectionEntriesOptionalCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
</section>

0.042
AdvanceDirectivesSectionEntriesOptionalTesttestValidateAdvanceDirectivesSectionEntriesOptionalCodePSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
</section>

0.019
AdvanceDirectivesSectionEntriesOptionalTesttestValidateAdvanceDirectivesSectionEntriesOptionalTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
<title>title</title>
</section>

0.021
AdvanceDirectivesSectionEntriesOptionalTesttestValidateAdvanceDirectivesSectionEntriesOptionalTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
<text/>
</section>

0.007
AdvanceDirectivesSectionEntriesOptionalTesttestValidateAdvanceDirectivesSectionEntriesOptionalAdvanceDirectiveObservationSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>
</entry>
</section>

0.017
AdvanceDirectivesSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AdvanceDirectivesSectionTesttestValidateAdvanceDirectivesSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
</section>

0.045
AdvanceDirectivesSectionTesttestValidateAdvanceDirectivesSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
<title>title</title>
</section>

0.022
AdvanceDirectivesSectionTesttestValidateAdvanceDirectivesSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
<text/>
</section>

0.008
AdvanceDirectivesSectionTesttestValidateAdvanceDirectivesSectionAdvanceDirectiveObservationSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.48"/>
<code codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT"/>
<statusCode code="completed"/>
</observation>
</entry>
</section>

0.017
AdvanceDirectivesSectionTesttestValidateAdvanceDirectivesSectionEntriesOptionalTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
</section>

0.007
AdvanceDirectivesSectionTesttestValidateAdvanceDirectivesSectionCodePSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.21.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.21"/>
<code code="42348-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Advance Directives"/>
</section>

0.020
AdvanceDirectivesSectionTesttestGetConsolAdvanceDirectiveObservationsSuccessInvalid XML

Valid XML

0.018
AgeObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.000
AgeObservationTesttestValidateAgeObservationTemplateIdSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
</observation>

0.009
AgeObservationTesttestValidateAgeObservationClassCodeSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
</observation>

0.005
AgeObservationTesttestValidateAgeObservationMoodCodeSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
</observation>

0.005
AgeObservationTesttestValidateAgeObservationCodeSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96"/>
<statusCode code="completed"/>
</observation>

0.041
AgeObservationTesttestValidateAgeObservationStatusCodeSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
</observation>

0.042
AgeObservationTesttestValidateAgeObservationValueSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
<value xsi:type="PQ"/>
</observation>

0.027
AgeObservationTesttestValidateAgeObservationValueUnitsSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
<value xsi:type="PQ" unit="meter"/>
</observation>

0.013
AgeObservationTesttestValidateAgeObservationCodePSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
</observation>

0.019
AgeObservationTesttestValidateAgeObservationStatusCodePSuccessInvalid 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.22.4.31"/>
<code code="445518008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Age At Onset"/>
<statusCode code="completed"/>
</observation>

0.023
AllergiesSectionEntriesOptionalTesttestConstructorSuccessInvalid XML

Valid XML

0.000
AllergiesSectionEntriesOptionalTesttestValidateAllergiesSectionEntriesOptionalTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</section>

0.009
AllergiesSectionEntriesOptionalTesttestValidateAllergiesSectionEntriesOptionalCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</section>

0.043
AllergiesSectionEntriesOptionalTesttestValidateAllergiesSectionEntriesOptionalCodePSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</section>

0.025
AllergiesSectionEntriesOptionalTesttestValidateAllergiesSectionEntriesOptionalTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<title/>
</section>

0.021
AllergiesSectionEntriesOptionalTesttestValidateAllergiesSectionEntriesOptionalTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<text/>
</section>

0.008
AllergiesSectionEntriesOptionalTesttestValidateAllergiesSectionEntriesOptionalAllergyProblemActSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<entry>
<act/>
</entry>
</section>

0.017
AllergiesSectionEntriesOptionalTesttestGetAllergyProblemActsSuccessInvalid XML

Valid XML

0.019
AllergiesSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AllergiesSectionTesttestValidateAllergiesSectionEntriesOptionalTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</section>

0.008
AllergiesSectionTesttestValidateAllergiesSectionCodePSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</section>

0.020
AllergiesSectionTesttestValidateAllergiesSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</section>

0.044
AllergiesSectionTesttestValidateAllergiesSectionTitleSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<title>title</title>
</section>

0.022
AllergiesSectionTesttestValidateAllergiesSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<text/>
</section>

0.007
AllergiesSectionTesttestValidateAllergiesSectionAllergyProblemActSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.6.1"/>
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<entry>
<act/>
</entry>
</section>

0.017
AllergiesSectionTesttestGetConsolAllergyProblemActsSuccessInvalid XML

Valid XML

0.018
AllergyObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.000
AllergyObservationTesttestGetProblemEntryReactionObservationContainersSuccessInvalid XML

Valid XML

0.019
AllergyObservationTesttestGetSeveritySuccessInvalid XML

Valid XML

0.020
AllergyObservationTesttestValidateAllergyObservationValueOriginalTextSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD">
<originalText/>
</value>
</observation>

0.013
AllergyObservationTesttestValidateAllergyObservationOriginalTextReferenceSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD">
<originalText/>
</value>
</observation>

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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD">
<originalText><reference value="test"/></originalText>
</value>
</observation>

0.030
AllergyObservationTesttestValidateAllergyObservationOriginalTextReferenceValueSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD">
<originalText/>
</value>
</observation>

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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD">
<originalText><reference value="test"/></originalText>
</value>
</observation>

0.030
AllergyObservationTesttestValidateAllergyObservationReferenceValueSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.5"/>
<code code="10210-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="GENERAL STATUS"/>
<text><content ID="">
No particular health status observed.
</content></text>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code>
<originalText>Some sample text<reference value="#1.2.3.4"/></originalText>
</code>
<statusCode code="completed"/>
</observation>
</entry>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.5"/>
<code code="10210-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="GENERAL STATUS"/>
<text><content ID="1.2.3.4">
No particular health status observed.
</content></text>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code>
<originalText>Some sample text<reference value="#1.2.3.4"/></originalText>
</code>
<text>Some sample text<reference value="#1.2.3.4"/></text>
<statusCode code="completed"/>
</observation>
</entry>
</section>

0.071
AllergyObservationTesttestValidateAllergyObservationAllergyStatusInversionIndicatorSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<entryRelationship>
<observation/>
</entryRelationship>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<entryRelationship/>
</observation>

0.014
AllergyObservationTesttestValidateAllergyObservationReactionInversionIndicatorSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<entryRelationship>
<observation/>
</entryRelationship>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<entryRelationship/>
</observation>

0.014
AllergyObservationTesttestValidateAllergyObservationSeverityInversionIndicatorSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<entryRelationship>
<observation/>
</entryRelationship>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<entryRelationship/>
</observation>

0.014
AllergyObservationTesttestValidateAllergyObservationAllergyPlayingEntityCodeSystemsSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD" code="419511003" codeSystem="1.2.3.4" codeSystemName="" displayName=""/>
<participant>
<participantRole>
<playingEntity>
<code/>
</playingEntity>
</participantRole>
</participant>
</observation>

<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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD" code="123456" codeSystem="1.2.3.4" codeSystemName="" displayName=""/>
<participant>
<participantRole>
<playingEntity>
<code/>
</playingEntity>
</participantRole>
</participant>
</observation>

<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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD" code="12345" codeSystem="1.2.3.4" codeSystemName="" displayName=""/>
<participant>
<participantRole>
<playingEntity>
<code code="test" codeSystem="2.16.840.1.113883.6.88"/>
</playingEntity>
</participantRole>
</participant>
</observation>

<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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD" code="419511003" codeSystem="1.2.3.4" codeSystemName="" displayName=""/>
<participant>
<participantRole>
<playingEntity>
<code code="test" codeSystem="2.16.840.1.113883.4.9"/>
</playingEntity>
</participantRole>
</participant>
</observation>

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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD" code="419511003" codeSystem="1.2.3.4" codeSystemName="" displayName=""/>
<participant>
<participantRole>
<playingEntity>
<code code="test" codeSystem="2.16.840.1.113883.6.88"/>
</playingEntity>
</participantRole>
</participant>
</observation>

<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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD" code="419511003" codeSystem="1.2.3.4" codeSystemName="" displayName=""/>
<participant>
<participantRole>
<playingEntity>
<code code="test" codeSystem="2.16.840.1.113883.3.26.1.5"/>
</playingEntity>
</participantRole>
</participant>
</observation>

<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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD" nullFlavor="NA"/>
<participant>
<participantRole>
<playingEntity>
<code code="test" codeSystem="2.16.840.1.113883.4.9"/>
</playingEntity>
</participantRole>
</participant>
</observation>

0.171
AllergyObservationTesttestValidateAllergyObservationTemplateIdSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

0.008
AllergyObservationTesttestValidateAllergyObservationClassCodeSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

0.005
AllergyObservationTesttestValidateAllergyObservationMoodCodeSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

0.005
AllergyObservationTesttestValidateAllergyObservationIdSuccessInvalid 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.22.4.7"/>
<id/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

0.021
AllergyObservationTesttestValidateAllergyObservationCodePSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

0.020
AllergyObservationTesttestValidateAllergyObservationCodeSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
<statusCode code="completed"/>
</observation>

0.042
AllergyObservationTesttestValidateAllergyObservationStatusCodeSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

0.048
AllergyObservationTesttestValidateAllergyObservationEffectiveTimeSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<effectiveTime/>
</observation>

0.024
AllergyObservationTesttestValidateAllergyObservationValueSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<value xsi:type="CD" code="420134006" codeSystem="2.16.840.1.113883.6.96"/>
</observation>

0.103
AllergyObservationTesttestValidateAllergyObservationProblemEntryReactionObservationContainerSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<entryRelationship typeCode="MFST">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.9"/>
<statusCode code="completed"/>
</observation>
</entryRelationship>
</observation>

0.022
AllergyObservationTesttestValidateAllergyObservationSeveritySuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<entryRelationship typeCode="SUBJ">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.8"/>
<code code="SEV" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode" displayName="Severity observation"/>
<statusCode code="completed"/>
<interpretationCode codeSystem="2.16.840.1.113883.5.83" codeSystemName="ObservationInterpretation"/>
</observation>
</entryRelationship>
</observation>

0.022
AllergyObservationTesttestValidateAllergyObservationAllergyStatusObservationSuccessInvalid 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.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<entryRelationship typeCode="SUBJ">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.28"/>
<code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>
</entryRelationship>
</observation>

0.023
AllergyObservationTesttestValidateAllergyObservationParticipantSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant/>
</observation>

0.015
AllergyObservationTesttestValidateAllergyObservationAllergyObservationParticipantAllergyObservationParticipantRoleAllergyObservationPlayingEntityCodeOriginalTextSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code/>
</playingEntity>
</participantRole>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code>
<originalText/>
</code>
</playingEntity>
</participantRole>
</participant>
</observation>

0.024
AllergyObservationTesttestValidateAllergyObservationAllergyObservationParticipantAllergyObservationParticipantRoleAllergyObservationPlayingEntityOriginalTextReferenceSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code>
<originalText/>
</code>
</playingEntity>
</participantRole>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code>
<originalText><reference/></originalText>
</code>
</playingEntity>
</participantRole>
</participant>
</observation>

0.035
AllergyObservationTesttestValidateAllergyObservationAllergyObservationParticipantAllergyObservationParticipantRoleAllergyObservationPlayingEntityReferenceValueSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code>
<originalText><reference/></originalText>
</code>
</playingEntity>
</participantRole>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code>
<originalText><reference value="test"/></originalText>
</code>
</playingEntity>
</participantRole>
</participant>
</observation>

0.040
AllergyObservationTesttestValidateAllergyObservationAllergyObservationParticipantAllergyObservationParticipantRoleAllergyObservationPlayingEntityOriginalTextReferenceValueSuccessInvalid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.5"/>
<code code="10210-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="GENERAL STATUS"/>
<text><content ID="">
No particular health status observed.
</content></text>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code>
<originalText>Some sample text<reference value="#1.2.3.4"/></originalText>
</code>
</playingEntity>
</participantRole>
</participant>
</observation>
</entry>
</section>

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.2.5"/>
<code code="10210-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="GENERAL STATUS"/>
<text><content ID="1.2.3.4">
No particular health status observed.
</content></text>
<entry>
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<text>Some sample text<reference value="#1.2.3.4"/></text>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code>
<originalText>Some sample text<reference value="#1.2.3.4"/></originalText>
</code>
</playingEntity>
</participantRole>
</participant>
</observation>
</entry>
</section>

0.062
AllergyObservationTesttestValidateAllergyObservationAllergyObservationParticipantAllergyObservationParticipantRoleAllergyObservationPlayingEntityCodeTranslationSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code/>
</playingEntity>
</participantRole>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code>
<translation/>
</code>
</playingEntity>
</participantRole>
</participant>
</observation>

0.024
AllergyObservationTesttestValidateAllergyObservationAllergyObservationParticipantAllergyObservationParticipantRoleAllergyObservationPlayingEntityClassCodeSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code/>
</playingEntity>
</participantRole>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity classCode="MMAT"/>
</participantRole>
</participant>
</observation>

0.018
AllergyObservationTesttestValidateAllergyObservationAllergyObservationParticipantAllergyObservationParticipantRoleAllergyObservationPlayingEntityCodeSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity/>
</participantRole>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity>
<code/>
</playingEntity>
</participantRole>
</participant>
</observation>

0.038
AllergyObservationTesttestValidateAllergyObservationAllergyObservationParticipantAllergyObservationParticipantRoleClassCodeSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole/>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole classCode="MANU"/>
</participant>
</observation>

0.034
AllergyObservationTesttestValidateAllergyObservationAllergyObservationParticipantAllergyObservationParticipantRolePlayingEntitySuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole/>
</participant>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole>
<playingEntity/>
</participantRole>
</participant>
</observation>

0.025
AllergyObservationTesttestValidateAllergyObservationAllergyObservationParticipantTypeCodeSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant typeCode="CSM"/>
</observation>

0.031
AllergyObservationTesttestValidateAllergyObservationAllergyObservationParticipantParticipantRoleSuccessInvalid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant/>
</observation>

Valid XML


<observation xmlns="urn:hl7-org:v3" classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.7"/>
<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" codeSystemName="HL7ActCode"/>
<statusCode code="completed"/>
<participant>
<participantRole/>
</participant>
</observation>

0.020
AllergyObservationTesttestGetAllergyStatusObservationSuccessInvalid XML

Valid XML

0.021
AllergyProblemActTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AllergyProblemActTesttestValidateAllergyProblemActEffectiveTimeHighSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<statusCode code="completed"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<statusCode code="completed"/>
<effectiveTime>
<high/>
</effectiveTime>
</act>

0.020
AllergyProblemActTesttestValidateAllergyProblemActEffectiveTimeLowSuccessInvalid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<statusCode code="active"/>
</act>

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<statusCode code="active"/>
<effectiveTime>
<low/>
</effectiveTime>
</act>

0.019
AllergyProblemActTesttestValidateAllergyProblemActTemplateIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</act>

0.007
AllergyProblemActTesttestValidateAllergyProblemActClassCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</act>

0.005
AllergyProblemActTesttestValidateAllergyProblemActMoodCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</act>

0.005
AllergyProblemActTesttestValidateAllergyProblemActIdSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<id/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</act>

0.022
AllergyProblemActTesttestValidateAllergyProblemActCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</act>

0.042
AllergyProblemActTesttestValidateAllergyProblemActStatusCodeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<statusCode code="completed"/>
</act>

0.068
AllergyProblemActTesttestValidateAllergyProblemActEffectiveTimeSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<effectiveTime/>
</act>

0.024
AllergyProblemActTesttestValidateAllergyProblemActAllergyObservationSuccessInvalid XML


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

Valid XML


<act xmlns="urn:hl7-org:v3" classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.30"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
<entryRelationship typeCode="SUBJ">
<observation/>
</entryRelationship>
</act>

0.022
AllergyProblemActTesttestGetAllergyObservationsSuccessInvalid XML

Valid XML

0.019
AllergyStatusObservationTesttestConstructorSuccessInvalid XML

Valid XML

0.000
AllergyStatusObservationTesttestValidateAllergyStatusObservationTemplateIdSuccessInvalid 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.22.4.28"/>
<code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.008
AllergyStatusObservationTesttestValidateAllergyStatusObservationClassCodeSuccessInvalid 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.22.4.28"/>
<code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.008
AllergyStatusObservationTesttestValidateAllergyStatusObservationMoodCodeSuccessInvalid 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.22.4.28"/>
<code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.005
AllergyStatusObservationTesttestValidateAllergyStatusObservationCodeSuccessInvalid 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.22.4.28"/>
<code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.044
AllergyStatusObservationTesttestValidateAllergyStatusObservationStatusCodeSuccessInvalid 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.22.4.28"/>
<code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
</observation>

0.044
AllergyStatusObservationTesttestValidateAllergyStatusObservationValueSuccessInvalid 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.22.4.28"/>
<code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
<statusCode code="completed"/>
<value xsi:type="CE" code="55561003" codeSystem="2.16.840.1.113883.6.96"/>
</observation>

0.064
AnesthesiaSectionTesttestConstructorSuccessInvalid XML

Valid XML

0.001
AnesthesiaSectionTesttestGetMedicationActivitiesSuccessInvalid XML

Valid XML

0.019
AnesthesiaSectionTesttestValidateAnesthesiaSectionTemplateIdSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.25"/>
<code code="59774-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</section>

0.008
AnesthesiaSectionTesttestValidateAnesthesiaSectionCodeSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.25"/>
<code code="59774-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</section>

0.045
AnesthesiaSectionTesttestValidateAnesthesiaSectionCodePSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.25"/>
<code code="59774-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
</section>

0.020
AnesthesiaSectionTesttestValidateAnesthesiaSectionTextSuccessInvalid XML


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

Valid XML


<section xmlns="urn:hl7-org:v3">
<templateId root="2.16.840.1.113883.10.20.22.2.25"/>
<code code="59774-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
<text/>
</section>

0.007
AnesthesiaSectionTest