diff options
| author | Paul-Christian Volkmer | 2026-02-05 07:49:02 +0100 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2026-02-05 07:49:54 +0100 |
| commit | 751580fbea96312d8a1a9c955399522cfcd04f73 (patch) | |
| tree | 71bfa672e00fd9d13bbce826424441800f443ef2 /scripts/therapieplan-update-mtb.js | |
| parent | 383b90201a1e7770770f4109cfce19e38fe57260 (diff) | |
chore: add form field script snippet
This simply adds the form field script snippet "DNPM Therapieplan - MTB" as a copy from form file.
Diffstat (limited to 'scripts/therapieplan-update-mtb.js')
| -rw-r--r-- | scripts/therapieplan-update-mtb.js | 18 |
1 files changed, 18 insertions, 0 deletions
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 |
