From d871e3df465023103a833e178db202cf0c753ca0 Mon Sep 17 00:00:00 2001 From: fredkingham Date: Wed, 26 Jan 2022 10:41:28 +0000 Subject: [PATCH] Adds lab test deparment into the detail screen --- plugins/labtests/api.py | 1 + plugins/labtests/templates/lab_detail.html | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/plugins/labtests/api.py b/plugins/labtests/api.py index 670f83f0a..ab346a335 100644 --- a/plugins/labtests/api.py +++ b/plugins/labtests/api.py @@ -27,6 +27,7 @@ def serialize_observation(self, obs): def serialize_lab_test(self, lab_test): result = self.serialize_model(lab_test) result['patient_id'] = lab_test.patient_id + result['department'] = lab_test.department result['observations'] = [] for obs in lab_test.observation_set.all(): diff --git a/plugins/labtests/templates/lab_detail.html b/plugins/labtests/templates/lab_detail.html index 9a40a70d0..1f17f48d0 100644 --- a/plugins/labtests/templates/lab_detail.html +++ b/plugins/labtests/templates/lab_detail.html @@ -72,17 +72,26 @@

[[ lab_test.accession_number ]]
- Encounter consultant name + Deparment
- [[ lab_test.encounter_consultant_name ]] + [[ lab_test.department_int ]] + + ([[ lab_test.department ]]) +
-
+
+
+ Encounter consultant name +
+ [[ lab_test.encounter_consultant_name ]] +
+
Encounter location
-
+
[[ lab_test.encounter_location_name ]] ([[ lab_test.encounter_location_code ]])