Patient Heatmap Error

App Versions

{
	"email_delivery_service": "0.0.1",
	"erpnext": "15.23.3",
	"exotel_integration": "0.0.1",
	"frappe": "15.27.0",
	"healthcare": "15.0.0",
	"hrms": "15.21.0",
	"india_compliance": "15.7.4",
	"payments": "0.0.1",
	"print_designer": "1.2.0"
}

Route

Form/Patient/HLC-PAT-2024-00068

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 110, in application
    response = frappe.api.handle(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 49, in handle
    data = execute_cmd(cmd)
           ^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1768, in call
    return fn(*args, **newargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 921, in wrapper_fn
    retval = fn(*args, **get_newargs(fn, kwargs))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/desk/notifications.py", line 299, in get_open_count
    out["timeline_data"] = module.get_timeline_data(doctype, name)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/healthcare/healthcare/healthcare/doctype/patient/patient.py", line 380, in get_timeline_data
    from erpnext.accounts.party import get_timeline_data
ImportError: cannot import name 'get_timeline_data' from 'erpnext.accounts.party' (apps/erpnext/erpnext/accounts/party.py)

Request Data

{
	"type": "GET",
	"args": {
		"doctype": "Patient",
		"name": "HLC-PAT-2024-00068",
		"items": "[\"Patient Appointment\",\"Vital Signs\",\"Patient Encounter\",\"Lab Test\",\"Sample Collection\",\"Patient Assessment\",\"Therapy Session\",\"Therapy Plan\",\"Clinical Procedure\",\"Inpatient Record\",\"Inpatient Medication Order\",\"Sales Invoice\",\"Payment Entry\"]"
	},
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.notifications.get_open_count",
	"request_id": "f405b700-d9f5-442e-88d2-181b770c64fd"
}

Response Data

{
	"exception": "ImportError: cannot import name 'get_timeline_data' from 'erpnext.accounts.party' (apps/erpnext/erpnext/accounts/party.py)",
	"exc_type": "ImportError",
	"_exc_source": "healthcare (app)"
}

Already issue raised in GitHub:

2 Likes

Will get this fixed and post here, thanks for reporting!

Should be fixed now, please update your site.

Thank you, done !

1 Like