Connecting vitals to a new form


I’m trying to create a form for hypertension management. Upon creating a new field, I’m trying to automatically add the patient’s recent set of blood pressure values (potentially retrieving this information from their vitals in encounters) in my form. How do I do so?

See my answer Connecting vitals to a form - #2 by sjpadgett

@sj I had a similar situation where i wanted to pull data from the database and display it in an lbf form. Here is a link to the forum thread where this was solved