Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ccda zip import and php warnings and deprecations #7416

Merged
merged 5 commits into from May 2, 2024

Conversation

stephenwaite
Copy link
Sponsor Member

@stephenwaite stephenwaite commented May 1, 2024

Fixes #7411 #7417

Short description of what this resolves:

Changes proposed in this pull request:

@sjpadgett
Copy link
Sponsor Member

At L-1015 in interface/modules/zend_modules/module/Carecoordination/src/Carecoordination/Controller/CarecoordinationController.php
Change to:
if ($componentCount > 0) {

This will fix issue with zip though only tested to depth of 1 dir.

@stephenwaite stephenwaite changed the title fix: php warnings and deprecations ccda fix: ccda zip import and php warnings and deprecations May 1, 2024
Comment on lines 376 to 381
if (!empty($this->templateData['field_name_value_array']['encounter'][$i])) {
$this->templateData['field_name_value_array']['encounter'][$i]['extension'] = $entry['encounter']['id']['extension'];
$this->templateData['field_name_value_array']['encounter'][$i]['root'] = $entry['encounter']['id']['root'];
$this->templateData['field_name_value_array']['encounter'][$i]['date'] = ($entry['encounter']['effectiveTime']['value'] ?? null) ?: $entry['encounter']['effectiveTime']['low']['value'] ?? null;
$this->templateData['field_name_value_array']['encounter'][$i]['date_end'] = $entry['encounter']['effectiveTime']['high']['value'] ?? null;
}
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't do. This may/will initially be empty but is init'ed by import data.

This is the parser for the import and the $this->templateData is unknowable and we should allow all arrays to be populated even with empty or null because those values may be a trigger in the actual DB import which happens after user reviews.

Please remove all conditionals put in and allow those arrays be init'ed. If they aren't they may end up causing warnings in DB import if they are expected but not there.

I hope I've been clear and if not please let me know.

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is only place that concerns me otherwise thanks for fixing these.

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to show how this break encounters. Otherwise import to patient is working better than I hoped but I see on area I need to investigate, vitals only populates using first encounter and not all vitals which I do parse and show in ccda.
I may do some fixes and push to your branch if that's okay?

image

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd think Stephen I'd have better things to do besides picking on!:)

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind! Just be sure to revert above so import doesn't break.

Copy link
Sponsor Member

@sjpadgett sjpadgett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@stephenwaite
Copy link
Sponsor Member Author

thank you @sjpadgett !

@stephenwaite stephenwaite merged commit 842ffbe into openemr:master May 2, 2024
25 checks passed
@stephenwaite stephenwaite deleted the iss7411 branch May 2, 2024 23:54
stephenwaite added a commit to stephenwaite/openemr that referenced this pull request May 3, 2024
* fix: php warns, deprecates

* fix: php warns, deprecates openemr-cmd irp

* check for non zero component count to start ccda zip import

* fix couple other php warnings

* remove conditional per Jerry's review
@bradymiller
Copy link
Sponsor Member

dance-bear

stephenwaite added a commit that referenced this pull request May 7, 2024
* fix: php warns, deprecates

* fix: php warns, deprecates openemr-cmd irp

* check for non zero component count to start ccda zip import

* fix couple other php warnings

* remove conditional per Jerry's review
sjpadgett added a commit to sjpadgett/openemr that referenced this pull request May 7, 2024
…_last

* 'master' of https://github.com/openemr/openemr:
  Hide dashboard card 2 (openemr#7423)
  fix: ccda zip import and php warnings and deprecations (openemr#7416)
  Fee sheet and Codes revenue code (openemr#7415)
  Refactor UB04 837i X12 feature to make work again. (openemr#7412)
  feat: support loop 2420E (openemr#7405)
  Fix: Revert "Fix: OpenEMR logs sensitive information such as payment details (openemr#7341)" (openemr#7396)
  Weno better error handling from fetches (openemr#7408)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Unable to import CCDA XML files in Docker 7.0.3
3 participants