X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=templates%2Fedit_prescription.sh;h=b7a9af46341ab513e43430925fefe011d2bed85b;hb=6b021a244e91f2eab215aa195ac19156b182c688;hp=d4dce32e36f9c50f8a065a48af86ec47c5e6996a;hpb=18ecf2c0b034e25c418a83ecb1adefb9f3f04cd8;p=lobster diff --git a/templates/edit_prescription.sh b/templates/edit_prescription.sh index d4dce32..b7a9af4 100755 --- a/templates/edit_prescription.sh +++ b/templates/edit_prescription.sh @@ -15,58 +15,161 @@ # You should have received a copy of the GNU Affero General Public License # along with Confetti. If not, see . +check(){ [ "$1" = "$2" ] && printf checked} +[ -z $mpx[presctype] ] && mpx[presctype]=doctor_compulsory + cat < + + +$(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) - $(l10n bday) - + +${mpx[name]} + + $(l10n date) - + + + + +$(l10n therapy_prescription) $(l10n addcontrib) - - + $(l10n contribconfirm) + + +$(l10n contribreceipt) + + +$(l10n prescreviewed) + + $(l10n prescription_by_catalogue) - + $(l10n prescfirst) - + + $(l10n prescfollow1) - + + $(l10n prescfollow2) - + + $(l10n prescother) - + + $(l10n presccontinual) - + + $(l10n grouptherapy) - + + $(l10n housecall) - + + $(l10n report) + + $(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 indicator) - + + $(l10n icd10) - - - -$(l10n prescreviewed) + + + + +$(l10n indicator_reading) +${mpx[indicator_reading]} + + + + $(l10n issuer) + $(l10n issuer_from_list)$(l10n issuer_other) + + $(l10n issuer)... + $(list_prescription_issuers |while read f; do + [ "$f" = "$mpx[issuer]" ] \ + && printf '%s' "$f" "$f" \ + || printf '%s' "$f" "$f" + done) + + + + + +$(l10n save) +$(l10n cancel) +$(l10n delete) + END_HTML
+ +${mpx[remidy]} + +
+ + %s + +
$(l10n indicator) - + + $(l10n icd10) - - - -$(l10n prescreviewed) + +
+$(l10n indicator_reading) +${mpx[indicator_reading]} +
+ $(l10n issuer) + $(l10n issuer_from_list)$(l10n issuer_other) + + $(l10n issuer)... + $(list_prescription_issuers |while read f; do + [ "$f" = "$mpx[issuer]" ] \ + && printf '%s' "$f" "$f" \ + || printf '%s' "$f" "$f" + done) + + +