befund_print.html
| 1 | {{define "befund_print"}}<!doctype html> |
| 2 | <html lang="de"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>{{.B.Title}} – {{.P.Name}} – {{de .B.Date}}</title> |
| 7 | <link rel="stylesheet" href="/static/befund-print.css"> |
| 8 | </head> |
| 9 | <body> |
| 10 | {{$d := .D}} |
| 11 | <p class="hint">Drucken oder als PDF speichern: <kbd>Strg</kbd>+<kbd>P</kbd>. Es erscheinen nur ausgefüllte Felder. |
| 12 | {{if .Sessions}}<a href="/befund/{{.B.ID}}/druck">ohne Behandlungsverlauf</a>{{else}}<a href="/befund/{{.B.ID}}/druck?verlauf=1">mit Behandlungsverlauf</a>{{end}} · |
| 13 | <a href="/befund/{{.B.ID}}">zurück zum Befund</a></p> |
| 14 | <header> |
| 15 | <img src="/static/logo.webp" alt="" class="logo"> |
| 16 | <div class="htext"> |
| 17 | <h1>Physiotherapeutischer Befund</h1> |
| 18 | <p><strong>{{.P.Name}}</strong>{{with .P.Dob}} · geb. {{.}}{{end}}</p> |
| 19 | </div> |
| 20 | <div class="meta">{{.B.Title}}<br>{{de .B.Date}}<br>{{.Practice}}</div> |
| 21 | </header> |
| 22 | |
| 23 | {{range $s := .Sections}}{{if $d.HasSection $s}} |
| 24 | <section> |
| 25 | <h2>{{$s.Title}}</h2> |
| 26 | {{range $p := $s.Parts}}{{if $d.HasPart $p}} |
| 27 | {{with $p.Title}}<h3>{{.}}</h3>{{end}} |
| 28 | |
| 29 | {{if and $p.Body $d.Stamps}} |
| 30 | <div class="bodies"> |
| 31 | {{range $vi, $v := $.Views}} |
| 32 | <figure><div class="body-canvas"><img src="{{$v.Image}}" alt="{{$v.Name}}"><svg viewBox="0 0 {{$v.W}} {{$v.H}}">{{range $d.StampsFor $vi}}<text x="{{fmtNum .X}}" y="{{fmtNum .Y}}" font-size="{{fmtNum .Size}}" fill="{{.Color}}" text-anchor="middle" dominant-baseline="central">{{.Char}}</text>{{end}}</svg></div><figcaption>{{$v.Name}}</figcaption></figure> |
| 33 | {{end}} |
| 34 | <ul class="legend">{{range $d.UsedSymbols}}<li><b>{{.Char}}</b> {{.Name}}</li>{{end}}</ul> |
| 35 | </div> |
| 36 | {{end}} |
| 37 | |
| 38 | <dl> |
| 39 | {{range $f := $p.Fields}}{{with $d.Get $f.Key}} |
| 40 | {{if eq $f.Type "check"}}<dt class="chk">☑ {{$f.Label}}</dt> |
| 41 | {{else}}{{if $f.Label}}<dt>{{$f.Label}}</dt>{{end}}<dd>{{.}}</dd>{{end}} |
| 42 | {{end}}{{end}} |
| 43 | </dl> |
| 44 | |
| 45 | {{with $p.Table}}{{$t := .}}{{with index $d.Tables $t.Key}} |
| 46 | <table> |
| 47 | <thead><tr>{{range $t.Cols}}<th>{{.Label}}</th>{{end}}</tr></thead> |
| 48 | <tbody>{{range $row := .}}<tr>{{range $c := $t.Cols}}<td>{{if eq $c.Type "date"}}{{de (index $row $c.Key)}}{{else}}{{index $row $c.Key}}{{end}}</td>{{end}}</tr>{{end}}</tbody> |
| 49 | </table> |
| 50 | {{end}}{{end}} |
| 51 | {{end}}{{end}} |
| 52 | </section> |
| 53 | {{end}}{{end}} |
| 54 | |
| 55 | {{with .Sessions}} |
| 56 | <section> |
| 57 | <h2>Behandlungsverlauf</h2> |
| 58 | <table> |
| 59 | <thead><tr><th>Datum</th><th>Ziel / Maßnahmen</th><th>Bemerkung / Re-Test</th></tr></thead> |
| 60 | <tbody>{{range .}}<tr><td class="nowrap">{{de .Date}}</td><td>{{.Goal}}</td><td>{{.Note}}</td></tr>{{end}}</tbody> |
| 61 | </table> |
| 62 | </section> |
| 63 | {{end}} |
| 64 | |
| 65 | <footer> |
| 66 | <div class="sig">Datum, Unterschrift Therapeut*in</div> |
| 67 | <div class="sig">Datum, Unterschrift Patient*in</div> |
| 68 | </footer> |
| 69 | </body> |
| 70 | </html>{{end}} |
| 71 |