X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_prescription.sh;h=0fdd871691c7ce1ea4bb86b425ec36c55025af05;hp=ce2b4967b7bf2e7ca4bbb37f22662733220a5a21;hb=957f0ced0095d421006a0dbc68ef9be8a4325514;hpb=32be1b8e73becaf528205136995261c3f03bae30 diff --git a/templates/view_prescription.sh b/templates/view_prescription.sh index ce2b496..0fdd871 100755 --- a/templates/view_prescription.sh +++ b/templates/view_prescription.sh @@ -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]

+