error parsing ICCBBA UDI

49 views
Skip to first unread message

kylem...@gmail.com

unread,
Jan 15, 2021, 10:01:56 AM1/15/21
to Edge Test Tool (ETT)
Appendix B of the CCDA Companion Guide addresses the UDI Organizer template, and it speaks on page 24 how to identify the different assigning authorities: GS1, ICCBA, HIBCC with their respective OIDs.

When I use GS1 or HIBCC, the tool accepts these OIDs, but when I use ICCBBA with its OID of 2.16.840.1.113883.6.18 I get an error (see attached file around line number 1868 - tool error is below). Is this a bug in the validator not recognizing ICCBBA or something wrong in my CCDA?

Error - 

The 'DeviceIdentifierObservationDeviceIdentifierObservationIIUDIissuingagency' invariant is violated on 'org.openhealthtools.mdht.uml.cda.consol.impl.DeviceIdentifierObservationImpl@49632595{http:///resource86.xml#//@clinicalDocument/@component/@structuredBody/@component.7/@section/@entry.1/@procedure/@entryRelationship.0/@organizer/@component.0/@observation}'

/ClinicalDocument/component/structuredBody/component[8]/section/entry[2]/procedure/entryRelationship/organizer/component/observation

Line number: 1847
b1_ccd_r21_Sample1_AliceNewman_v1_14Jan2021_AltUDI.xml

kylem...@gmail.com

unread,
Jan 29, 2021, 1:18:05 PM1/29/21
to Edge Test Tool (ETT)
Is there any update on this error/bug? It is still generating error after the January update. 

Kyle

Dan Brown SITE

unread,
Feb 1, 2021, 3:39:59 PM2/1/21
to Edge Test Tool (ETT)
It does appear to be a bug. We will confirm for sure soon. Thanks for your patience.

sean....@gmail.com

unread,
Feb 9, 2021, 2:00:53 PM2/9/21
to Edge Test Tool (ETT)
Hi Kyle. -  there was an error in the regular expression for the validation which has been fixed and will be part of the next release.

here is the current test cases

Running validateDeviceIdentifierObservationIIUDIissuingagency



<ocl>

self.value->excluding(null)->select(isNullFlavorUndefined())->exists( isNullFlavorDefined() or (  matches('root','\\b1.3.160\\b') or  matches('root','\\b2.16.840.1.113883.6.18\\b') or  matches('root','\\b2.16.840.1.113883.6.40\\b') ) )

</ocl>



Fail Snippet

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

  <templateId root="2.16.840.1.113883.10.20.22.4.304" extension="2019-06-21"/>

  <code code="C101722" codeSystem="2.16.840.1.113883.3.26.1.1" codeSystemName="NCI Thesaurus" displayName="Primary DI Number"/>

  <value xsi:type="II" root="NOTINVALUES"/>

</observation>


<diagnostic>

The 'DeviceIdentifierObservationDeviceIdentifierObservationIIUDIissuingagency' invariant is violated on 'org.openhealthtools.mdht.uml.cda.consol.impl.DeviceIdentifierObservationImpl@74fab04a{#//}'

</diagnostic>



Pass Snippet

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

  <value xsi:type="II" root="1.3.160"/>

</observation>


Pass Snippet

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

  <value xsi:type="II" root="2.16.840.1.113883.6.18"/>

</observation>


Pass Snippet

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

  <value xsi:type="II" root="2.16.840.1.113883.6.40"/>

</observation>


thanks

Sean 

Dan Brown SITE

unread,
Feb 9, 2021, 2:16:50 PM2/9/21
to Edge Test Tool (ETT)
Note: This fix will be in the February release. It will fix the incorrect template ID for Device identifier Observation which was causing the UDI invariant violation parsing error. Thanks.
Reply all
Reply to author
Forward
0 new messages