# CDR based on values from LBT form

**URL:** <https://community.open-emr.org/t/cdr-based-on-values-from-lbt-form/25440>\
**Category:** Management and Administration\
**Created:** [May 5, 2025, 12:54pm UTC](https://community.open-emr.org/t/cdr-based-on-values-from-lbt-form/25440 "2025-05-05T12:54:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bearzillasquatch](https://community.open-emr.org/user_avatar/community.open-emr.org/bearzillasquatch/32/18011_2.png) [@bearzillasquatch](https://community.open-emr.org/u/bearzillasquatch)\
**Post date:** [May 5, 2025, 12:54pm UTC](https://community.open-emr.org/t/cdr-based-on-values-from-lbt-form/25440/1 "2025-05-05T12:54:27Z")

</div>

I have a LBT form with several fields in it.

I’d like to have an alert when one of the fields value is a specific value for the patient. If i go to admin → practice → rules. I see there is an option to in the rule - clinical targets to specify one table and one field for the rule. But the lbt\_data table doesn’t have patient identifying data like a pid.

So I’m wondering is there a way to set up the alert so that it checks the transactions table for the form id of the relevant data in the lbt\_data table for this patient?

I’m not sure if I described the problem accurately. If anyone needs more info feel free to ask it.

---

<div class="post-metadata">

**Author:** ![moussa](https://community.open-emr.org/letter_avatar_proxy/v4/letter/m/90ced4/32.png) [@moussa](https://community.open-emr.org/u/moussa)\
**Post date:** [May 5, 2025, 2:08pm UTC](https://community.open-emr.org/t/cdr-based-on-values-from-lbt-form/25440/2 "2025-05-05T14:08:00Z")

</div>

Can you create a view that combines data from multiple tables?

Then use that table for your clincial reminder

> [@How to Set Up Clinical Reminders for Prior Authorization Expiration](https://community.open-emr.org/t/how-to-set-up-clinical-reminders-for-prior-authorization-expiration/24319):
>
> Background: Prior authorizations is need to be renewed to ensure continuous patient care and to prevent situations where services are rendered to a patient whose authorization has expired, leading to claim denials. Steps Install Advanced Prior Auth (Oe-module-prior-authorizations) from Modules → Manage Modules The Advanced Prior Auth module creates a table called module\_prior\_authorizations. This table has fields: id, pid, auth\_num, start\_date, end\_date, cpt, init\_units, and remaining\_units…

---

<div class="post-metadata">

**Author:** ![bearzillasquatch](https://community.open-emr.org/user_avatar/community.open-emr.org/bearzillasquatch/32/18011_2.png) [@bearzillasquatch](https://community.open-emr.org/u/bearzillasquatch)\
**Post date:** [May 5, 2025, 3:39pm UTC](https://community.open-emr.org/t/cdr-based-on-values-from-lbt-form/25440/3 "2025-05-05T15:39:07Z")

</div>

Got it. Create a view in the database then reference that view. that will probably make a few other things easier too.

Thanks, for the input.
