From b010988033a3944478baf41595db87b546a0060d Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Sun, 2 Feb 2020 23:22:02 +0530 Subject: [PATCH] feat: add dashboards to Healthcare Masters --- .../healthcare_practitioner_dashboard.py | 6 +++++- .../healthcare_service_unit_type_dashboard.py | 13 +++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 erpnext/healthcare/doctype/healthcare_service_unit_type/healthcare_service_unit_type_dashboard.py diff --git a/erpnext/healthcare/doctype/healthcare_practitioner/healthcare_practitioner_dashboard.py b/erpnext/healthcare/doctype/healthcare_practitioner/healthcare_practitioner_dashboard.py index 70c0b3c098d..bcee44430ac 100644 --- a/erpnext/healthcare/doctype/healthcare_practitioner/healthcare_practitioner_dashboard.py +++ b/erpnext/healthcare/doctype/healthcare_practitioner/healthcare_practitioner_dashboard.py @@ -9,7 +9,11 @@ def get_data(): 'transactions': [ { 'label': _('Appointments and Patient Encounters'), - 'items': ['Patient Appointment', 'Patient Encounter'] + 'items': ['Patient Appointment', 'Patient Encounter', 'Fee Validity'] + }, + { + 'label': _('Consultation'), + 'items': ['Clinical Procedure', 'Lab Test'] } ] } diff --git a/erpnext/healthcare/doctype/healthcare_service_unit_type/healthcare_service_unit_type_dashboard.py b/erpnext/healthcare/doctype/healthcare_service_unit_type/healthcare_service_unit_type_dashboard.py new file mode 100644 index 00000000000..0ac548b3ffd --- /dev/null +++ b/erpnext/healthcare/doctype/healthcare_service_unit_type/healthcare_service_unit_type_dashboard.py @@ -0,0 +1,13 @@ +from __future__ import unicode_literals +from frappe import _ + +def get_data(): + return { + 'fieldname': 'service_unit_type', + 'transactions': [ + { + 'label': _('Healthcare Service Units'), + 'items': ['Healthcare Service Unit'] + }, + ] + }