Unclear on why getting validation error for use of "_"

110 views
Skip to first unread message

Chris Barnes

unread,
Dec 16, 2021, 4:18:45 PM12/16/21
to Edge Test Tool (ETT)
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

sean....@gmail.com

unread,
Dec 16, 2021, 6:03:47 PM12/16/21
to Edge Test Tool (ETT)

Can you confirm the IG version and page you are referring discusses patient team not II

Nagesh Bashyam - Drajer

unread,
Dec 16, 2021, 11:54:58 PM12/16/21
to Chris Barnes, Edge Test Tool (ETT)
Root is normally an OID or a guid. 

--
You received this message because you are subscribed to the Google Groups "Edge Test Tool (ETT)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to edge-test-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/edge-test-tool/ae37a640-b4e5-48fa-bb3a-a28cadaf5f7cn%40googlegroups.com.

Chris Barnes

unread,
Dec 17, 2021, 9:20:48 AM12/17/21
to Edge Test Tool (ETT)
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).  Is this what you're asking for?

sean....@gmail.com

unread,
Dec 17, 2021, 9:38:55 AM12/17/21
to Edge Test Tool (ETT)

Look at the top of the PDF you are looking at to get the version

CDAR2_IG_CCDA_CLINNOTES_R1_DSTU2.1_2015AUG_ Vol2_2019JUNwith_errata


There is nothing on the PDF on page 894 regarding underline


and to reiterate it is meant to be a GUID






Chris Barnes

unread,
Dec 17, 2021, 11:34:59 AM12/17/21
to Edge Test Tool (ETT)
the version is CDAR2_IG_CCDA_CLINNOTES_R1_DSTU2.1_2015AUG_ Vol2_2019JUNwith_errata

My apologies as I'm not the SME and was trying to see if I could resolve, but will pull the SME directly into this thread.  I confirmed the SME was referencing this link at the bottom of page 894:  https://www.w3.org/TR/2008/REC-xml-20081126/.  You can search for "LOW LINE" on this page to find what he was referencing.

sean....@gmail.com

unread,
Dec 17, 2021, 2:15:55 PM12/17/21
to Edge Test Tool (ETT)
That is an older version o the spec
The element in question is the root element of the II structure 

here is the rules for values

hope that helps

Chris Barnes

unread,
Dec 20, 2021, 1:43:19 PM12/20/21
to Edge Test Tool (ETT)
Thank you all.  I think we have what we need at this point, but will raise additional questions if needed.
Reply all
Reply to author
Forward
0 new messages