# Patch for Lab results receipt alert

**URL:** <https://community.open-emr.org/t/patch-for-lab-results-receipt-alert/6031>\
**Category:** OpenEMR Development\
**Created:** [July 22, 2013, 8:27pm UTC](https://community.open-emr.org/t/patch-for-lab-results-receipt-alert/6031 "2013-07-22T20:27:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 22, 2013, 8:27pm UTC](https://community.open-emr.org/t/patch-for-lab-results-receipt-alert/6031/1 "2013-07-22T20:27:30Z")

</div>

**[mdsupport](https://sourceforge.net/u/mdsupport/)** wrote on [Monday, July 22, 2013](https://sourceforge.net/p/openemr/discussion/202506/thread/6dfbd706/#9e31):

This [patch](https://github.com/mdsupport/openemr/commit/f56a8805767fc75415f17ae88bacf62b4b7bf521) will alert ordering provider of receipt of lab results. Unfortunately the standard function does not allow any additional messages. That would be a good way to handle information / warning and error messages.

Has anyone fixed the message body generated by lab\_results\_messages.php? The message shows with raw html code in the list.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 23, 2013, 2:25am UTC](https://community.open-emr.org/t/patch-for-lab-results-receipt-alert/6031/2 "2013-07-23T02:25:21Z")

</div>

**[mdsupport](https://sourceforge.net/u/mdsupport/)** wrote on [Tuesday, July 23, 2013](https://sourceforge.net/p/openemr/discussion/202506/thread/6dfbd706/#791f):

This [patch](https://github.com/mdsupport/openemr/commit/26d93b9a3f3f86bedc3e073dd36d1d2cc3f643f8) updates the lab\_results message to use gprelations table.

CAUTION:  
The messages.php uses (2,6) pair for procedure orders while the gprelations.inc author seems to have ‘reserved’ type 2 for form\_encounter/visits!!! We are not sure if the gprelations is used by anyone for linking encounters.
