I have a single provider who would like to the patients current medication and allergy lists to populate in his note when the encounter is started. I have a text component set to do this.
He would also like a separate component to show any changes made to those lists during the encounter.
Is it possible to set a text component to populate in an encounter based on the provider and also continuously evaluate for changes?
For the document provider, just do something like this -
{if DOCUMENT.PROVIDER == "This Guy" then
//Do this
else
//do this
endif}
For the continuous evaluation, instead of wrapping your code like this {mel code}, do it like this {'{mel code}'}
Here is the text component we use.
{fmt("Medications Current:", "B")}
{'{MEDS_PRIOR("list")}'}
{fmt("Medications added or changed:", "B")}
{'{MEDS_NEW("list")}'}
{fmt("Medications removed:", "B")}
{'{MEDS_REMOVED("list", "dat")}'}
{fmt("Allergies Current:", "B")}
{'{ALL_AFTER("list")}'}
{fmt("Problems New:", "B")}
{'{PROB_NEW("list")}'}
{fmt("Problems Removed:", "B")}
{'{PROB_REMOVED("list")}'}
I initially set it up this way but then the "continuous evaluation" portion pulls in for every provider. I only want that to show for this one provider.