{{define "person-row"}}
{{if .Name}}{{.Name}}{{else}}Geen naam{{end}} |
{{.Function}} |
{{.Address}} |
{{if .AGB}}AGB: {{.AGB}}{{end}} |
{{end}}
{{define "medi-group-epi"}}
{{$root := .}}
Datum |
{{if HasEndDates .Episodes }}
Einddatum |
{{end}}
Type |
ICPC |
Beschrijving |
{{if eq .Extra.verbose_icpc_description "true"}}
Beschrijving arts |
{{else}}
{{end}}
|
{{range .Episodes}}
{{.Date}} |
{{if HasEndDates $.Episodes }}
{{.EndDate}} |
{{end}}
{{.Type}} |
{{.ICPC}} |
{{if eq $root.Extra.verbose_icpc_description "true"}}
{{.Title}} |
{{.Description}} |
{{else}}
{{if eq .Description ""}}
{{.Title}} |
{{else}}
{{.Description}} |
{{end}}
{{end}}
{{end}}
{{end}}
{{define "medi-group-ica"}}
{{$root := .}}
Datum |
Type |
ICPC |
Beschrijving |
{{if eq $root.Extra.verbose_icpc_description "true"}}
|
{{else}}
{{end}}
{{range .Indicators}}
{{.Date}} |
{{.Type}} |
{{.ICPC}} |
{{.Title}} |
{{if eq $root.Extra.verbose_icpc_description "true"}}
{{.Description}} |
{{else}}
|
{{end}}
{{end}}
{{end}}
Huisarts
{{template "person-row" .GP}}
{{if .Pharmacy.Anchor}}{{template "person-row" .Pharmacy}}{{end}}
{{if .Practitioners}}
Medebehandelaren
{{range .Practitioners}}
{{template "person-row" .}}{{end}}
{{end}}
Patiënt
Naam:
| {{.Patient.Name}}
{{if .Patient.BSN}}
|
BSN:
| {{.Patient.BSN}}
{{end}}
|
Geboortedatum:
| {{.Patient.Birthdate}}
|
Adres:
| {{.Patient.Address}}
|
Geslacht:
| {{.Patient.Gender}}
{{range .Patient.OtherFields}}
|
{{.Key}}:
| {{.Value}}
{{end}}
|
{{if .Memo}}
Memo
{{.Memo}}
{{end}}
{{if .Episodes}}
Episodelijst
{{template "medi-group-epi" .}}
{{end}}
{{if .Indicators}}
Contra-indicaties, interacties en allergieën
{{template "medi-group-ica" .}}
{{end}}
{{if .Medication}}
Medicatieoverzicht
Recept |
Gebruiksvoorschrift |
Hoeveelheid |
Ingang |
Vervalt |
{{range $index, $med := .Medication}}
{{if gt (len $med.Fold) 1}}
{{$med.Recipe}} |
{{$med.Instructions}} |
{{ YieldDosage $med }} |
{{$med.StartDate}} |
{{$med.EndDate}} |
{{range $fold := $med.Fold}}
|
{{ if ne $med.Instructions $fold.Instructions}}{{$fold.Instructions}}{{else}}{{end}} |
{{ YieldDosage $fold }} |
{{$fold.StartDate}} |
{{$fold.EndDate}} |
{{end}}
{{else}}
{{$med.Recipe}} |
{{$med.Instructions}} |
{{ YieldDosage $med }} |
{{$med.StartDate}} |
{{$med.EndDate}} |
{{end}}
{{end }}
{{end}}
{{if .Journal}}
Journaal
{{range .Journal}}
{{.Date}}
{{if .Results}}
Identificatie |
Resultaat |
Beschrijving |
{{range .Results}}
{{.Kind}} |
{{.Result}} |
{{if eq .Identification "Buiten normaalwaarde"}}{{.Identification}}{{else}}{{.Identification}}{{end}}
{{if and .Identification .Description}} {{end}}
{{.Description}}
|
{{end}}
{{end}}
{{range .Lines}}
{{if .SOEP}}
{{.SOEP}}:
| {{ConvertLinebreaks .Text}}
{{end}}
{{if .Kind}}
| {{.Kind}}{{if .Text}}:{{end}}
| {{ConvertLinebreaks .Text}}
{{end}}
|
{{end}}
{{end}}
{{end}}
{{if .Extra.csrf_token }}
{{end}}