X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Ftherapy.html.sh;h=63216ad703ced7ce40ca7120f70d4362e2932c3a;hp=9d37db88a87d7d199ca6ebdbf013ce2cdaefe936;hb=2d1ff8e80efbded90e01dc0fe477757bbc7e08f0;hpb=015242823eb4a79cf615bef6951b0af6bd0a5b01 diff --git a/templates/therapy.html.sh b/templates/therapy.html.sh index 9d37db8..63216ad 100755 --- a/templates/therapy.html.sh +++ b/templates/therapy.html.sh @@ -23,26 +23,31 @@ t_session_note(){ unset c0 c1 c2 c3 c4 c5 c6 c7 case "$tpy[$color]" in - c000) c0=checked;; - c001) c1=checked;; - c010) c2=checked;; - c011) c3=checked;; - c100) c4=checked;; - c101) c5=checked;; - c110) c6=checked;; + \#888) c0=checked;; + \#00A) c1=checked;; + \#0A0) c2=checked;; + \#0AA) c3=checked;; + \#A00) c4=checked;; + \#A0A) c5=checked;; + \#AA0) c6=checked;; *) c7=checked;; esac +if [ "$note_n" -eq 1 -o -n "${tpy[session${session_n}_note${note_n}]}" ]; then + printf '' +else + printf '' +fi cat < - - - - - - - - +
+ + + + + + + +
EOF @@ -54,16 +59,8 @@ t_session(){ 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 @@ -76,19 +73,13 @@ cat <${tpy[${sid}_therapist]} + -->
- - $(n=1; while [ -n "${tpy[${sid}_note${n}]+x}" ]; do - t_session_note $session_n $n - n=$(($n+1)) - done - printf '' "$sid" "$n" - ) + + $( for n in {1..50}; do t_session_note $session_n $n; done ) -
EOF } @@ -103,10 +94,10 @@ therapy_sessions(){ cat < - … + --> EOF @@ -114,69 +105,194 @@ EOF unset c0 c1 c2 c3 c4 c5 c6 c7 case "$tpy[color]" in - c001) c1=checked;; - c010) c2=checked;; - c011) c3=checked;; - c100) c4=checked;; - c101) c5=checked;; - c110) c6=checked;; - c111) c7=checked;; - *) c0=checked;; + \#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 <Behandlungen +

$(l10n therapy)

-
-

$client_name

- < $(l10n prescriptionlist) -
+
+

$client_name

+ < $(l10n prescriptionlist) +
-
-

$(l10n therapy_prescription)

- ${mpx[insurance]} - -
    - ${mpx[remidy]:+
  • ${mpx[quantity]} ${mpx[remidy]}
  • } - ${mpx[remidy1]:+
  • ${mpx[quantity1]} ${mpx[remidy1]}
  • } -
- - ${mpx[addcontrib]:+ - - } -
+
+

$(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)} + +
    $(for n in '' {0..10}; do + [ -n "${mpx[remidy$n]}" ] && \ + printf '
  • %s %s %s
  • ' "${mpx[quantity$n]}" \ + "${mpx[remidy$n]}" \ + "${mpx[quantity_weekly$n]:+($mpx[quantity_weekly$n] $(l10n weekly))}" + done)
+ + ${mpx[indicator]:+${mpx[indicator]}} + ${mpx[icd10]:+ ${mpx[icd10]}} + + ${mpx[addcontrib]:+ + + } +
+ +
+ + + +
+ +EOF - $(therapy_sessions) +therapy_sessions +cat < - - - - - - - - + + + + + + + + - + WARNING: Background Image not available! + + + + + + + EOF # vi:set filetype=html: