X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_prescription.sh;h=0fdd871691c7ce1ea4bb86b425ec36c55025af05;hp=df89cdba5b2db646fc1aeb666ebb5f4fea45cdf0;hb=957f0ced0095d421006a0dbc68ef9be8a4325514;hpb=015242823eb4a79cf615bef6951b0af6bd0a5b01 diff --git a/templates/view_prescription.sh b/templates/view_prescription.sh index df89cdb..0fdd871 100755 --- a/templates/view_prescription.sh +++ b/templates/view_prescription.sh @@ -18,7 +18,7 @@ check(){ [ "$1" = "$2" ] && printf checked} cat < +
${mpx[insurance]} @@ -69,34 +69,38 @@ 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]} +
+ + ${mpx[icd10]}


- -${mpx[indicator_reading]} + + ${mpx[indicator_reading]} +

+

+ + $mpx[issuer]

+