# Duplicate entries in patient encounter history \*\*solved\*\*

**URL:** <https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889>\
**Category:** Day-to-Day Users\
**Tags:** question\
**Created:** [April 9, 2018, 1:48pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889 "2018-04-09T13:48:32Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![roland](https://community.open-emr.org/user_avatar/community.open-emr.org/roland/32/13141_2.png) [@roland](https://community.open-emr.org/u/roland)\
**Post date:** [April 9, 2018, 1:48pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/1 "2018-04-09T13:48:32Z")

</div>

Hi, I try again since there was no answer in 3 weeks, I guess you were all too busy with the new 5.0.1 rel.  
So  
Hello there,

Probably I missed something or done something wrong, but is there a way to get around the duplicate entries for every patient document in the encounter history.  
When I link uploaded x-rays to an encounter, it appears there ok, but also leaves the document link in the overview, so any document is mentioned twice in the list. It really clutters up the patient’s encounters history.  
It did that in version 4.2 and also in version 5.0 . What am I doing wrong?  
See the screenshots

 ![Screenshot%20from%202018-04-09%2015-21-18](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/4/4617a2bd3cd7c3183364440b1ecdecc22b370f5c.png) ![Screenshot%20from%202018-04-09%2015-15-24](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/5/5676cd8efdd8626263068d45692bf07de0fd66e9.png)

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [April 30, 2018, 12:09pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/2 "2018-04-30T12:09:04Z")

</div>

hi @roland, could you upload the document here for testing purposes? thank you

---

<div class="post-metadata">

**Author:** ![roland](https://community.open-emr.org/user_avatar/community.open-emr.org/roland/32/13141_2.png) [@roland](https://community.open-emr.org/u/roland)\
**Post date:** [April 30, 2018, 4:11pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/3 "2018-04-30T16:11:21Z")

</div>

hi @stephenwaite, thanks for your fast reply. it does that with any document; here are two of them[Anonymized20180429(1).dcm](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/8/89f77d695f59a7da232fe52021a922ec0654f70b.dcm) (282.7 KB)  
and

 ![2Anonymyzed_Dog_CR_from_11_3_2015_S0_I0](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/e/e8fb23d972d09ee0be7a85f9b7758339f42e2eb5.JPG)  
thanks  
roland

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [April 30, 2018, 4:20pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/4 "2018-04-30T16:20:46Z")

</div>

thank you @roland, am not able to duplicate here [https://one.openemr.io/openemr/interface/login/login.php?site=default](https://one.openemr.io/openemr/interface/login/login.php?site=default) under john doe

would you consider upgrading to the recently released 5.0.1(1)?

---

<div class="post-metadata">

**Author:** ![roland](https://community.open-emr.org/user_avatar/community.open-emr.org/roland/32/13141_2.png) [@roland](https://community.open-emr.org/u/roland)\
**Post date:** [April 30, 2018, 5:16pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/5 "2018-04-30T17:16:15Z")

</div>

@stephenwaite,  
Well, but I could: go and see patient John Doe again in the link you sent me. If that is openemr 5.0.1+ then upgrading won’t do much good.  
thanks  
Roland

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [April 30, 2018, 5:17pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/6 "2018-04-30T17:17:22Z")

</div>

ok, thank you, looks like there might be a 🐛 when you tag a document to an encounter

---

<div class="post-metadata">

**Author:** ![roland](https://community.open-emr.org/user_avatar/community.open-emr.org/roland/32/13141_2.png) [@roland](https://community.open-emr.org/u/roland)\
**Post date:** [April 30, 2018, 5:20pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/7 "2018-04-30T17:20:43Z")

</div>

yep, and if there are many documents in a patients records the past encounters overview is endless and the doctor really gets confused…  
thanks for replying so fast  
Roland

---

<div class="post-metadata">

**Author:** ![roland](https://community.open-emr.org/user_avatar/community.open-emr.org/roland/32/13141_2.png) [@roland](https://community.open-emr.org/u/roland)\
**Post date:** [April 30, 2018, 5:36pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/8 "2018-04-30T17:36:10Z")

</div>

@stephenwaite, i make a living hunting for 🐛🐛🐛 on and inside our 🐄🐕 patients, but this one i have not found yet. would be a great improvement if it is 🔬 hunted down and eliminated

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [April 30, 2018, 5:39pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/9 "2018-04-30T17:39:03Z")

</div>

should be pretty simple to fix in patient\_file/history/encounters.php

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [April 30, 2018, 5:48pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/10 "2018-04-30T17:48:20Z")

</div>

lol… Pretty brave use of the word “simple”. I abandoned that word when I thought it would be simple to change button groupings in Billing 🙂  
I think it always worked this way but agree it shouldn’t. Let me know if I can help.

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [April 30, 2018, 5:49pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/11 "2018-04-30T17:49:11Z")

</div>

uh oh, jinxed myself again 🎲 🙂

---

<div class="post-metadata">

**Author:** ![roland](https://community.open-emr.org/user_avatar/community.open-emr.org/roland/32/13141_2.png) [@roland](https://community.open-emr.org/u/roland)\
**Post date:** [April 30, 2018, 6:31pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/12 "2018-04-30T18:31:39Z")

</div>

@sjpadgett + @stephenwaite: yes, please help. if you guys change it, it’s permanent. If I try it, not even sure if i can, it will be gone with the next update…🙂

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [April 30, 2018, 7:10pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/13 "2018-04-30T19:10:27Z")

</div>

here’s a simple fix that is testing well for me, [fix dupe display when tag encounters by stephenwaite · Pull Request #1593 · openemr/openemr · GitHub](https://github.com/openemr/openemr/pull/1593/commits/45b07fdf98124011461ecd8204595a7db64aece8)  
hopefully it works ok on your install 🐦

---

<div class="post-metadata">

**Author:** ![roland](https://community.open-emr.org/user_avatar/community.open-emr.org/roland/32/13141_2.png) [@roland](https://community.open-emr.org/u/roland)\
**Post date:** [April 30, 2018, 9:44pm UTC](https://community.open-emr.org/t/duplicate-entries-in-patient-encounter-history-solved/9889/14 "2018-04-30T21:44:27Z")

</div>

@stephenwaite, wow, thank you !! I installed it in an old 5.0.1 git-hub version first, that i use to test new things, and then on the trial 5.01 official brand new release (not using yet), and finally in our 5.0.0 production copy. The encounter history now looks perfect. no more double entries, and i can re-tag and undo tagging without problems. For compaison have a look at this new screenshot. Definitely an improvement. Thanks a bunch. The quickest fix in our openemr4vets history ! 🐾 🍺 no 🍺🍺

 ![Screenshot%20from%202018-04-30%2023-31-55](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/7/796fcd8c772a5574e357804ac09924d995022c17.png)
