.card .section.prescriptions ul { margin: 0; padding: 0; }
.card .section.prescriptions ul li {
- display: inline-block;
+ display: block;
word-wrap: break-word;
margin: 0 .25ex;
}
+.card .section.prescriptions { width: 40ex;}
+
form.card .section input[type=text],
form.card .section input:not([type]),
form.card .section textarea,
<label for="addcontrib">$(l10n addcontrib)</label>
<input id="addcontrib" name="addcontrib" value="${mpx[addcontrib]}" placeholder="$(l10n addcontrib)">
-<input type="checkbox" id="contribconfirm" name="contribconfirm" value="true" ${mpx[contribconfirm]:+checked}>
<label for="contribconfirm">$(l10n contribconfirm)</label>
+<input id="contribconfirm" name="contribconfirm" value="${mpx[contribconfirm]}" placeholder="$(l10n contribconfirm)">
+<input type="checkbox" id="contribreceipt" name="contribreceipt" value="true" ${mpx[contribreceipt]:+checked}>
+<label for="contribreceipt">$(l10n contribreceipt)</label>
</fieldset>
+<input type="checkbox" id="prescreviewed" name="prescreviewed" value="true" ${mpx[prescreviewed]:+checked}>
+<label for="prescreviewed">$(l10n prescreviewed)</label>
+
<fieldset class="catalogue">
<h2>$(l10n prescription_by_catalogue)</h2>
<input type="radio" id="prescfirst" name="prescno" value="first" $(check "$mpx[prescno]" first)>
<input type="radio" id="prescfollow2" name="prescno" value="follow2" $(check "$mpx[prescno]" follow2)>
<label for="prescfollow2">$(l10n prescfollow2)</label>
<br>
-<input type="radio" id="presccontinual" name="prescno" value="continual" $(check "$mpx[prescno]" continual)>
-<label for="presccontinual">$(l10n presccontinual)</label>
-<br>
<input type="radio" id="prescother" name="prescno" value="other" $(check "$mpx[prescno]" other)>
<label for="prescother">$(l10n prescother)</label>
+<br>
+<input type="radio" id="presccontinual" name="prescno" value="continual" $(check "$mpx[prescno]" continual)>
+<label for="presccontinual">$(l10n presccontinual)</label>
<br>
<input type="checkbox" id="grouptherapy" name="grouptherapy" value="true" ${mpx[grouptherapy]:+checked}>
<input id="icd10" name="icd10" value="${mpx[icd10]}" placeholder="$(l10n icd10)">
</fieldset>
-<input type="checkbox" id="prescreviewed" name="prescreviewed" value="true" ${mpx[prescreviewed]:+checked}>
-<label for="prescreviewed">$(l10n prescreviewed)</label>
-
<fieldset class="controls">
<button type="submit" name="action" value="save">$(l10n save)</button>
<button type="submit" name="action" value="cancel">$(l10n cancel)</button>
width: 100%;
}
.misc label[for=addcontrib],
- .misc #addcontrib {width: 100%;}
- .misc #addcontrib {text-align: right;}
+ .misc label[for=contribconfirm] {width: 100%;}
+ .misc #addcontrib,
+ .misc #contribconfirm {width: 100%; text-align: right;}
+
+.prescription label[for=prescreviewed] {
+ margin-left: 1ex;
+ font-weight: bold;
+ text-decoration: underline;
+ background-color: #FCC;
+}
+.prescription label[for=prescreviewed].checked,
+.prescription :checked + label[for=prescreviewed] {
+ font-weight: normal;
+ text-decoration: none;
+ background-color: #CFF;
+}
-.prescription .catalogue { width: 60%; }
+.prescription .catalogue { width: 100%; }
.catalogue h2:nth-of-type(1) {
font-weight: bold;
}
.catalogue label {
display: inline-block;
- width: 50%;
+ width: 33%;
margin-right: -.625ex;
margin-top: .25em;
vertical-align: top;
}
+ .catalogue label[for=presccontinual] { margin-right: 33%;}
.prescription .description { width: 100%; }
.description * { margin-right: -.625ex; vertical-align: top;}
.description #icd10,
.description #indicator {width: 20%; text-align: right;}
-.prescription label[for=prescreviewed] { margin-left: 1ex; }
-
.prescription .controls { width: 100%; }
.controls a.button,
.controls button[value=save],
item_name[name]="Name d. Versicherten"
item_name[bday]="geb. am"
item_name[addcontrib]="Zuzahlung"
-item_name[contribconfirm]="Zuzahlung erfolgt"
+item_name[contribconfirm]="Zuzahlung erfolgt am..."
+item_name[contribreceipt]="Quit­tung heraus­ge­ge­ben"
item_name[prescreviewed]="Verordnung geprüft"
+item_name[prescreview]="Verordnung prüfen!"
item_name[quantity]="Ver­ord­nungs­men­ge"
item_name[remidy]="Heil­mit­tel nach Maß­ga­be des Ka­ta­lo­ges"
item_name[prescfirst]="Erst­ver­ord­nung"
-item_name[prescfollow1]="1. Folge­ver­ord­nung"
-item_name[prescfollow2]="2. Folge­ver­ord­nung"
-item_name[prescother]="Ver­ord­nung außer­halb des Re­gel­falls"
+item_name[prescfollow1]="1. Folge-­VO"
+item_name[prescfollow2]="2. Folge-­VO"
+item_name[prescother]="VO außer­halb des Re­gel­falls"
item_name[presccontinual]="Lang­frist­ver­ord­nung"
item_name[grouptherapy]="Grup­pen­the­ra­pie"
item_name[housecall]="Haus­be­such"
done)
${values[BDAY]:+<span class="item BDAY"><label>*:</label> ${values[BDAY]}</span>}
- ${values[X-ZACK-JOINDATE]:+<span class="item X-ZACK-JOINDATE"><label>$(l10n label_join):</label> $values[X-ZACK-JOINDATE]</span>}
- ${values[X-ZACK-LEAVEDATE]:+<span class="item X-ZACK-LEAVEDATE"><label>$(l10n label_leave):</label> $values[X-ZACK-LEAVEDATE]</span>}
${values[SOUND]:+<audio controls="controls" class="item SOUND"><source type="audio/ogg" src="data:audio/ogg;base64,$values[SOUND]" /></audio>}
${values[PHOTO]:+<img class="item PHOTO" src="data:image/$tags[PHOTO_TYPE];base64,$values[PHOTO]" />}
${values[LOGO]:+<img class="item LOGO" src="data:image/$tags[LOGO_TYPE];base64,$values[LOGO]" />}
- </div><!--
- --><div class="section address">
<h3>$(l10n ADR)</h3>
$(for n in ADR ADR{0..10}; do
echo "${values[$n]:+<span class="item ADR">$values[$n]</span>}"
<ul>
$(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 '<li><a href="?p=prescriptions&client=%s" >%s</a></li>' "${id}" "${icd:-$(l10n no_icd)}"
- done)
+ printf '%s\t%s\t%s\n'
+ printf '<li><a href="?p=prescriptions&client=%s" >%s: %s - %s%s</a></li>' \
+ "${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
+ )
</ul>
</div>
END_HTML
<br>
<label for="addcontrib">$(l10n addcontrib)</label>
<span id="addcontrib">${mpx[addcontrib]}</span>
-<label class="checkbox ${mpx[contribconfirm]:+checked}" for="contribconfirm">$(l10n contribconfirm)</label>
+<label for="contribconfirm">$(l10n contribconfirm)</label>
+<span id="contribconfirm">${mpx[contribconfirm]}</span>
+<label class="checkbox ${mpx[contribreceipt]:+checked}" for="contribreceipt">$(l10n contribreceipt)</label>
</fieldset>
+<label class="checkbox ${mpx[prescreviewed]:+checked}" for="prescreviewed">
+ $([ -n "${mpx[prescreviewed]}" ] && printf %s "$(l10n prescreviewed)" \
+ || printf %s "$(l10n prescreview)" )
+</label>
+
<fieldset class="catalogue">
<h2>$(l10n prescription_by_catalogue)</h2>
<label class="radio $(check "$mpx[prescno]" first)" for="prescfirst">$(l10n prescfirst)</label>
<br>
<label class="radio $(check "$mpx[prescno]" follow2)" for="prescfollow2">$(l10n prescfollow2)</label>
<br>
-<label class="radio $(check "$mpx[prescno]" continual)" for="presccontinual">$(l10n presccontinual)</label>
-<br>
<label class="radio $(check "$mpx[prescno]" other)" for="prescother">$(l10n prescother)</label>
+<br>
+<label class="radio $(check "$mpx[prescno]" continual)" for="presccontinual">$(l10n presccontinual)</label>
<br>
<label class="checkbox ${mpx[grouptherapy]:+checked}" for="grouptherapy">$(l10n grouptherapy)</label>
<span id="icd10">${mpx[icd10]}</span>
</fieldset>
-<label class="checkbox ${mpx[prescreviewed]:+checked}" for="prescreviewed">$(l10n prescreviewed)</label>
-
<fieldset class="controls">
<a class="button" href="?p=prescriptions&edit=${mpx[prescription]}">$(l10n edit)</a>
<a class="button" href="?p=therapy&id=${mpx[prescription]%.mpx}.tpy">$(l10n therapy)</a>