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
patient_report.php bug from forum, appears on 5.0.0 #1409
Comments
I can't reproduce this issue. Added screenshots on the forum: |
hi @sssopen , it looks like it was done with the soap note form |
Hi stephenwaite, |
thanks for diligently researching this bug @sssopen , @bradymiller miller has a nice point there that it shows up here |
then select the encounters and choose patient report |
Thanks. I found it and was able to recreate the issue. I will look into it. |
Hello experts, This seems like a design issue. Encounters are created with the user specified date so I can create an encounter with the date 04/08/18 (current date 04/04/18). However, when we add a note (ex. SOAP) to an encounter we create the note with the current timestamp (04/04/18). When we pull the encounters and notes for the report with the below SQL, the resultset is giving the data the way report is being displayed. Do we really need to allow future dated encounters? SELECT forms.encounter, forms.form_id, forms.form_name, |
Taking another look at it and the code, the data retrieved should work. Seems like there is some mess in the code. |
Okay. I think I found the issue. Code is expecting to have records in particular a order. "New Patient Encounter" record come before the other notes in that encounter. However, that's not happening if you look at the SQL result: Based on that resultset, the report output will be: Either we make the code changes to resolve this issue or we make a change in SQL to return the data the way code is expecting. So making SQL could be easier. If I change the SQL ORDER BY: SELECT forms.encounter, forms.form_id, forms.form_name, //ORDER BY form_encounter.encounter DESC, form_encounter.date DESC, fdate ASC -- OLD The results will be in the order the way code is expecting: The report output will be correct, encounters will have their own notes: |
really nice research and explanation @sssopen , thank you |
Hi Brady, Let me know if I should push my change. |
Sorry for the delay. Was travelling out of country for a bit. I received this info regarding this from somebody via email regarding this and fix 1015: |
hi @sssopen , |
Hi Brady |
@sssopen , just sent you an email :) |
@bradymiller is this still an issue? |
I don't think so, but I honestly can't figure out if it is. Per the forum thread, it appears this is a non-issue: @stephenwaite , any thoughts on this? |
@kacyw , forgot to mention you on above post |
guess we should try to recreate the bug to see if it addresses @vrjulas original report, @epsdky has a Fermat like comment that leaves me mystified |
No description provided.
The text was updated successfully, but these errors were encountered: