Replies: 1 comment 2 replies
-
@mbiannaccone do you have any suggestions here? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the documentation there is a sentence
We are building a plugin that will calculate and display starting BMI and weight loss percentages in this PR. It works great when it is triggered on the Interview or Observation Create/Update events in real time. However, I want to make sure that on the protocol being installed or updated, since it contains calculations, that the code is then triggered to recompute for all active patients. Sounds like using the
patient_filter
would be useful. However, I need the narrative string in the banner to calculated for each patient. Since the narrative can't be a function, I am unable to use thepatient_filter
in the AddBannerAlert class. The only alternative solution I see would be to loop through patients in the Data Module manually, but I worry that is bad performance depending on how many patients and records are to be queried. What is the best approach?Beta Was this translation helpful? Give feedback.
All reactions