CCDA Import not quiet right

CCDA Care Coordination Module setup and CCDA Globals enabled.
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - (Version 9? It complaines that it is unsupported).

But when CCDA Files are imported plenty of data does not appear in patient record.
It will import
Practice Fusion
All Medical Problems
Only 1 Allergy, 1 Immunization, 1 Medication, 1 Lab, 1 Vital and No Encounters
Soapware
All Demographics except Sex and Stats
History Lifestyle is good.
All Vitals, from multiple encounters, are dumped into a single Encounter
No Labs/Results, Medical Problems, Meds, Allergies, or Immunization

But it is not consistent.
For example If only 1 encounter Vitals import is perfect.

OS Ubuntu 18.04 OEMR 5.01(1)
Apache2 Error Log
es/zend_modules/module/Carecoordination/src/Carecoordination/Model/CarecoordinationTable.php on line 2797, referer: http://192.168.1.211/openemr/interface/modules/zend_modules/public/carecoordination/upload?id=1
[Sat Apr 11 23:11:59.473686 2020] [php7:warn] [pid 2187] [client 192.168.1.208:41752] PHP Warning: Use of undefined constant authUser - assumed ‘authUser’ (this will throw an Error in a future version of PHP) in /var/www/openemr/interface/modules/zend_modules/module/Carecoordination/src/Carecoordination/Model/CarecoordinationTable.php on line 2797, referer: http://192.168.1.211/openemr/interface/modules/zend_modules/public/carecoordination/upload?id=1
[Sat Apr 11 23:11:59.477222 2020] [php7:warn] [pid 2187] [client 192.168.1.208:41752] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/openemr/interface/modules/zend_modules/module/Carecoordination/src/Carecoordination/Model/CarecoordinationTable.php on line 1963, referer: http://192.168.1.211/openemr/interface/modules/zend_modules/public/carecoordination/upload?id=1
[Sat Apr 11 23:24:16.216376 2020] [php7:warn] [pid 2151] [client 192.168.1.208:42004] PHP Warning: Use of undefined constant authUser - assumed ‘authUser’ (this will throw an Error in a future version of PHP) in /var/www/openemr/interface/modules/zend_modules/module/Carecoordination/src/Carecoordination/Model/CarecoordinationTable.php on line 2797, referer: http://192.168.1.211/openemr/interface/modules/zend_modules/public/carecoordination/upload?id=1

1 Like

Ah yes, it is true. Import needs to improve. So does review.
Many items will be put in patient External Data in demographics.
Still, I haven’t had time to improve this but we need to do for MU3.

I ain’t much of a coder/programmer but where can I start peeking?

I don’t admit to anything either.:slight_smile:

This all runs out of a Zend module with the main area of concern being:
interface/modules/zend_modules/module/Carecoordination/src/Carecoordination/Controller/CarecoordinationController.php

Around L-115 will get you started with the document xml parse. From here you could follow the code to storage, what we parse and where it goes and Good Luck!

@sjpadgett @stephenwaite
I have to poke around this area. I have not found instructions on how to import CCDA. I tried it in the demo system and could not figure it out.

@APerez Can you walk me through the steps you took to get the import you reported earlier in April?

not sure if anybody still cares but here’s the wiki link to how to use (including importing records) the module.
https://www.open-emr.org/wiki/index.php/Use_the_Carecoordination_module