fix: added dashboard link in healthcare desk
diff --git a/erpnext/healthcare/dashboard_fixtures.py b/erpnext/healthcare/dashboard_fixtures.py
index 4fb05a8..59da71a 100644
--- a/erpnext/healthcare/dashboard_fixtures.py
+++ b/erpnext/healthcare/dashboard_fixtures.py
@@ -3,7 +3,7 @@
import frappe
import json
-
+from frappe import _
def get_data():
return frappe._dict({
@@ -51,7 +51,7 @@
"doctype": "Dashboard Chart",
"time_interval": "Daily",
"name": "Patient Appointments",
- "chart_name": "Patient Appointments",
+ "chart_name": _("Patient Appointments"),
"timespan": "Last Month",
"filters_json": json.dumps([
["Patient Appointment", "company", "=", company, False],
@@ -68,7 +68,7 @@
{
"doctype": "Dashboard Chart",
"name": "Department wise Patient Appointments",
- "chart_name": "Department wise Patient Appointments",
+ "chart_name": _("Department wise Patient Appointments"),
"chart_type": "Custom",
"source": "Department wise Patient Appointments",
"filters_json": json.dumps({}),
@@ -87,7 +87,7 @@
{
"doctype": "Dashboard Chart",
"name": "Lab Tests",
- "chart_name": "Lab Tests",
+ "chart_name": _("Lab Tests"),
"chart_type": "Group By",
"document_type": "Lab Test",
"group_by_type": "Count",
@@ -104,7 +104,7 @@
{
"doctype": "Dashboard Chart",
"name": "Clinical Procedures",
- "chart_name": "Clinical Procedures",
+ "chart_name": _("Clinical Procedures"),
"chart_type": "Group By",
"document_type": "Clinical Procedure",
"group_by_type": "Count",
@@ -121,7 +121,7 @@
{
"doctype": "Dashboard Chart",
"name": "In-Patient Status",
- "chart_name": "In-Patient Status",
+ "chart_name": _("In-Patient Status"),
"chart_type": "Group By",
"document_type": "Inpatient Record",
"group_by_type": "Count",
@@ -137,7 +137,7 @@
{
"doctype": "Dashboard Chart",
"name": "Clinical Procedures Status",
- "chart_name": "Clinical Procedure Status",
+ "chart_name": _("Clinical Procedure Status"),
"chart_type": "Group By",
"document_type": "Clinical Procedure",
"group_by_type": "Count",
@@ -154,7 +154,7 @@
{
"doctype": "Dashboard Chart",
"name": "Symptoms",
- "chart_name": "Symptoms",
+ "chart_name": _("Symptoms"),
"chart_type": "Group By",
"document_type": "Patient Encounter Symptom",
"group_by_type": "Count",
@@ -168,7 +168,7 @@
{
"doctype": "Dashboard Chart",
"name": "Diagnoses",
- "chart_name": "Diagnoses",
+ "chart_name": _("Diagnoses"),
"chart_type": "Group By",
"document_type": "Patient Encounter Diagnosis",
"group_by_type": "Count",
@@ -186,7 +186,7 @@
return [
{
"name": "Total Patients",
- "label": "Total Patients",
+ "label": _("Total Patients"),
"function": "Count",
"doctype": "Number Card",
"document_type": "Patient",
@@ -200,7 +200,7 @@
},
{
"name": "Total Patients Admitted",
- "label": "Total Patients Admitted",
+ "label": _("Total Patients Admitted"),
"function": "Count",
"doctype": "Number Card",
"document_type": "Patient",
@@ -214,7 +214,7 @@
},
{
"name": "Open Appointments",
- "label": "Open Appointments",
+ "label": _("Open Appointments"),
"function": "Count",
"doctype": "Number Card",
"document_type": "Patient Appointment",
@@ -229,7 +229,7 @@
},
{
"name": "Appointments to Bill",
- "label": "Appointments to Bill",
+ "label": _("Appointments to Bill"),
"function": "Count",
"doctype": "Number Card",
"document_type": "Patient Appointment",
diff --git a/erpnext/healthcare/desk_page/healthcare/healthcare.json b/erpnext/healthcare/desk_page/healthcare/healthcare.json
index 14ad5e4..60b5313 100644
--- a/erpnext/healthcare/desk_page/healthcare/healthcare.json
+++ b/erpnext/healthcare/desk_page/healthcare/healthcare.json
@@ -60,10 +60,11 @@
"docstatus": 0,
"doctype": "Desk Page",
"extends_another_page": 0,
+ "hide_custom": 0,
"idx": 0,
"is_standard": 1,
"label": "Healthcare",
- "modified": "2020-05-19 14:05:10.520457",
+ "modified": "2020-05-19 20:57:22.797267",
"modified_by": "Administrator",
"module": "Healthcare",
"name": "Healthcare",
@@ -106,6 +107,11 @@
"label": "Patient History",
"link_to": "patient_history",
"type": "Page"
+ },
+ {
+ "label": "Healthcare Dashboard",
+ "link_to": "Healthcare",
+ "type": "Dashboard"
}
]
}
\ No newline at end of file