X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Ftherapy.html.sh;h=eb93553fae7d3ca3163d4165b913f47aefdbc017;hp=cb3cf26850a0183e2360ce79f7d25f834eb3769e;hb=77b4d29e65e18d7e8abfad0c692574dc4556bc9f;hpb=fdfc261b61998249782240ecb0d40a10d44936a9 diff --git a/templates/therapy.html.sh b/templates/therapy.html.sh index cb3cf26..eb93553 100755 --- a/templates/therapy.html.sh +++ b/templates/therapy.html.sh @@ -15,127 +15,242 @@ # You should have received a copy of the GNU Affero General Public License # along with Confetti. If not, see . +t_session_note(){ + session_n="$1" + note_n="$2" + + color=session${session_n}_note${note_n}_color + unset c0 c1 c2 c3 c4 c5 c6 c7 + + case "$tpy[$color]" in + \#888) c0=checked;; + \#00A) c1=checked;; + \#0A0) c2=checked;; + \#0AA) c3=checked;; + \#A00) c4=checked;; + \#A0A) c5=checked;; + \#AA0) c6=checked;; + *) c7=checked;; + esac + +cat < + + + + + + + + + + +EOF +} + +t_session(){ + session_n="$1" + + sid=session${session_n} + + if [ "$tpy[${sid}_sigset]" = pos ]; then + sig=neg + sigcheck=checked + elif [ "$tpy[${sid}_sigset]" = neg ]; then + sig=pos + unset sigcheck + elif [ "$tpy[${sid}_signature]" = pos ]; then + sig=neg + sigcheck=checked + else + sig=pos + unset sigcheck + fi + cat < -

Behandlungen

+ + + +
+ + $(n=1; while [ -n "${tpy[${sid}_note${n}]+x}" ]; do + t_session_note $session_n $n + n=$(($n+1)) + done + printf '' "$sid" "$n" + ) + + + +
+EOF +} + +therapy_sessions(){ + n=1; while [ -n "${tpy[session${n}]}" ]; do + t_session $n + n=$(($n+1)) + done + + sid=session$n + +cat < + + + +EOF +} + +unset c0 c1 c2 c3 c4 c5 c6 c7 +case "$tpy[color]" in + \#00A) c1="checked";; + \#0A0) c2="checked";; + \#0AA) c3="checked";; + \#A00) c4="checked";; + \#A0A) c5="checked";; + \#AA0) c6="checked";; + \#FFF) c7="checked";; + *) c0="checked";; +esac + +cat <$(l10n therapy)
-

Flrbrlprrf Zoidberg

- < zur Patientenliste - Gemeinsame Betriebskrankenkasse der Gesellschaften der Textilgruppe Hof +

$client_name

+ < $(l10n prescriptionlist)
-

Verordnung

- +

$(l10n therapy_prescription)

+ ${mpx[insurance]} + ${mpx[date]} + + + + ${mpx[prescno]:+$(l10n presc${mpx[prescno]})} + ${mpx[grouptherapy]:+$(l10n grouptherapy)} + ${mpx[housecall]:+$(l10n housecall)} + ${mpx[report]:+$(l10n report)} +
    -
  • 6x MT
  • -
  • 6x Fango
  • + ${mpx[remidy]:+
  • ${mpx[quantity]} ${mpx[remidy]} ${mpx[quantity_weekly]:+($mpx[quantity_weekly] $(l10n weekly))}
  • } + ${mpx[remidy1]:+
  • ${mpx[quantity1]} ${mpx[remidy1]} ${mpx[quantity_weekly1]:+($mpx[quantity_weekly1] $(l10n weekly))}
  • }
- ??? - -
- + ${mpx[indicator]:+${mpx[indicator]}} + ${mpx[icd10]:+ ${mpx[icd10]}} - - -
- - -
- - - - - - - - - -
- -
- - - - - - - - - -
- -
- - - - - - - - - -
- + ${mpx[addcontrib]:+ + + }
+
+ - -