From 6a18b72445a1e31c913a549a326d19ab31c5fc13 Mon Sep 17 00:00:00 2001 From: Oscar John Date: Thu, 4 Apr 2024 16:34:16 +0300 Subject: [PATCH] fix: add columns to referral report template --- templates/referral_report_template.html | 110 +++++++++++++++++++----- 1 file changed, 90 insertions(+), 20 deletions(-) diff --git a/templates/referral_report_template.html b/templates/referral_report_template.html index 21fb9fc..650ad63 100644 --- a/templates/referral_report_template.html +++ b/templates/referral_report_template.html @@ -40,7 +40,7 @@ .header-title { color: #800080; font-weight: bold; - font-size: 30px; + font-size: 25px; margin: 0 auto; text-align: center; flex: 2; @@ -87,6 +87,7 @@ } .detail { line-height: 2; + padding-right: 100px; } .detail strong { margin-right: 5px; @@ -137,7 +138,7 @@ Empower Logo - +

Empower Coast General Hospital

@@ -155,38 +156,93 @@

Empower Coast General Hospital

{{if .Patient}}

Patient details

- {{if .Patient.Name}}
Name: {{.Patient.Name}}
{{end}} - {{if .Patient.EmpowerID}}
Empower ID: {{.Patient.EmpowerID}}
{{end}} - {{if .Patient.NationalID}}
National ID: {{.Patient.NationalID}}
{{end}} - {{if .Patient.PhoneNumber}}
Phone number: {{.Patient.PhoneNumber}}
{{end}} - {{if .Patient.DateOfBirth}}
Date of birth: {{.Patient.DateOfBirth}}
{{end}} - {{if .Patient.Age}}
Age: {{.Patient.Age}}
{{end}} - {{if .Patient.Sex}}
Sex: {{.Patient.Sex}}
{{end}} + + + + + + + + + + + + + + + + +
+ {{if .Patient.Name}}
Name: {{.Patient.Name}}
{{end}} +
+ {{if .Patient.EmpowerID}}
Empower ID: {{.Patient.EmpowerID}}
{{end}} +
+ {{if .Patient.NationalID}}
National ID: {{.Patient.NationalID}}
{{end}} +
+ {{if .Patient.PhoneNumber}}
Phone number: {{.Patient.PhoneNumber}}
{{end}} +
+ {{if .Patient.DateOfBirth}}
Date of birth: {{.Patient.DateOfBirth}}
{{end}} +
+ {{if .Patient.Age}}
Age: {{.Patient.Age}}
{{end}} +
+ {{if .Patient.Sex}}
Sex: {{.Patient.Sex}}
{{end}} +
{{end}} {{if or .NextOfKin.Name .NextOfKin.PhoneNumber .NextOfKin.Relationship}}

Next of kin details

- {{if .NextOfKin.Name}}
Name: {{.NextOfKin.Name}}
{{end}} - {{if .NextOfKin.PhoneNumber}}
Phone number: {{.NextOfKin.PhoneNumber}}
{{end}} - {{if .NextOfKin.Relationship}}
Relationship: {{.NextOfKin.Relationship}}
{{end}} + + + + + + + + +
+ {{if .NextOfKin.Name}}
Name: {{.NextOfKin.Name}}
{{end}} +
+ {{if .NextOfKin.PhoneNumber}}
Phone number: {{.NextOfKin.PhoneNumber}}
{{end}} +
+ {{if .NextOfKin.Relationship}}
Relationship: {{.NextOfKin.Relationship}}
{{end}} +
+
{{end}} {{if .Facility}}

Receiving facility details

- {{if .Facility.Name}}
Referred to: {{.Facility.Name}}
{{end}} - {{if .Facility.Contact}}
Hospital Contact: {{.Facility.Contact}}
{{end}} - {{if .Facility.Location}}
Location: {{.Facility.Location}}
{{end}} + + + + + + + + +
+ {{if .Facility.Name}}
Referred to: {{.Facility.Name}}
{{end}} +
+ {{if .Facility.Contact}}
Hospital Contact: {{.Facility.Contact}}
{{end}} +
+ {{if .Facility.Location}}
Location: {{.Facility.Location}}
{{end}} +
{{end}} {{if .Referral.Reason}}

Referral reason

-
Reason for Referral: {{.Referral.Reason}}
+ + + + +
+
Reason for Referral: {{.Referral.Reason}}
+
{{end}} @@ -212,10 +268,24 @@

Medical History

Referred by

-
Referring Officer:
-
Designation:
-
Phone:
-
Signature:
+ + + + + + + + + +
+
Referring Officer: {{.}}
+
+
Designation: {{.}}
+
+
Phone: {{.}}
+
+
Signature: {{.}}
+