We've confirmed that
in the
HL7 Implementation Guide for CDA® Release 2: Consolidated CDA
Templates for Clinical Notes (US Realm) Draft Standard for Trial Use Release
2.1 Volume 2 (page 894), that
“… LOW LINE (underscore)… are
explicitly permitted.”
Thus, we're confused as to why we're getting the following errors. I'm unable to attach the xml file for some reason so not sure how best to provide it for debugging...
I'll drop the XML surrounding the line numbers provided in the errors (lines 1739 to 1968):
<observation classCode="OBS" moodCode="GOL">
<!-- Goal Observation -->
<templateId root="2.16.840.1.113883.10.20.22.4.121"/>
<id root="79a9d9df-907a-44ed-9b35-e83df4ad2a5a"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" nullFlavor="NI"/>
<statusCode code="active"/>
<effectiveTime value="20210609"/>
<author>
<templateId root="2.16.840.1.113883.10.20.22.4.119"/>
<time value="20210609094020-0500"/>
<assignedAuthor>
<id root="DBA_PATCH_20210609"/>
<assignedPerson>
<name>
<given>athenaHealth</given>
<family>PATCH</family>
</name>
</assignedPerson>
</assignedAuthor>
</author>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="GOL">
<!-- Goal Observation -->
<templateId root="2.16.840.1.113883.10.20.22.4.121"/>
<id root="19cd7522-10a8-4c15-8f3c-fc4abbb3790c"/>
<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" nullFlavor="NI"/>
<statusCode code="active"/>
<effectiveTime value="20210609"/>
<author>
<templateId root="2.16.840.1.113883.10.20.22.4.119"/>
<time value="20210609094020-0500"/>
<assignedAuthor>
<id root="DBA_PATCH_20210609"/>
<assignedPerson>
<name>
<given>athenaHealth</given>
<family>PATCH</family>
</name>
</assignedPerson>
</assignedAuthor>
</author>
</observation>
</entry>
</section>
</component>
<component>
<section>
<!-- Health Concern section -->
<templateId extension="2015-08-01" root="2.16.840.1.113883.10.20.22.2.58"/>
<code code="75310-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Health Concerns Document"/>
<title>Health Concerns Section</title>
<text>
<table>
<thead>
<tr>
<th>Related Observation</th>
</tr>
</thead>
<tbody>
<tr>
<td>Overweight</td>
</tr>
<tr>
<td>Severe hypothyroidism</td>
</tr>
<tr>
<td>Essential hypertension</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Concern</th>
<th>Status</th>
<th>Updated by</th>
<th>Updated on</th>
</tr>
</thead>
<tbody>
<tr>
<td styleCode="Botrule">overweight</td>
<td styleCode="Botrule">Active</td>
<td styleCode="Botrule">athenaHealth PATCH</td>
<td styleCode="Botrule">06/09/2021</td>
</tr>
<tr>
<td styleCode="Botrule">severe hypothyroidism</td>
<td styleCode="Botrule">Active</td>
<td styleCode="Botrule">athenaHealth PATCH</td>
<td styleCode="Botrule">06/09/2021</td>
</tr>
<tr>
<td styleCode="Botrule">essential hypertension</td>
<td styleCode="Botrule">Active</td>
<td styleCode="Botrule">athenaHealth PATCH</td>
<td styleCode="Botrule">06/09/2021</td>
</tr>
</tbody>
</table>
</text>
<entry>
<!-- Health Status Observation -->
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.5"/>
<templateId extension="2014-06-09" root="2.16.840.1.113883.10.20.22.4.5"/>
<id root="8b01b9b6-cacf-4f17-ace9-144348c07c35"/>
<code code="11323-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="General health"/>
<statusCode code="completed"/>
<value code="238131007" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Overweight" xsi:type="CD"/>
</observation>
</entry>
<entry>
<!-- Health Status Observation -->
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.5"/>
<templateId extension="2014-06-09" root="2.16.840.1.113883.10.20.22.4.5"/>
<id root="3a9b6592-bc6a-4101-b652-e539867def72"/>
<code code="11323-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="General health"/>
<statusCode code="completed"/>
<value code="83986005" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Severe hypothyroidism" xsi:type="CD"/>
</observation>
</entry>
<entry>
<!-- Health Status Observation -->
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.5"/>
<templateId extension="2014-06-09" root="2.16.840.1.113883.10.20.22.4.5"/>
<id root="cc5818d3-6ae6-4afe-8b2c-c2a9c2a1e657"/>
<code code="11323-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="General health"/>
<statusCode code="completed"/>
<value code="59621000" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Essential hypertension" xsi:type="CD"/>
</observation>
</entry>
<entry>
<!-- Health Concern Act -->
<act classCode="ACT" moodCode="EVN">
<templateId extension="2015-08-01" root="2.16.840.1.113883.10.20.22.4.132"/>
<id root="8c020342-aeaa-4aff-b6e7-687f2cad7bf1"/>
<code code="75310-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Health Concern"/>
<statusCode code="active"/>
<entryRelationship typeCode="REFR">
<observation classCode="OBS" moodCode="EVN">
<templateId extension="2015-08-01" root="2.16.840.1.113883.10.20.22.4.4"/>
<templateId root="2.16.840.1.113883.10.20.22.4.4"/>
<id root="0440a875-1579-4a12-99b0-a0f83b5a0e0d"/>
<code code="55607006" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Problem">
<translation code="75326-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem HL7.CCDAR2"/>
</code>
<statusCode code="completed"/>
<effectiveTime>
<low nullFlavor="UNK"/>
</effectiveTime>
<value code="238131007" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="overweight" xsi:type="CD"/>
<author>
<templateId root="2.16.840.1.113883.10.20.22.4.119"/>
<time value="20210609094020-0500"/>
<assignedAuthor>
<id root="DBA_PATCH_20210609"/>
<assignedPerson>
<name>
<given>athenaHealth</given>
<family>PATCH</family>
</name>
</assignedPerson>
</assignedAuthor>
</author>
</observation>
</entryRelationship>
<entryRelationship typeCode="REFR">
<observation classCode="OBS" moodCode="EVN">
<templateId extension="2015-08-01" root="2.16.840.1.113883.10.20.22.4.4"/>
<templateId root="2.16.840.1.113883.10.20.22.4.4"/>
<id root="e82343b1-ad60-4943-90f6-9a02e7294598"/>
<code code="55607006" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Problem">
<translation code="75326-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem HL7.CCDAR2"/>
</code>
<statusCode code="completed"/>
<effectiveTime>
<low nullFlavor="UNK"/>
</effectiveTime>
<value code="83986005" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="severe hypothyroidism" xsi:type="CD"/>
<author>
<templateId root="2.16.840.1.113883.10.20.22.4.119"/>
<time value="20210609094020-0500"/>
<assignedAuthor>
<id root="DBA_PATCH_20210609"/>
<assignedPerson>
<name>
<given>athenaHealth</given>
<family>PATCH</family>
</name>
</assignedPerson>
</assignedAuthor>
</author>
</observation>
</entryRelationship>
<entryRelationship typeCode="REFR">
<observation classCode="OBS" moodCode="EVN">
<templateId extension="2015-08-01" root="2.16.840.1.113883.10.20.22.4.4"/>
<templateId root="2.16.840.1.113883.10.20.22.4.4"/>
<id root="616ab2ae-0da5-43fa-ad7a-eb12c743eb72"/>
<code code="55607006" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Problem">
<translation code="75326-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem HL7.CCDAR2"/>
</code>
<statusCode code="completed"/>
<effectiveTime>
<low nullFlavor="UNK"/>
</effectiveTime>
<value code="59621000" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="essential hypertension" xsi:type="CD"/>
<author>
<templateId root="2.16.840.1.113883.10.20.22.4.119"/>
<time value="20210609094020-0500"/>
<assignedAuthor>
<id root="DBA_PATCH_20210609"/>
<assignedPerson>
<name>
<given>athenaHealth</given>
<family>PATCH</family>
</name>
</assignedPerson>
</assignedAuthor>
</author>
</observation>
</entryRelationship>
</act>
</entry>
</section>
</component>
I'm told all of these errors are related to the use of the "_" which is permitted.
Thanks,
Chris
Error -
cvc-datatype-valid.1.2.3: 'DBA_PATCH_20210609' is not a valid value of union type 'uid'.
Line Number: Line number not available
Error -
cvc-attribute.3: The value 'DBA_PATCH_20210609' of attribute 'root' on element 'id' is not valid with respect to its type, 'uid'.
Line Number: Line number not available
Error -
cvc-datatype-valid.1.2.3: 'DBA_PATCH_20210609' is not a valid value of union type 'uid'.
Line Number: Line number not available
Error -
cvc-attribute.3: The value 'DBA_PATCH_20210609' of attribute 'root' on element 'id' is not valid with respect to its type, 'uid'.
Line Number: Line number not available
Error -
cvc-datatype-valid.1.2.3: 'DBA_PATCH_20210609' is not a valid value of union type 'uid'.
Line Number: Line number not available
Error -
cvc-attribute.3: The value 'DBA_PATCH_20210609' of attribute 'root' on element 'id' is not valid with respect to its type, 'uid'.
Line Number: Line number not available
Error -
cvc-datatype-valid.1.2.3: 'DBA_PATCH_20210609' is not a valid value of union type 'uid'.
Line Number: Line number not available
Error -
cvc-attribute.3: The value 'DBA_PATCH_20210609' of attribute 'root' on element 'id' is not valid with respect to its type, 'uid'.
Line Number: Line number not available
Error -
cvc-datatype-valid.1.2.3: 'DBA_PATCH_20210609' is not a valid value of union type 'uid'.
Line Number: Line number not available
Error -
cvc-attribute.3: The value 'DBA_PATCH_20210609' of attribute 'root' on element 'id' is not valid with respect to its type, 'uid'.
Line Number: Line number not available
Error -
The feature 'root' of 'org.eclipse.mdht.uml.hl7.datatypes.impl.IIImpl@22439862{http:///resource7201.xml#//@clinicalDocument/@component/@structuredBody/@component.17/@section/@entry.0/@observation/@author.0/@assignedAuthor/@id.0}' contains a bad value
/ClinicalDocument/component/structuredBody/component[18]/section/entry/observation/author/assignedAuthor/id
Line Number: 1749
Error -
The feature 'root' of 'org.eclipse.mdht.uml.hl7.datatypes.impl.IIImpl@44776c3b{http:///resource7201.xml#//@clinicalDocument/@component/@structuredBody/@component.17/@section/@entry.1/@observation/@author.0/@assignedAuthor/@id.0}' contains a bad value
/ClinicalDocument/component/structuredBody/component[18]/section/entry[2]/observation/author/assignedAuthor/id
Line Number: 1772
Error -
The feature 'root' of 'org.eclipse.mdht.uml.hl7.datatypes.impl.IIImpl@6e13ea37{http:///resource7201.xml#//@clinicalDocument/@component/@structuredBody/@component.18/@section/@entry.3/@act/@entryRelationship.0/@observation/@author.0/@assignedAuthor/@id.0}' contains a bad value
/ClinicalDocument/component/structuredBody/component[19]/section/entry[4]/act/entryRelationship/observation/author/assignedAuthor/id
Line Number: 1898
Error -
The feature 'root' of 'org.eclipse.mdht.uml.hl7.datatypes.impl.IIImpl@366dbbd7{http:///resource7201.xml#//@clinicalDocument/@component/@structuredBody/@component.18/@section/@entry.3/@act/@entryRelationship.1/@observation/@author.0/@assignedAuthor/@id.0}' contains a bad value
/ClinicalDocument/component/structuredBody/component[19]/section/entry[4]/act/entryRelationship[2]/observation/author/assignedAuthor/id
Line Number: 1926
Error -
The feature 'root' of 'org.eclipse.mdht.uml.hl7.datatypes.impl.IIImpl@138bd2a8{http:///resource7201.xml#//@clinicalDocument/@component/@structuredBody/@component.18/@section/@entry.3/@act/@entryRelationship.2/@observation/@author.0/@assignedAuthor/@id.0}' contains a bad value
/ClinicalDocument/component/structuredBody/component[19]/section/entry[4]/act/entryRelationship[3]/observation/author/assignedAuthor/id
Line Number: 1954
Error -
The value 'DBA_PATCH_20210609' must match one of {'[0-2](\.(0|[1-9][0-9]*))*', '[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}', '[A-Za-z][A-Za-z0-9\-]*'}
Line Number: Line number not available
Error -
The value 'DBA_PATCH_20210609' must match one of {'[0-2](\.(0|[1-9][0-9]*))*', '[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}', '[A-Za-z][A-Za-z0-9\-]*'}
Line Number: Line number not available
Error -
The value 'DBA_PATCH_20210609' must match one of {'[0-2](\.(0|[1-9][0-9]*))*', '[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}', '[A-Za-z][A-Za-z0-9\-]*'}
Line Number: Line number not available
Error -
The value 'DBA_PATCH_20210609' must match one of {'[0-2](\.(0|[1-9][0-9]*))*', '[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}', '[A-Za-z][A-Za-z0-9\-]*'}
Line Number: Line number not available
Error -
The value 'DBA_PATCH_20210609' must match one of {'[0-2](\.(0|[1-9][0-9]*))*', '[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}', '[A-Za-z][A-Za-z0-9\-]*'}
Line Number: Line number not available