mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
refactor: Lab Tests and Clinical Procedures charts to Percentage type
This commit is contained in:
@@ -30,10 +30,11 @@ def get_dashboards():
|
|||||||
{ "chart": "Patient Appointments", "width": "Full"},
|
{ "chart": "Patient Appointments", "width": "Full"},
|
||||||
{ "chart": "In-Patient Status", "width": "Half"},
|
{ "chart": "In-Patient Status", "width": "Half"},
|
||||||
{ "chart": "Clinical Procedures Status", "width": "Half"},
|
{ "chart": "Clinical Procedures Status", "width": "Half"},
|
||||||
|
{ "chart": "Lab Tests", "width": "Half"},
|
||||||
|
{ "chart": "Clinical Procedures", "width": "Half"},
|
||||||
{ "chart": "Symptoms", "width": "Half"},
|
{ "chart": "Symptoms", "width": "Half"},
|
||||||
{ "chart": "Diagnoses", "width": "Half"},
|
{ "chart": "Diagnoses", "width": "Half"},
|
||||||
{ "chart": "Department wise Patient Appointments", "width": "Full"},
|
{ "chart": "Department wise Patient Appointments", "width": "Full"}
|
||||||
{ "chart": "Lab Tests", "width": "Full"},
|
|
||||||
],
|
],
|
||||||
"cards": [
|
"cards": [
|
||||||
{ "card": "Total Patients" },
|
{ "card": "Total Patients" },
|
||||||
@@ -96,9 +97,25 @@ def get_charts():
|
|||||||
]),
|
]),
|
||||||
'is_public': 1,
|
'is_public': 1,
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"type": "Bar",
|
"type": "Percentage",
|
||||||
"width": "Full",
|
"width": "Half",
|
||||||
"color": "#8548EB"
|
},
|
||||||
|
{
|
||||||
|
"doctype": "Dashboard Chart",
|
||||||
|
"name": "Clinical Procedures",
|
||||||
|
"chart_name": "Clinical Procedures",
|
||||||
|
"chart_type": "Group By",
|
||||||
|
"document_type": "Clinical Procedure",
|
||||||
|
"group_by_type": "Count",
|
||||||
|
"group_by_based_on": "procedure_template",
|
||||||
|
"filters_json": json.dumps([
|
||||||
|
["Clinical Procedure", "company", "=", company, False],
|
||||||
|
["Clinical Procedure", "docstatus", "=", 1]
|
||||||
|
]),
|
||||||
|
'is_public': 1,
|
||||||
|
"owner": "Administrator",
|
||||||
|
"type": "Percentage",
|
||||||
|
"width": "Half",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "Dashboard Chart",
|
"doctype": "Dashboard Chart",
|
||||||
|
|||||||
Reference in New Issue
Block a user