diff --git a/healthcare/healthcare/doctype/treatment_plan_template/treatment_plan_template.js b/healthcare/healthcare/doctype/treatment_plan_template/treatment_plan_template.js index 986c3cb6e4..055f1e35e7 100644 --- a/healthcare/healthcare/doctype/treatment_plan_template/treatment_plan_template.js +++ b/healthcare/healthcare/doctype/treatment_plan_template/treatment_plan_template.js @@ -10,5 +10,15 @@ frappe.ui.form.on('Treatment Plan Template', { } }; }); + + frm.set_query("practitioners", function () { + if (frm.doc.medical_department) { + return { + filters: { + "department": frm.doc.medical_department + } + }; + } + }); }, });