From 43b22b44738dcdbb8a4b6f7cc89a62ede84945df Mon Sep 17 00:00:00 2001 From: Mohamud Amin Ali Date: Sun, 20 Oct 2019 10:34:39 +0300 Subject: [PATCH 1/3] fix: a more legible chart for vitals --- erpnext/healthcare/page/patient_history/patient_history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/healthcare/page/patient_history/patient_history.js b/erpnext/healthcare/page/patient_history/patient_history.js index b335ada8716..6160cfad909 100644 --- a/erpnext/healthcare/page/patient_history/patient_history.js +++ b/erpnext/healthcare/page/patient_history/patient_history.js @@ -283,7 +283,7 @@ var show_patient_vital_charts = function(patient, me, btn_show_id, pts, title) { title: title, type: 'axis-mixed', // 'axis-mixed', 'bar', 'line', 'pie', 'percentage' - height: 150, + height: 200, colors: ['purple', '#ffa3ef', 'light-blue'], tooltipOptions: { From 02279dff31277c19816a377efc38630077a672c1 Mon Sep 17 00:00:00 2001 From: Mohamud Amin Ali Date: Sun, 20 Oct 2019 10:46:45 +0300 Subject: [PATCH 2/3] fix: appropriate annotations in BMI --- erpnext/healthcare/page/patient_history/patient_history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/healthcare/page/patient_history/patient_history.js b/erpnext/healthcare/page/patient_history/patient_history.js index 6160cfad909..fd29ca27088 100644 --- a/erpnext/healthcare/page/patient_history/patient_history.js +++ b/erpnext/healthcare/page/patient_history/patient_history.js @@ -234,7 +234,7 @@ var show_patient_vital_charts = function(patient, me, btn_show_id, pts, title) { Temperature\ BMI"; + data-pts='bmi/m/Kg' data-title='BMI'>BMI"; me.page.main.find(".show_chart_btns").html(show_chart_btns_html); var data = r.message; let labels = [], datasets = []; From 871193eb62251584881120a8ab9c114dc5c5b3f3 Mon Sep 17 00:00:00 2001 From: Mohamud Amin Ali Date: Sun, 20 Oct 2019 11:50:15 +0300 Subject: [PATCH 3/3] fix: removed annotations altogether for bmi --- erpnext/healthcare/page/patient_history/patient_history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/healthcare/page/patient_history/patient_history.js b/erpnext/healthcare/page/patient_history/patient_history.js index fd29ca27088..fe5b7bc4883 100644 --- a/erpnext/healthcare/page/patient_history/patient_history.js +++ b/erpnext/healthcare/page/patient_history/patient_history.js @@ -234,7 +234,7 @@ var show_patient_vital_charts = function(patient, me, btn_show_id, pts, title) { Temperature\ BMI"; + data-pts='' data-title='BMI'>BMI"; me.page.main.find(".show_chart_btns").html(show_chart_btns_html); var data = r.message; let labels = [], datasets = [];