prescriptions) printf %s "Verordnungen";;
new_prescription) printf %s "Neue Verordnung";;
no_icd) printf %s "Kein ICD Code";;
+ therapies) printf %s "Therapien";;
X-ZACK-JOINDATE) printf %s "An­mel­de­da­tum";;
X-ZACK-LEAVEDATE) printf %s "Ab­mel­de­da­tum";;
[div .section .phone $(card_item "$card" TEL EMAL IMPP URL)]
[div .section .insurance $(card_item "$card" X-HEALTH-INSURANCE)]
[div .section .note $(card_item "$card" NOTE X-CLIENT-REFERRAL)]
+ [div .section .therapies $(card_item "$card" therapies)]
[div .control
[a .item href="/cards/edit_card.sh?card=${cardfile##*/}" $(l10n edit)]
[a .item href="/cards/export_card.sh?card=${cardfile##*/}" $(l10n vcf_export)]
[fieldset .item
[legend $(l10n filter_item):]
- $(for field in any name street zip TEL BDAY CATEGORIES; do
+ $(for field in any name street zip TEL BDAY; do
printf '[input id="%s%i" type="radio" name="filter_type%i" value="%s" %s]
[label for="%s%i" %s ]' \
"$field" "$n" "$n" "$field" "$([ "$1" = "$field" ] && printf checked )" \
"$(l10n hi_status)" "$(unescape "$hi_status" |HTML)"
done
;;
+ therapies)
+ client="$(pdi_value "$card" UID)"
+ printf '[h3 %s]' "$(l10n therapies)"
+ (cd "$_DATA/prescriptions/"; printf '%s\n' "${client}".*.mpx) \
+ | while read mpxfile; do
+ [ "$mpxfile" = "${client}.*.mpx" ] && break
+ mpx="${mpxfile%.mpx}";
+ printf '[a .item .therapy href="/therapies/%s" . Therapy - %s]' \
+ "${mpx%.*}/${mpx#*.}" "$(sed -E '/^date:.*/{s;^date:;;;q;};d;' "$_DATA/prescriptions/$mpxfile")"
+ done |sort -r
+ ;;
*)[ $cnt -gt 0 ] && printf '[h3 %s]' "$(l10n "$item")"
shy="$(printf '\302\255')"
seq 1 $cnt |while read c; do