Trying to import a multiple of 4 patients at once using CCDA and receovied the following errors:
Error: Text data outside of root node.
Line: 613
Column: 189
Char: M
at error (…/ccdaservice/node_modules/sax/lib/sax.js:642:8)
at strictFail (…/ccdaservice/node_modules/sax/lib/sax.js:662:22)
at SAXParser.write (…/ccdaservice/node_modules/sax/lib/sax.js:960:13)
at Parser.exports.Parser.Parser.parseString (…/ccdaservice/node_modules/xml2js/lib/xml2js.js:273:29)
at Parser.parseString (…/ccdaservice/node_modules/xml2js/lib/xml2js.js:6:61)
at exports.parseString (…/ccdaservice/node_modules/xml2js/lib/xml2js.js:296:19)
at module.exports (…/ccdaservice/node_modules/xmljson/lib/to_json.js:17:9)
at Socket.eventData (…/ccdaservice/serveccda.js:2886:13)
at Socket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
Emitted ‘error’ event on Parser instance at:
at SAXParser.saxParser.onerror (…/ccdaservice/node_modules/xml2js/lib/xml2js.js:109:24)
at emit (…/ccdaservice/node_modules/sax/lib/sax.js:615:33)
at error (…/ccdaservice/node_modules/sax/lib/sax.js:644:3)
at strictFail (…/ccdaservice/node_modules/sax/lib/sax.js:662:22)
[… lines matching original stack trace …]
at Socket.eventData (…/ccdaservice/serveccda.js:2886:13)
events.js:377
throw er; // Unhandled ‘error’ event
Error: Text data outside of root node.
Line: 1840
Column: 189
Char: M
at error (…/ccdaservice/node_modules/sax/lib/sax.js:642:8)
at strictFail (…/ccdaservice/node_modules/sax/lib/sax.js:662:22)
at SAXParser.write (…/ccdaservice/node_modules/sax/lib/sax.js:960:13)
at Parser.exports.Parser.Parser.parseString (…/ccdaservice/node_modules/xml2js/lib/xml2js.js:273:29)
at Parser.parseString (…/ccdaservice/node_modules/xml2js/lib/xml2js.js:6:61)
at exports.parseString (…/ccdaservice/node_modules/xml2js/lib/xml2js.js:296:19)
at module.exports (…/ccdaservice/node_modules/xmljson/lib/to_json.js:17:9)
at Socket.eventData (…/ccdaservice/serveccda.js:2886:13)
at Socket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
Emitted ‘error’ event on Parser instance at:
at SAXParser.saxParser.onerror (…/ccdaservice/node_modules/xml2js/lib/xml2js.js:109:24)
at emit (…/ccdaservice/node_modules/sax/lib/sax.js:615:33)
at error (…/ccdaservice/node_modules/sax/lib/sax.js:644:3)
at strictFail (…/ccdaservice/node_modules/sax/lib/sax.js:662:22)
[… lines matching original stack trace …]
at Socket.eventData (…/ccdaservice/serveccda.js:2886:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to Moment.js | Guides for more info.
Arguments:
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: 12/11/2019, _f: undefined, _strict: undefined, _locale: [object Object]
Error
at Function.createFromInputFallback (…/ccdaservice/node_modules/moment/moment.js:324:94)
at configFromString (…/ccdaservice/node_modules/moment/moment.js:2366:11)
at configFromInput (…/ccdaservice/node_modules/moment/moment.js:2592:9)
at prepareConfig (…/ccdaservice/node_modules/moment/moment.js:2575:9)
at createFromConfig (…/ccdaservice/node_modules/moment/moment.js:2542:40)
at createLocalOrUTC (…/ccdaservice/node_modules/moment/moment.js:2629:12)
at createLocal (…/ccdaservice/node_modules/moment/moment.js:2633:12)
at Function.createInZone [as parseZone] (…/ccdaservice/node_modules/moment/moment.js:3935:24)
at exports.time (…/ccdaservice/oe-blue-button-generate/lib/translate.js:74:20)
at …/ccdaservice/oe-blue-button-generate/lib/engine.js:29:27
events.js:377
throw er; // Unhandled ‘error’ event
^
I see an array of issues, which I’m going to drop here without any more investigation yet, in case it’s something that can be easily resolved:
Not all have the option to import
Patient Name and DOB are blank
Previous imports are left in the list of imports and remain there even when logout. (Perhaps this isn’t an error.) I can’t see a way to remove them from the list.
Of the 4 imported, only 1, has an option to add it, the others just have the ‘show details’ option; or, on subsequent test import, none of them have the option to add.
PHP Warning: fread(): Length parameter must be greater than 0 in …/interface/modules/zend_modules/module/Documents/src/Documents/Controller/DocumentsController.php on line 86, referer: …/interface/modules/zend_modules/public/ccd/upload
Import 1 again and 3 of them now have an option to add; once 1 is imported, none have that option; import another 1 and then 4 have the option to add.
Patient Name and DOB are now displaying correctly for some but not all.