From 751580fbea96312d8a1a9c955399522cfcd04f73 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Thu, 5 Feb 2026 07:49:02 +0100 Subject: chore: add form field script snippet This simply adds the form field script snippet "DNPM Therapieplan - MTB" as a copy from form file. --- scripts/therapieplan-update-mtb.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/therapieplan-update-mtb.js (limited to 'scripts') diff --git a/scripts/therapieplan-update-mtb.js b/scripts/therapieplan-update-mtb.js new file mode 100644 index 0000000..cba7230 --- /dev/null +++ b/scripts/therapieplan-update-mtb.js @@ -0,0 +1,18 @@ +var datum = getFieldValue('referstemtb').Datum; +setFieldValue('datum', datum); + +var text = ""; + +var fragestellung = getFieldValue('referstemtb').Fragestellung; + +if (fragestellung) { + text = text + `Fragestellung:\n${fragestellung}\n\n`; +} + +var empfehlung = getFieldValue('referstemtb').Empfehlung; + +if (empfehlung) { + text = text + `Empfehlung:\n${empfehlung}`; +} + +setFieldValue('protokollauszug', text.trim()); \ No newline at end of file -- cgit v1.2.3