X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=templates%2Fedit_prescription.sh;h=dac7270362fcd58998dae5818bf18866380be51f;hb=2d1ff8e80efbded90e01dc0fe477757bbc7e08f0;hp=cfd2b5be8dcfd141cb263d659e5b62ddb87c8dbb;hpb=afdc06688cc51a168011da48adbafcba238d3ae1;p=lobster diff --git a/templates/edit_prescription.sh b/templates/edit_prescription.sh index cfd2b5b..dac7270 100755 --- a/templates/edit_prescription.sh +++ b/templates/edit_prescription.sh @@ -16,32 +16,72 @@ # along with Confetti. If not, see . check(){ [ "$1" = "$2" ] && printf checked} +[ -z $mpx[presctype] ] && mpx[presctype]=doctor_compulsory cat < -$(l10n therapy_prescription) +$(l10n doctor): + +$(l10n selfpaid) + +$(l10n private) + +$(l10n compulsory) + + +$(l10n dentist): + +$(l10n selfpaid) + +$(l10n private) + +$(l10n compulsory) + + +$(l10n noprescription): + +$(l10n selfpaid) + +$(l10n altpractition): + +$(l10n selfpaid) + +$(l10n private) + + + $(l10n insurance) $(l10n name) -${mpx[name]} - $(l10n bday) + +${mpx[name]} $(l10n date) + + + +$(l10n therapy_prescription) - $(l10n addcontrib) - $(l10n contribconfirm) + + +$(l10n contribreceipt) + + +$(l10n prescreviewed) + + $(l10n prescription_by_catalogue) $(l10n prescfirst) @@ -67,42 +107,55 @@ cat < $(l10n report) + - -$(l10n remidy) -${mpx[remidy]} - + $(l10n quantity) - - +$(l10n remidy) $(l10n quantity_weekly) + + +${mpx[remidy]} + + +$( for n in {0..10}; do + if [ "$n" -eq 0 -o -n "${mpx[quantity$n]}" -o -n "${mpx[remidy$n]}" -o -n "${mpx[quantity_weekly$n]}" ]; then + printf '' + else + printf '' + fi + printf ' + + %s + + + ' "$(l10n quantity)" "${mpx[quantity$n]}" \ + "$(l10n remidy)" "${mpx[remidy$n]}" \ + "$(l10n quantity_weekly)" "${mpx[quantity_weekly$n]}" +done ) - -$(l10n remidy) -${mpx[remidy1]} - -$(l10n quantity) - - -$(l10n quantity_weekly) - + $(l10n indicator) $(l10n icd10) - + - -$(l10n prescreviewed) + +$(l10n indicator_reading) +${mpx[indicator_reading]} + + - + $(l10n save) $(l10n cancel) $(l10n delete) + END_HTML
+ +${mpx[remidy]} +
+ + %s + +
$(l10n indicator) $(l10n icd10) - +
+$(l10n indicator_reading) +${mpx[indicator_reading]} +