X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_prescription.sh;h=78f995b97d425aa22ebe9c5df4354368addc4fd2;hp=57ff0b624f36bcd9cecb5449aaf8b7a38d3c4b6c;hb=9b13f7013dd882029ab3cf106d659a48243d910d;hpb=2d79e3831a65f8b3a54aa2514ef1e65c4b073cf2 diff --git a/templates/view_prescription.sh b/templates/view_prescription.sh index 57ff0b6..78f995b 100755 --- a/templates/view_prescription.sh +++ b/templates/view_prescription.sh @@ -18,7 +18,7 @@ check(){ [ "$1" = "$2" ] && printf checked} cat < +
${mpx[insurance]} @@ -34,7 +34,7 @@ cat <
-

$(l10n therapy_prescription)

+

$(l10n therapy_prescription)


${mpx[addcontrib]} @@ -69,31 +69,37 @@ cat <
- - - - -${mpx[quantity]} -${mpx[remidy]} -${mpx[quantity_weekly]} - - - - -${mpx[quantity1]} -${mpx[remidy1]} -${mpx[quantity_weekly1]} - + + + + ${mpx[quantity]} + ${mpx[remidy]} + ${mpx[quantity_weekly]} +$( for n in {0..10}; do + [ -n "${mpx[quantity$n]}" -o -n "${mpx[remidy$n]}" -o -n "${mpx[quantity_weekly$n]}" ] \ + && printf ' + %s + %s + %s + ' "${mpx[quantity$n]}" "${mpx[remidy$n]}" "${mpx[quantity_weekly$n]}" +done )
+

${mpx[indicator]}
${mpx[icd10]} +

+
+

+ +${mpx[indicator_reading]} +

-$(l10n edit) +$(l10n edit) $(l10n therapy)