X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_prescription.sh;h=ced72413830caa682ff56ef390c0f14714e2417a;hp=d31accaef86ee12cdbc881de544d43d009922a90;hb=9c0dedbe71799e2968cca664300fab01e93d482f;hpb=afdc06688cc51a168011da48adbafcba238d3ae1 diff --git a/templates/view_prescription.sh b/templates/view_prescription.sh index d31acca..ced7241 100755 --- a/templates/view_prescription.sh +++ b/templates/view_prescription.sh @@ -18,31 +18,40 @@ check(){ [ "$1" = "$2" ] && printf checked} cat < -

$(l10n therapy_prescription)

- +
+
${mpx[insurance]}
-${mpx[name]} -
+${mpx[name]} ${mpx[bday]}
${mpx[date]} +
+
+

$(l10n therapy_prescription)


${mpx[addcontrib]} - + +${mpx[contribconfirm]} + +
+ + +

$(l10n prescription_by_catalogue)


-
@@ -57,39 +66,56 @@ cat <$(l10n housecall)
+
-
- -${mpx[remidy]} -
- -${mpx[quantity]} -
- -${mpx[quantity_weekly]} - -
- -${mpx[remidy1]} -
- -${mpx[quantity1]} -
- -${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]} +

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

+ + $(therapy_dates "$id" \ + | while read date; do + printf '%s' "$date" + done + ) +

-
- +

+ + $mpx[issuer] +

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