From: paul Date: Fri, 26 Feb 2016 14:31:05 +0000 (+0000) Subject: additional prescription fields, improved display of clients and prescriptions X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=2d79e3831a65f8b3a54aa2514ef1e65c4b073cf2;p=confetti additional prescription fields, improved display of clients and prescriptions svn path=/trunk/; revision=87 --- diff --git a/templates/attendees.css.sh b/templates/attendees.css.sh index 758b1d1..036ad04 100755 --- a/templates/attendees.css.sh +++ b/templates/attendees.css.sh @@ -142,11 +142,13 @@ cat <$(l10n addcontrib) - + + + + + +

$(l10n prescription_by_catalogue)

@@ -56,11 +61,11 @@ cat <
- - -
+
+ +
@@ -96,9 +101,6 @@ cat <
- - -
diff --git a/templates/prescriptions.css.sh b/templates/prescriptions.css.sh index 91afffa..3374f98 100755 --- a/templates/prescriptions.css.sh +++ b/templates/prescriptions.css.sh @@ -142,10 +142,24 @@ cat < ${values[BDAY]}} - ${values[X-ZACK-JOINDATE]:+ $values[X-ZACK-JOINDATE]} - ${values[X-ZACK-LEAVEDATE]:+ $values[X-ZACK-LEAVEDATE]} ${values[SOUND]:+} ${values[PHOTO]:+} ${values[LOGO]:+} -

$(l10n ADR)

$(for n in ADR ADR{0..10}; do echo "${values[$n]:+$values[$n]}" @@ -92,12 +88,15 @@ cat < $(find "$_DATA/prescriptions/" -name "${id%.vcf}.*.mpx" \ | while read pfile; do - printf '%s\t%s\t%s\n' "$(grep '^date' "$pfile")" "$(sed -nr 's;^icd10:(.*)$;\1;p' "$pfile")" - done \ - | sort -r | cut -f2 \ - | while read icd; do - printf '
  • %s
  • ' "${id}" "${icd:-$(l10n no_icd)}" - done) + printf '%s\t%s\t%s\n' + printf '
  • %s: %s - %s%s
  • ' \ + "${id}" \ + "$(sed -nr 's;^date:(.+)$;\1;p' "$pfile")" \ + "$(sed -nr 's;^indicator:(.+)$;\1;p' "$pfile")" \ + "$(sed -nr 's;^quantity:(.+) ?$;\1x ;p' "$pfile")$(sed -nr 's;^remidy:(.+)$;\1;p' "$pfile")" \ + "$(sed -nr 's;^quantity1:(.+) ?$;,\1x ;p' "$pfile")$(sed -nr 's;^remidy1:(.+)$;\1;p' "$pfile")" + done |sort -r + )
    END_HTML diff --git a/templates/view_prescription.sh b/templates/view_prescription.sh index c11bd9d..57ff0b6 100755 --- a/templates/view_prescription.sh +++ b/templates/view_prescription.sh @@ -38,9 +38,16 @@ cat < ${mpx[addcontrib]} - + +${mpx[contribconfirm]} +
    + +

    $(l10n prescription_by_catalogue)

    @@ -49,9 +56,9 @@ cat <
    - -
    +
    +
    @@ -85,8 +92,6 @@ cat <${mpx[icd10]}
    - -
    $(l10n edit) $(l10n therapy)