# LBF Clinic Note Conditional formatting

**URL:** <https://community.open-emr.org/t/lbf-clinic-note-conditional-formatting/18149>\
**Category:** OpenEMR Development\
**Created:** [March 31, 2022, 1:53pm UTC](https://community.open-emr.org/t/lbf-clinic-note-conditional-formatting/18149 "2022-03-31T13:53:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hubtech](https://community.open-emr.org/user_avatar/community.open-emr.org/hubtech/32/15362_2.png) [@Hubtech](https://community.open-emr.org/u/Hubtech)\
**Post date:** [March 31, 2022, 1:53pm UTC](https://community.open-emr.org/t/lbf-clinic-note-conditional-formatting/18149/1 "2022-03-31T13:53:07Z")

</div>

So we have been adapting Open EMR to be used within our multidisciplinary pediatric speech/communication organization. I’ve had great luck so far, but seem to have run into a wall.

We see patients for up to 6 years. Every year, we create goals and objectives which are custom to each child. I have done this by creating Year 1 - 6 G&A Tabs within the patient demographic form as you can see here.

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/f/c/fc63a8157c2f4b5f104446b52b72837e6f998a67.jpeg)

Now for the problem i’m trying to solve 🙂

I have created a LBF Clinic Note for the therapists to use so that they can visually see the goals that have been set for the child and mark their mastery level if that goal was worked on during said session.

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/3/9/3976eb341c3558c4367b44b9b2f268f36435d878.jpeg)

If this was a one year program that would be great! But it’s up to a 6 year program. I’m trying to basically come up with a way to allow the therapist to fill out the top section of the note first, and then it load the goals and objectives for that patient based off of the school year that is selected by the therapist.

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/3/1/31d90652979ecff047279d4b2b5a4a6b9c633a59.jpeg)

Any ideas how I may accomplish this without having to create a Year 1 - Year 6 LBF?

Thanks so much!  
@gutiersa

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [March 31, 2022, 2:29pm UTC](https://community.open-emr.org/t/lbf-clinic-note-conditional-formatting/18149/2 "2022-03-31T14:29:03Z")

</div>

Hmm, this is a really interesting and really well developed LBF (IMHO, I am still trying to figure out the use and flexibility of LBF’s)

Yes, I have an idea, conditional formatting can be done at the right hand side of each field under the ? column. See this thread entry:

> [@Progres Note using LBF](https://community.open-emr.org/t/progres-note-using-lbf/17983/4):
>
> @kkappiah Here is an example from the OpenEMR demo. After login into the demo site, as an administrator, here: [https://www.open-emr.org/demo/](https://www.open-emr.org/demo/) Go to Administration → forms → layouts, and select the “Demographics layout” form: [20220322-1a] You can see the question mark at the rightmost area of every field. Now green in the image above. Clicking on it will show an options window as follows: [20220322-1] The rest should be self-explanatory. If it is not please let me know.

I am not sure how the logic of your form flows yet, but if you click on the “?” column of the fields in the top section/group of the form. What do you think?

I am also thinking that you may not be maximizing the usefulness of “Lists”. I am thinking that you can create lists such as: objectives, first grade objectives, second grade objectives, etc. Within each list you can include fields, for example:

```
Objectives:
   preK
   first grade
   second grade
   third grade

```

then subsequent lists:

```
PreK objectives:
   Obj1
   Obj2
   Obj3
   Obj4

FirstGrade objectives:
   Obj1
   Obj2
   Obj3
   Obj4

SecondGrade objectives:
   Obj1
   Obj2
   Obj3
   Obj4

```

And so on and so forth.

Your LBF field would then link to the lists.

Finally, if you see kids, that means you are using encounters/visits? I would not modify the dashboard, I would just create a new LBF form, named for example “LBFProgress” specifically for the purpose of the visits/evaluations. When the kid is seen, create an encounter and open the LBFProgress and document the information there. That way you have the flow of the child’s progress documented. These forms can then be shown in the patient landing page, such as vitals form, for example.

Thanks for the question.  
Sandra

---

<div class="post-metadata">

**Author:** ![Hubtech](https://community.open-emr.org/user_avatar/community.open-emr.org/hubtech/32/15362_2.png) [@Hubtech](https://community.open-emr.org/u/Hubtech)\
**Post date:** [March 31, 2022, 4:37pm UTC](https://community.open-emr.org/t/lbf-clinic-note-conditional-formatting/18149/3 "2022-03-31T16:37:16Z")

</div>

Oh believe me, I tried to standardize Goals and Objectives, but with the demographic served here it’s simply not possible. Kids range from mild to severe and everything in between with hearing, visual, cognitive, etc issues. The goals and objectives are populated from the demographic form into the LBF and are not editable within the LBF so that the therapists are ranking mastery on the specific goal in their chart.

---

<div class="post-metadata">

**Author:** ![Hubtech](https://community.open-emr.org/user_avatar/community.open-emr.org/hubtech/32/15362_2.png) [@Hubtech](https://community.open-emr.org/u/Hubtech)\
**Post date:** [March 31, 2022, 4:41pm UTC](https://community.open-emr.org/t/lbf-clinic-note-conditional-formatting/18149/4 "2022-03-31T16:41:42Z")

</div>

> BlockquoteI am not sure how the logic of your form flows yet, but if you click on the “?” column of the fields in the top section/group of the form. What do you think?

Ahhh so the way i’m looking at it, I could create a giant LBF with all of the tabs of the school year. and where cog\_1\_1 would be cognitive goal 1 year 1 would show hrmmmm based off of the school year selected? that gets tricky though. I could instead of put school year just use year 1, year 2, year 3, etc for my school year selection and hide all fields that dont pertain to that year maybe

---

<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:** [March 31, 2022, 4:51pm UTC](https://community.open-emr.org/t/lbf-clinic-note-conditional-formatting/18149/5 "2022-03-31T16:51:37Z")

</div>

You could also create a custom LBF plugin to support the form.  
Look here for examples in code. sites/default/LBF

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [March 31, 2022, 5:09pm UTC](https://community.open-emr.org/t/lbf-clinic-note-conditional-formatting/18149/6 "2022-03-31T17:09:29Z")

</div>

I am still not able to visualize (my brain works with images) what your progress note is about. If you were able to make up some samples, I could give you better ideas. But be sure it is on a test patient, not a real patient.

Also, yes, in a clinic database, the lists section can get quite large.

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [March 31, 2022, 6:06pm UTC](https://community.open-emr.org/t/lbf-clinic-note-conditional-formatting/18149/7 "2022-03-31T18:06:45Z")

</div>

Take a look at Nationt Notes (NN). Nation notes are already embedded within LBF. If you double click on any and all textarea type field, the nation notes editor opens up with tons of other options. In other words, you need not create a separate field for every single measure.

---

<div class="post-metadata">

**Author:** ![mdsupport](https://community.open-emr.org/user_avatar/community.open-emr.org/mdsupport/32/10763_2.png) [@mdsupport](https://community.open-emr.org/u/mdsupport)\
**Post date:** [March 31, 2022, 10:53pm UTC](https://community.open-emr.org/t/lbf-clinic-note-conditional-formatting/18149/8 "2022-03-31T22:53:44Z")

</div>

This may be a classic use for orders & observations. Configuring the catalog may need bit more effort but then you would have the ability to create multiple observations.
